Oops: general protection fault, probably for non-canonical address 0xdffffc0183fbf280: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: probably user-memory-access in range [0x0000000c1fdf9400-0x0000000c1fdf9407] CPU: 0 UID: 0 PID: 5712 Comm: syz-executor Not tainted 6.10.0-rc7-next-20240712-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 RIP: 0010:hook_inode_free_security+0x5b/0xb0 security/landlock/fs.c:1216 Code: 8a fd 48 8b 1b 48 c7 c0 dc 61 df 8d 48 c1 e8 03 42 0f b6 04 30 84 c0 75 3e 48 63 05 eb 16 6e 09 48 01 c3 48 89 d8 48 c1 e8 03 <42> 80 3c 30 00 74 08 48 89 df e8 26 06 8a fd 48 83 3b 00 75 0d e8 RSP: 0018:ffffc90004d579a8 EFLAGS: 00010202 RAX: 0000000183fbf280 RBX: 0000000c1fdf9400 RCX: ffff888060b3bc00 RDX: 0000000000000000 RSI: 0000000000000040 RDI: ffff888065cd16a0 RBP: ffffffff8c02b500 R08: ffffffff82136015 R09: 1ffff1100cb9a2e4 R10: dffffc0000000000 R11: ffffffff84714aa0 R12: dffffc0000000000 R13: 1ffff1100cb9a308 R14: dffffc0000000000 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055b5ed06a000 CR3: 0000000068cbc000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 000000000000000e DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: security_inode_free+0x48/0xd0 security/security.c:1613 __destroy_inode+0x2d9/0x650 fs/inode.c:288 destroy_inode fs/inode.c:311 [inline] evict+0x521/0x630 fs/inode.c:684 dispose_list fs/inode.c:702 [inline] evict_inodes+0x5f9/0x690 fs/inode.c:752 generic_shutdown_super+0x9d/0x2d0 fs/super.c:627 kill_block_super+0x44/0x90 fs/super.c:1685 deactivate_locked_super+0xc4/0x130 fs/super.c:473 cleanup_mnt+0x41f/0x4b0 fs/namespace.c:1372 task_work_run+0x24f/0x310 kernel/task_work.c:222 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0xa2f/0x27f0 kernel/exit.c:882 do_group_exit+0x207/0x2c0 kernel/exit.c:1031 __do_sys_exit_group kernel/exit.c:1042 [inline] __se_sys_exit_group kernel/exit.c:1040 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1040 x64_sys_call+0x26c3/0x26d0 arch/x86/include/generated/asm/syscalls_64.h:232 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f9d97175bd9 Code: Unable to access opcode bytes at 0x7f9d97175baf. RSP: 002b:00007ffd432021c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 00007f9d971e353a RCX: 00007f9d97175bd9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001 RBP: 0000000000000002 R08: 00007ffd431fff67 R09: 00007ffd43203480 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffd43203480 R13: 00007f9d971e3515 R14: 000000000003ebcb R15: 000000000003e8c4 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:hook_inode_free_security+0x5b/0xb0 security/landlock/fs.c:1216 Code: 8a fd 48 8b 1b 48 c7 c0 dc 61 df 8d 48 c1 e8 03 42 0f b6 04 30 84 c0 75 3e 48 63 05 eb 16 6e 09 48 01 c3 48 89 d8 48 c1 e8 03 <42> 80 3c 30 00 74 08 48 89 df e8 26 06 8a fd 48 83 3b 00 75 0d e8 RSP: 0018:ffffc90004d579a8 EFLAGS: 00010202 RAX: 0000000183fbf280 RBX: 0000000c1fdf9400 RCX: ffff888060b3bc00 RDX: 0000000000000000 RSI: 0000000000000040 RDI: ffff888065cd16a0 RBP: ffffffff8c02b500 R08: ffffffff82136015 R09: 1ffff1100cb9a2e4 R10: dffffc0000000000 R11: ffffffff84714aa0 R12: dffffc0000000000 R13: 1ffff1100cb9a308 R14: dffffc0000000000 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f72841dd5a0 CR3: 000000006c596000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 000000000000000e DR6: 00000000ffff0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 8a fd mov %ch,%bh 2: 48 8b 1b mov (%rbx),%rbx 5: 48 c7 c0 dc 61 df 8d mov $0xffffffff8ddf61dc,%rax c: 48 c1 e8 03 shr $0x3,%rax 10: 42 0f b6 04 30 movzbl (%rax,%r14,1),%eax 15: 84 c0 test %al,%al 17: 75 3e jne 0x57 19: 48 63 05 eb 16 6e 09 movslq 0x96e16eb(%rip),%rax # 0x96e170b 20: 48 01 c3 add %rax,%rbx 23: 48 89 d8 mov %rbx,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 48 89 df mov %rbx,%rdi 34: e8 26 06 8a fd call 0xfd8a065f 39: 48 83 3b 00 cmpq $0x0,(%rbx) 3d: 75 0d jne 0x4c 3f: e8 .byte 0xe8