BUG: stack guard page was hit in file_open (8)

1 view
Skip to first unread message

syzbot

unread,
Mar 31, 2022, 5:21:22 AM3/31/22
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 414e6c8e941c ANDROID: fix up abi issue with struct snd_pcm..
git tree: android12-5.10-lts
console output: https://syzkaller.appspot.com/x/log.txt?x=11d182d7700000
kernel config: https://syzkaller.appspot.com/x/.config?x=c82cd64ef7210f0c
dashboard link: https://syzkaller.appspot.com/bug?extid=987ea658842014a0dcfe
compiler: Debian clang version 11.0.1-2, GNU ld (GNU Binutils for Debian) 2.35.2
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=178224f3700000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10c815bb700000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+987ea6...@syzkaller.appspotmail.com

BUG: stack guard page was hit at ffffc90000977ff8 (stack is ffffc90000978000..ffffc9000097ffff)
kernel stack overflow (double-fault): 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 367 Comm: syz-executor385 Not tainted 5.10.109-syzkaller-00693-g414e6c8e941c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:memset+0x6/0x40 mm/kasan/shadow.c:43
Code: 00 00 66 90 55 48 89 e5 89 f6 48 8b 4d 08 ba 01 00 00 00 e8 3c ed ff ff 5d c3 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 <41> 56 53 49 89 d7 41 89 f6 48 89 fb 48 8b 4d 08 48 89 d6 ba 01 00
RSP: 0018:ffffc90000978000 EFLAGS: 00010246
RAX: ffff88811cfe4f00 RBX: dffffc0000000000 RCX: ffffc90000978130
RDX: 0000000000000060 RSI: 0000000000000000 RDI: ffffc900009780a0
RBP: ffffc90000978008 R08: dffffc0000000000 R09: ffffc90000978180
R10: fffff5200012f033 R11: 0000000000000000 R12: ffff88811cfe4f00
R13: ffffc900009780a0 R14: ffff88811cfe4f00 R15: 0000000000000000
FS: 0000555556f163c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90000977ff8 CR3: 0000000106ba4000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__unwind_start+0x34/0x420 arch/x86/kernel/unwind_frame.c:368
unwind_start arch/x86/include/asm/unwind.h:60 [inline]
arch_stack_walk+0xdc/0x140 arch/x86/kernel/stacktrace.c:24
stack_trace_save+0x11b/0x1e0 kernel/stacktrace.c:121
save_stack+0x96/0x1e0 mm/page_owner.c:146
__set_page_owner+0x3b/0x300 mm/page_owner.c:219
set_page_owner include/linux/page_owner.h:35 [inline]
post_alloc_hook mm/page_alloc.c:2385 [inline]
prep_new_page mm/page_alloc.c:2391 [inline]
get_page_from_freelist+0xa74/0xa90 mm/page_alloc.c:4063
__alloc_pages_nodemask+0x3c8/0x820 mm/page_alloc.c:5113
alloc_slab_page mm/slub.c:1815 [inline]
allocate_slab+0x6b/0x350 mm/slub.c:1817
new_slab mm/slub.c:1878 [inline]
new_slab_objects mm/slub.c:2637 [inline]
___slab_alloc+0x143/0x2f0 mm/slub.c:2800
__slab_alloc mm/slub.c:2840 [inline]
slab_alloc_node mm/slub.c:2922 [inline]
slab_alloc mm/slub.c:2964 [inline]
kmem_cache_alloc+0x26f/0x380 mm/slub.c:2969
kmem_cache_zalloc include/linux/slab.h:654 [inline]
__alloc_file+0x29/0x3b0 fs/file_table.c:101
alloc_empty_file+0xac/0x1b0 fs/file_table.c:151
dentry_open+0x4e/0x100 fs/open.c:956
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open fs/open.c:942 [inline]
dentry_open+0xb8/0x100 fs/open.c:958
file_open+0x2a3/0x650 fs/incfs/vfs.c:1427
do_dentry_open+0x7a5/0x1090 fs/open.c:819
vfs_open+0x73/0x80 fs/open.c:942
do_open fs/namei.c:3327 [inline]
path_openat+0x264d/0x3500 fs/namei.c:3444
do_filp_open+0x200/0x440 fs/namei.c:3471
do_sys_openat2+0x13b/0x470 fs/open.c:1211
do_sys_open fs/open.c:1227 [inline]
__do_sys_openat fs/open.c:1243 [inline]
__se_sys_openat fs/open.c:1238 [inline]
__x64_sys_openat+0x243/0x290 fs/open.c:1238
do_syscall_64+0x31/0x70 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7fcc2421b969
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 14 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe444b9388 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fcc2421b969
RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 00000000ffffff9c
RBP: 0000000000000000 R08: 00007ffe444b93c8 R09: 00007ffe444b93c8
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffe444b93c0
R13: 0000000000000000 R14: 431bde82d7b634db R15: 0000000000000000
Modules linked in:
---[ end trace cf691c436f6f58e0 ]---
RIP: 0010:memset+0x6/0x40 mm/kasan/shadow.c:43
Code: 00 00 66 90 55 48 89 e5 89 f6 48 8b 4d 08 ba 01 00 00 00 e8 3c ed ff ff 5d c3 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 <41> 56 53 49 89 d7 41 89 f6 48 89 fb 48 8b 4d 08 48 89 d6 ba 01 00
RSP: 0018:ffffc90000978000 EFLAGS: 00010246
RAX: ffff88811cfe4f00 RBX: dffffc0000000000 RCX: ffffc90000978130
RDX: 0000000000000060 RSI: 0000000000000000 RDI: ffffc900009780a0
RBP: ffffc90000978008 R08: dffffc0000000000 R09: ffffc90000978180
R10: fffff5200012f033 R11: 0000000000000000 R12: ffff88811cfe4f00
R13: ffffc900009780a0 R14: ffff88811cfe4f00 R15: 0000000000000000
FS: 0000555556f163c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90000977ff8 CR3: 0000000106ba4000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 00 00 add %al,(%rax)
2: 66 90 xchg %ax,%ax
4: 55 push %rbp
5: 48 89 e5 mov %rsp,%rbp
8: 89 f6 mov %esi,%esi
a: 48 8b 4d 08 mov 0x8(%rbp),%rcx
e: ba 01 00 00 00 mov $0x1,%edx
13: e8 3c ed ff ff callq 0xffffed54
18: 5d pop %rbp
19: c3 retq
1a: 66 2e 0f 1f 84 00 00 nopw %cs:0x0(%rax,%rax,1)
21: 00 00 00
24: 55 push %rbp
25: 48 89 e5 mov %rsp,%rbp
28: 41 57 push %r15
* 2a: 41 56 push %r14 <-- trapping instruction
2c: 53 push %rbx
2d: 49 89 d7 mov %rdx,%r15
30: 41 89 f6 mov %esi,%r14d
33: 48 89 fb mov %rdi,%rbx
36: 48 8b 4d 08 mov 0x8(%rbp),%rcx
3a: 48 89 d6 mov %rdx,%rsi
3d: ba .byte 0xba
3e: 01 00 add %eax,(%rax)


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches

