general protection fault, probably for non-canonical address 0xdffffc0000000005: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000028-0x000000000000002f] CPU: 0 PID: 7329 Comm: syz-executor.3 Not tainted 6.5.0-rc2-next-20230721-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 RIP: 0010:fsnotify_parent include/linux/fsnotify.h:62 [inline] RIP: 0010:fsnotify_file include/linux/fsnotify.h:101 [inline] RIP: 0010:fsnotify_close include/linux/fsnotify.h:343 [inline] RIP: 0010:__fput+0x1fb/0xac0 fs/file_table.c:370 Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 34 08 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8b 7e 68 49 8d 7f 28 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 2f 08 00 00 49 8b 57 28 be 08 00 00 00 48 8d ba RSP: 0018:ffffc900155ffdf0 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: ffff8880798fe280 RCX: 0000000000000000 RDX: 0000000000000005 RSI: ffffffff81eaf1d8 RDI: 0000000000000028 RBP: 0000000000000008 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880798fe2d0 R13: ffff88802ae5aff0 R14: ffff88808f8f1028 R15: 0000000000000000 FS: 00007fe4fe25d6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe4fe21bd58 CR3: 00000000220c7000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: task_work_run+0x14d/0x240 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop kernel/entry/common.c:171 [inline] exit_to_user_mode_prepare+0x210/0x240 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:297 do_syscall_64+0x44/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fe4fd47cb29 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe4fe25d0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000001c RAX: ffffffffffffffea RBX: 00007fe4fd59c050 RCX: 00007fe4fd47cb29 RDX: 0000000000000019 RSI: 000000000060005f RDI: 0000000020000000 RBP: 00007fe4fd4c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007fe4fd59c050 R15: 00007ffc061ff698 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:fsnotify_parent include/linux/fsnotify.h:62 [inline] RIP: 0010:fsnotify_file include/linux/fsnotify.h:101 [inline] RIP: 0010:fsnotify_close include/linux/fsnotify.h:343 [inline] RIP: 0010:__fput+0x1fb/0xac0 fs/file_table.c:370 Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 34 08 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8b 7e 68 49 8d 7f 28 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 2f 08 00 00 49 8b 57 28 be 08 00 00 00 48 8d ba RSP: 0018:ffffc900155ffdf0 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: ffff8880798fe280 RCX: 0000000000000000 RDX: 0000000000000005 RSI: ffffffff81eaf1d8 RDI: 0000000000000028 RBP: 0000000000000008 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880798fe2d0 R13: ffff88802ae5aff0 R14: ffff88808f8f1028 R15: 0000000000000000 FS: 00007fe4fe25d6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc5a85b6000 CR3: 00000000220c7000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 48 89 fa mov %rdi,%rdx 3: 48 c1 ea 03 shr $0x3,%rdx 7: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) b: 0f 85 34 08 00 00 jne 0x845 11: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 18: fc ff df 1b: 4d 8b 7e 68 mov 0x68(%r14),%r15 1f: 49 8d 7f 28 lea 0x28(%r15),%rdi 23: 48 89 fa mov %rdi,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2e: 0f 85 2f 08 00 00 jne 0x863 34: 49 8b 57 28 mov 0x28(%r15),%rdx 38: be 08 00 00 00 mov $0x8,%esi 3d: 48 rex.W 3e: 8d .byte 0x8d 3f: ba .byte 0xba