general protection fault in hook_inode_free_security

Status: upstream: reported on 2026/12/01 19:37
Reported-by: syzbot+3cab58627a565c7cdf1c@syzkaller.appspotmail.com
First crash: 1d06h, last: 1d06h
▶ ▼ Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in hook_inode_free_security lsm 2 12 871d 938d 28/30 fixed on 2024/10/22 11:57
linux-6.1 BUG: unable to handle kernel paging request in hook_inode_free_security 8 7 1d00h 1d08h 0/3 upstream: reported on 2026/12/01 17:39
linux-5.15 BUG: unable to handle kernel paging request in hook_inode_free_security 8 1 528d 528d 0/3 auto-obsoleted due to no activity on 2025/09/30 04:04

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc01846eae56: 0000 [#1] PREEMPT SMP KASAN
KASAN: probably user-memory-access in range [0x0000000c237572b0-0x0000000c237572b7]
CPU: 0 PID: 4190 Comm: syz-executor Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:hook_inode_free_security+0x57/0xa0 security/landlock/fs.c:419
Code: 0a fe 48 8b 1b 48 c7 c0 c4 d5 e6 8b 48 c1 e8 03 42 0f b6 04 30 84 c0 75 38 48 63 05 67 f1 32 08 48 01 c3 48 89 d8 48 c1 e8 03 <42> 80 3c 30 00 74 08 48 89 df e8 2a d9 0a fe 48 83 3b 00 75 09 e8
RSP: 0000:ffffc90002e2fb48 EFLAGS: 00010206
RAX: 00000001846eae56 RBX: 0000000c237572b0 RCX: ffff888071180000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff888060571ff0
RBP: 0000000000000000 R08: ffff88806057207b R09: 1ffff1100c0ae40f
R10: dffffc0000000000 R11: ffffed100c0ae410 R12: ffff888060572198
R13: dffffc0000000000 R14: dffffc0000000000 R15: dffffc0000000000
FS:  000055555a0c4500(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0fa4f11000 CR3: 000000006367f000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 security_inode_free+0x49/0xc0 security/security.c:1072
 __destroy_inode+0x283/0x5d0 fs/inode.c:286
 destroy_inode fs/inode.c:309 [inline]
 evict+0x86e/0x9d0 fs/inode.c:658
 dispose_list fs/inode.c:676 [inline]
 evict_inodes+0x650/0x6e0 fs/inode.c:730
 generic_shutdown_super+0x93/0x300 fs/super.c:454
 kill_block_super+0x7c/0xe0 fs/super.c:1438
 deactivate_locked_super+0x93/0xf0 fs/super.c:335
 cleanup_mnt+0x426/0x4d0 fs/namespace.c:1148
 task_work_run+0x125/0x1a0 kernel/task_work.c:188
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop+0x10f/0x130 kernel/entry/common.c:184
 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:217
 __syscall_exit_to_user_mode_work kernel/entry/common.c:299 [inline]
 syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:310
 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f6e9bb88f07
Code: a2 c7 05 ec 77 25 00 00 00 00 00 eb 96 e8 b1 13 00 00 90 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007ffdd3fde418 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007f6e9bc1855b RCX: 00007f6e9bb88f07
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffdd3fde4d0
RBP: 00007ffdd3fde4d0 R08: 00007ffdd3fdf4d0 R09: 00000000ffffffff
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffdd3fdf560
R13: 00007f6e9bc1855b R14: 0000000000010aee R15: 00007ffdd3fdf5a0
 </TASK>
Modules linked in:
---[ end trace 8f1bc98b1be19670 ]---
RIP: 0010:hook_inode_free_security+0x57/0xa0 security/landlock/fs.c:419
Code: 0a fe 48 8b 1b 48 c7 c0 c4 d5 e6 8b 48 c1 e8 03 42 0f b6 04 30 84 c0 75 38 48 63 05 67 f1 32 08 48 01 c3 48 89 d8 48 c1 e8 03 <42> 80 3c 30 00 74 08 48 89 df e8 2a d9 0a fe 48 83 3b 00 75 09 e8
RSP: 0000:ffffc90002e2fb48 EFLAGS: 00010206
RAX: 00000001846eae56 RBX: 0000000c237572b0 RCX: ffff888071180000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff888060571ff0
RBP: 0000000000000000 R08: ffff88806057207b R09: 1ffff1100c0ae40f
R10: dffffc0000000000 R11: ffffed100c0ae410 R12: ffff888060572198
R13: dffffc0000000000 R14: dffffc0000000000 R15: dffffc0000000000
FS:  000055555a0c4500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa2aa3a0758 CR3: 000000006367f000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	0a fe                	or     %dh,%bh
   2:	48 8b 1b             	mov    (%rbx),%rbx
   5:	48 c7 c0 c4 d5 e6 8b 	mov    $0xffffffff8be6d5c4,%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 38                	jne    0x51
  19:	48 63 05 67 f1 32 08 	movslq 0x832f167(%rip),%rax        # 0x832f187
  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 2a d9 0a fe       	call   0xfe0ad963
  39:	48 83 3b 00          	cmpq   $0x0,(%rbx)
  3d:	75 09                	jne    0x48
  3f:	e8                   	.byte 0xe8

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/12/01 19:37 linux-5.15.y 9bdc23a21e3d a6d1ba3a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in hook_inode_free_security
2026/12/01 19:36 linux-5.15.y 9bdc23a21e3d a6d1ba3a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in hook_inode_free_security
2026/12/01 19:36 linux-5.15.y 9bdc23a21e3d a6d1ba3a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan general protection fault in hook_inode_free_security
* Struck through repros no longer work on HEAD.