general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f] CPU: 1 PID: 4191 Comm: syz-executor.0 Not tainted 6.1.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:shm_close+0xb8/0x580 ipc/shm.c:378 Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 64 04 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b 5d 18 48 8d 7b 08 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 23 04 00 00 48 8b 43 08 48 85 c0 74 05 4c 89 ef RSP: 0018:ffffc9000469fbb8 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000001 RSI: 0000000000000008 RDI: 0000000000000008 RBP: ffff8881476ba980 R08: 0000000000000001 R09: ffff8880171036ef R10: ffffed1002e206dd R11: 0000000000000000 R12: ffff88801697c000 R13: ffff888025c05870 R14: 0000000000000008 R15: ffff888025c05870 FS: 00007f6d00995700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6cffda80c0 CR3: 0000000021126000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: shm_mmap+0x189/0x220 ipc/shm.c:604 call_mmap include/linux/fs.h:2196 [inline] mmap_region+0x565/0x1a60 mm/mmap.c:2625 do_mmap+0x5a6/0xd30 mm/mmap.c:1412 do_shmat+0xa69/0xc70 ipc/shm.c:1661 __do_sys_shmat ipc/shm.c:1697 [inline] __se_sys_shmat ipc/shm.c:1692 [inline] __x64_sys_shmat+0xc4/0x140 ipc/shm.c:1692 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f6cffc8b639 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f6d00995168 EFLAGS: 00000246 ORIG_RAX: 000000000000001e RAX: ffffffffffffffda RBX: 00007f6cffdabf80 RCX: 00007f6cffc8b639 RDX: ffffffffffffcfff RSI: 0000000020000000 RDI: 0000000000000008 RBP: 00007f6cffce67e1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffef05a67ff R14: 00007f6d00995300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:shm_close+0xb8/0x580 ipc/shm.c:378 Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 64 04 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b 5d 18 48 8d 7b 08 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 23 04 00 00 48 8b 43 08 48 85 c0 74 05 4c 89 ef RSP: 0018:ffffc9000469fbb8 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000001 RSI: 0000000000000008 RDI: 0000000000000008 RBP: ffff8881476ba980 R08: 0000000000000001 R09: ffff8880171036ef R10: ffffed1002e206dd R11: 0000000000000000 R12: ffff88801697c000 R13: ffff888025c05870 R14: 0000000000000008 R15: ffff888025c05870 FS: 00007f6d00995700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6cffda80c0 CR3: 0000000021126000 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 64 04 00 00 jne 0x475 11: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 18: fc ff df 1b: 48 8b 5d 18 mov 0x18(%rbp),%rbx 1f: 48 8d 7b 08 lea 0x8(%rbx),%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 23 04 00 00 jne 0x457 34: 48 8b 43 08 mov 0x8(%rbx),%rax 38: 48 85 c0 test %rax,%rax 3b: 74 05 je 0x42 3d: 4c 89 ef mov %r13,%rdi