Tadeusz Struk

unread,
Mar 31, 2022, 2:13:18 PM3/31/22
to syzbot+987ea6...@syzkaller.appspotmail.com, syzkaller-a...@googlegroups.com, tadeus...@linaro.org
#syz test: https://android.googlesource.com/kernel/common android13-5.10

=======================================
index 9ea10adf7a66..b1d0a6ecfe1b 100644
--- a/lib/test_ubsan.c
+++ b/lib/test_ubsan.c
@@ -89,16 +89,6 @@ static void test_ubsan_misaligned_access(void)
*ptr = val;
}

-static void test_ubsan_object_size_mismatch(void)
-{
- /* "((aligned(8)))" helps this not into be misaligned for ptr-access. */
- volatile int val __aligned(8) = 4;
- volatile long long *ptr, val2;
-
- ptr = (long long *)&val;
- val2 = *ptr;
-}
-
static const test_ubsan_fp test_ubsan_array[] = {
test_ubsan_add_overflow,
test_ubsan_sub_overflow,
@@ -110,7 +100,6 @@ static const test_ubsan_fp test_ubsan_array[] = {
test_ubsan_load_invalid_value,
//test_ubsan_null_ptr_deref, /* exclude it because there is a crash */
test_ubsan_misaligned_access,
- test_ubsan_object_size_mismatch,
};

static int __init test_ubsan_init(void)
diff --git a/scripts/Makefile.ubsan b/scripts/Makefile.ubsan
index 9716dab06bc7..2156e18391a3 100644
--- a/scripts/Makefile.ubsan
+++ b/scripts/Makefile.ubsan
@@ -23,7 +23,6 @@ ifdef CONFIG_UBSAN_MISC
CFLAGS_UBSAN += $(call cc-option, -fsanitize=integer-divide-by-zero)
CFLAGS_UBSAN += $(call cc-option, -fsanitize=unreachable)
CFLAGS_UBSAN += $(call cc-option, -fsanitize=signed-integer-overflow)
- CFLAGS_UBSAN += $(call cc-option, -fsanitize=object-size)
CFLAGS_UBSAN += $(call cc-option, -fsanitize=bool)
CFLAGS_UBSAN += $(call cc-option, -fsanitize=enum)
endif
--
2.35.1

syzbot

unread,
Mar 31, 2022, 10:38:16 PM3/31/22
to syzkaller-a...@googlegroups.com, tadeus...@linaro.org
Hello,

syzbot has tested the proposed patch and the reproducer did not trigger any issue:

Reported-and-tested-by: syzbot+987ea6...@syzkaller.appspotmail.com

Tested on:

commit: b576a36a ANDROID: Update the ABI symbol list
git tree: https://android.googlesource.com/kernel/common android13-5.10
kernel config: https://syzkaller.appspot.com/x/.config?x=c49accf4224b02fa
dashboard link: https://syzkaller.appspot.com/bug?extid=987ea658842014a0dcfe
compiler: Debian clang version 11.0.1-2, GNU ld (GNU Binutils for Debian) 2.35.2
patch: https://syzkaller.appspot.com/x/patch.diff?x=1721e3e3700000

Note: testing is done by a robot and is best-effort only.

Tadeusz Struk

unread,
Apr 1, 2022, 10:43:21 AM4/1/22
to syzbot, syzkaller-a...@googlegroups.com
#syz dup: BUG: stack guard page was hit in file_open

--
Thanks,
Tadeusz

Tadeusz Struk

unread,
Apr 1, 2022, 8:30:12 PM4/1/22
to syzbot+fd3c3c...@syzkaller.appspotmail.com, syzkaller-a...@googlegroups.com, tadeus...@linaro.org

Tadeusz Struk

unread,
Apr 1, 2022, 8:30:49 PM4/1/22
to syzbot+bc195a...@syzkaller.appspotmail.com, syzkaller-a...@googlegroups.com, tadeus...@linaro.org

syzbot

unread,
Apr 2, 2022, 5:19:08 AM4/2/22
to syzkaller-a...@googlegroups.com, tadeus...@linaro.org
Hello,

syzbot has tested the proposed patch and the reproducer did not trigger any issue:

Reported-and-tested-by: syzbot+fd3c3c...@syzkaller.appspotmail.com

Tested on:

commit: aadf7ad9 BACKPORT: virtio: pci: check bar values read ..
dashboard link: https://syzkaller.appspot.com/bug?extid=fd3c3ca5e93d7eaed3e5
compiler: Debian clang version 11.0.1-2, GNU ld (GNU Binutils for Debian) 2.35.2
patch: https://syzkaller.appspot.com/x/patch.diff?x=17a63dc3700000

syzbot

unread,
Apr 2, 2022, 5:26:10 AM4/2/22
to syzkaller-a...@googlegroups.com, tadeus...@linaro.org
Hello,

syzbot has tested the proposed patch and the reproducer did not trigger any issue:

Reported-and-tested-by: syzbot+bc195a...@syzkaller.appspotmail.com

Tested on:

commit: aadf7ad9 BACKPORT: virtio: pci: check bar values read ..
git tree: https://android.googlesource.com/kernel/common android13-5.10
kernel config: https://syzkaller.appspot.com/x/.config?x=c49accf4224b02fa
dashboard link: https://syzkaller.appspot.com/bug?extid=bc195a0642a1df04347f
compiler: Debian clang version 11.0.1-2, GNU ld (GNU Binutils for Debian) 2.35.2
patch: https://syzkaller.appspot.com/x/patch.diff?x=1665f16b700000
Reply all
Reply to author
Forward
0 new messages