general protection fault in smack_inode_getattr

Status: upstream: reported on 2026/10/14 08:37
Subsystems: lsm
Labels: prio:high
[Documentation on labels]
Reported-by: syzbot+ce678add490179a73d5a@syzkaller.appspotmail.com
First crash: 35d, last: 4h46m
▶ ▼ ✨ AI Jobs (2)
ID Workflow Result Correct Bug Created Started Finished Revision
0fcb58be repro-c 💥 general protection fault in smack_inode_getattr 2026/10/13 14:10 2026/10/13 14:10 2026/10/13 17:02 7321cd29
469a8247 assessment-security DenialOfService: ✅ Exploitable: ✅ FilesystemTrigger: ❌ NetworkTrigger: ❌ PeripheralTrigger: ❌ RemoteTrigger: ❌ Unprivileged: ✅ UserNamespace: ✅ VMGuestTrigger: ❌ VMHostTrigger: ❌ ❓ general protection fault in smack_inode_getattr 2026/10/12 00:01 2026/10/12 00:01 2026/10/12 00:46 4f92358f
▶ ▼ Discussions (3)
Title Replies (including bot) Last reply
[PATCH v2] jfs: fix out-of-bounds write in add_missing_indices() 2 (2) 2026/11/02 06:40
Re: [PATCH] jfs: fix out-of-bounds write in add_missing_indices() 1 (1) 2026/10/28 16:49
[syzbot] [lsm?] general protection fault in smack_inode_getattr 0 (1) 2026/10/14 08:37

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc018c0c1fa5: 0000 [#1] SMP KASAN PTI
KASAN: probably user-memory-access in range [0x0000000c6060fd28-0x0000000c6060fd2f]
CPU: 0 UID: 0 PID: 6606 Comm: syz-executor Not tainted syzkaller #0 PREEMPT_{RT,(full)} 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:smk_of_inode security/smack/smack.h:411 [inline]
RIP: 0010:smack_inode_getattr+0x1ac/0x240 security/smack/smack_lsm.c:1309
Code: 48 bb 00 00 00 00 00 fc ff df 80 3c 18 00 74 08 4c 89 e7 e8 c6 9e a4 fd 44 8b 35 af 83 46 09 4d 03 34 24 4c 89 f0 48 c1 e8 03 <80> 3c 18 00 74 08 4c 89 f7 e8 a6 9e a4 fd 49 8b 3e be 04 00 00 00
RSP: 0018:ffffc9000441f9a0 EFLAGS: 00010206
RAX: 000000018c0c1fa5 RBX: dffffc0000000000 RCX: ffffc9000441fba0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc9000441f9f8
RBP: ffffc9000441fab8 R08: ffffc9000441fa2f R09: 0000000000000000
R10: ffffc9000441fa00 R11: fffff52000883f46 R12: ffff888061f5db60
R13: 1ffff92000883f38 R14: 0000000c6060fd28 R15: 1ffff92000883f75
FS:  000055555bfcb500(0000) GS:ffff888124709000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff2a5304b4c CR3: 00000000596f4000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 security_inode_getattr+0x152/0x310 security/security.c:1918
 vfs_getattr+0x23/0x70 fs/stat.c:263
 vfs_statx_path+0x2b/0x230 fs/stat.c:303
 vfs_statx+0x12e/0x200 fs/stat.c:360
 vfs_fstatat+0x11b/0x170 fs/stat.c:377
 __do_sys_newfstatat fs/stat.c:542 [inline]
 __se_sys_newfstatat+0x118/0x3a0 fs/stat.c:536
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x16a/0x530 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f3bb6d67b1a
Code: 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 41 89 ca b8 06 01 00 00 0f 05 <3d> 00 f0 ff ff 77 07 31 c0 c3 0f 1f 40 00 48 c7 c2 e8 ff ff ff f7
RSP: 002b:00007ffc8ab194a8 EFLAGS: 00000286 ORIG_RAX: 0000000000000106
RAX: ffffffffffffffda RBX: 00007f3bb6df7433 RCX: 00007f3bb6d67b1a
RDX: 00007ffc8ab194d0 RSI: 00007ffc8ab19560 RDI: 00000000ffffff9c
RBP: 00007ffc8ab19560 R08: 00007ffc8ab1a560 R09: 00000000ffffffff
R10: 0000000000000100 R11: 0000000000000286 R12: 00007ffc8ab1a5f0
R13: 00007f3bb6df7433 R14: 00000000000337ab R15: 00007ffc8ab1a630
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:smk_of_inode security/smack/smack.h:411 [inline]
RIP: 0010:smack_inode_getattr+0x1ac/0x240 security/smack/smack_lsm.c:1309
Code: 48 bb 00 00 00 00 00 fc ff df 80 3c 18 00 74 08 4c 89 e7 e8 c6 9e a4 fd 44 8b 35 af 83 46 09 4d 03 34 24 4c 89 f0 48 c1 e8 03 <80> 3c 18 00 74 08 4c 89 f7 e8 a6 9e a4 fd 49 8b 3e be 04 00 00 00
RSP: 0018:ffffc9000441f9a0 EFLAGS: 00010206
RAX: 000000018c0c1fa5 RBX: dffffc0000000000 RCX: ffffc9000441fba0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc9000441f9f8
RBP: ffffc9000441fab8 R08: ffffc9000441fa2f R09: 0000000000000000
R10: ffffc9000441fa00 R11: fffff52000883f46 R12: ffff888061f5db60
R13: 1ffff92000883f38 R14: 0000000c6060fd28 R15: 1ffff92000883f75
FS:  000055555bfcb500(0000) GS:ffff888124709000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff2a4fc8000 CR3: 00000000596f4000 CR4: 00000000003526f0
----------------
Code disassembly (best guess):
   0:	48 bb 00 00 00 00 00 	movabs $0xdffffc0000000000,%rbx
   7:	fc ff df
   a:	80 3c 18 00          	cmpb   $0x0,(%rax,%rbx,1)
   e:	74 08                	je     0x18
  10:	4c 89 e7             	mov    %r12,%rdi
  13:	e8 c6 9e a4 fd       	call   0xfda49ede
  18:	44 8b 35 af 83 46 09 	mov    0x94683af(%rip),%r14d        # 0x94683ce
  1f:	4d 03 34 24          	add    (%r12),%r14
  23:	4c 89 f0             	mov    %r14,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	80 3c 18 00          	cmpb   $0x0,(%rax,%rbx,1) <-- trapping instruction
  2e:	74 08                	je     0x38
  30:	4c 89 f7             	mov    %r14,%rdi
  33:	e8 a6 9e a4 fd       	call   0xfda49ede
  38:	49 8b 3e             	mov    (%r14),%rdi
  3b:	be 04 00 00 00       	mov    $0x4,%esi

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/14 10:04 upstream 97d73c825122 819ebe34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in smack_inode_getattr
2026/10/30 01:12 upstream 4dd16e31135e b498adee .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in smack_inode_getattr
2026/10/30 01:12 upstream 4dd16e31135e b498adee .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in smack_inode_getattr
2026/10/10 08:38 upstream fc1c25014ff8 4f92358f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in smack_inode_getattr
2026/10/10 08:35 upstream fc1c25014ff8 4f92358f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in smack_inode_getattr
2026/10/10 08:34 upstream fc1c25014ff8 4f92358f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in smack_inode_getattr
2026/10/10 08:27 upstream fc1c25014ff8 4f92358f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in smack_inode_getattr
2026/10/10 08:26 upstream fc1c25014ff8 4f92358f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in smack_inode_getattr
* Struck through repros no longer work on HEAD.