syzbot


general protection fault in __fsnotify_parent

Status: upstream: reported syz repro on 2021/06/12 16:42
Reported-by: syzbot+33e01ab862123610994d@syzkaller.appspotmail.com
First crash: 595d, last: 499d

Sample crash report:
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 3311 Comm: syz-executor.0 Not tainted 5.4.125-syzkaller-00093-gb0b664ad1351 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__fsnotify_parent+0xbc/0x310 fs/notify/fsnotify.c:155
Code: 08 4c 89 f0 48 c1 e8 03 80 3c 18 00 74 08 4c 89 f7 e8 28 4b eb ff 4d 8b 36 4c 89 6c 24 18 44 89 64 24 14 4c 89 f0 48 c1 e8 03 <8a> 04 18 84 c0 0f 85 04 02 00 00 45 8b 2e bb 00 40 00 00 be 00 40
RSP: 0018:ffff8881dea37d00 EFLAGS: 00010246
RAX: 0000000000000000 RBX: dffffc0000000000 RCX: ffff8881e1863f00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8881dea37e60
RBP: ffff8881dea37df0 R08: ffffffff81dde41d R09: ffffed103c744400
R10: ffffed103e4eae67 R11: 0000000000000000 R12: 0000000000000020
R13: ffff8881dea37e60 R14: 0000000000000000 R15: 1ffff1103bd46fa4
FS:  [*00007f7202bc1700(0000) GS:ffff8881f6e00000([0m*    ] A start job0000) knl is running for GS:000000000dev-ttyS0.device0000000
CR2: 00000000200095c0 CR3: 00000001ed3b7000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 fsnotify_parent include/linux/fsnotify.h:40 [inline]
 fsnotify_open include/linux/fsnotify.h:276 [inline]
 do_sys_open+0x53f/0x7c0 fs/open.c:1118
 do_syscall_64+0xcb/0x1e0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x4665d9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f7202bc1188 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 000000000056c038 RCX: 00000000004665d9
RDX: 0000000000000000 RSI: 0000000020002040 RDI: ffffffffffffff9c
RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c038
R13: 00007ffdbcf7c64f R14: 00007f7202bc1300 R15: 0000000000022000
Modules linked in:
---[ end trace 34ee335b12e269a9 ]---
RIP: 0010:__fsnotify_parent+0xbc/0x310 fs/notify/fsnotify.c:155
Code: 08 4c 89 f0 48 c1 e8 03 80 3c 18 00 74 08 4c 89 f7 e8 28 4b eb ff 4d 8b 36 4c 89 6c 24 18 44 89 64 24 14 4c 89 f0 48 c1 e8 03 <8a> 04 18 84 c0 0f 85 04 02 00 00 45 8b 2e bb 00 40 00 00 be 00 40
RSP: 0018:ffff8881dea37d00 EFLAGS: 00010246
RAX: 0000000000000000 RBX: dffffc0000000000 RCX: ffff8881e1863f00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8881dea37e60
RBP: ffff8881dea37df0 R08: ffffffff81dde41d R09: ffffed103c744400
R10: ffffed103e4eae67 R11: 0000000000000000 R12: 0000000000000020
R13: ffff8881dea37e60 R14: 0000000000000000 R15: 1ffff1103bd46fa4
FS:  00007f7202bc1700(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f570b7f8000 CR3: 00000001ed3b7000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (3):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-android-5-4-kasan 2021/06/12 17:14 android12-5.4 b0b664ad1351 1ba81399 .config console log report syz general protection fault in __fsnotify_parent
ci2-android-5-4-kasan 2021/09/17 06:19 android12-5.4 4109c89bbb12 5b989942 .config console log report info general protection fault in __fsnotify_parent
ci2-android-5-4-kasan 2021/06/12 16:41 android12-5.4 b0b664ad1351 1ba81399 .config console log report info general protection fault in __fsnotify_parent
* Struck through repros no longer work on HEAD.