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: 28d, last: 8d22h
▶ ▼ ✨ 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 0xdffffc0189c3382f: 0000 [#1] SMP KASAN PTI
KASAN: probably user-memory-access in range [0x0000000c4e19c178-0x0000000c4e19c17f]
CPU: 1 UID: 0 PID: 15188 Comm: syz-executor Not tainted syzkaller #0 PREEMPT_{RT,(full)} 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/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 66 aa a6 fd 44 8b 35 af d9 48 09 4d 03 34 24 4c 89 f0 48 c1 e8 03 <80> 3c 18 00 74 08 4c 89 f7 e8 46 aa a6 fd 49 8b 3e be 04 00 00 00
RSP: 0018:ffffc900038179a0 EFLAGS: 00010202
RAX: 0000000189c3382f RBX: dffffc0000000000 RCX: ffffc90003817ba0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc900038179f8
RBP: ffffc90003817ab8 R08: ffffc90003817a2f R09: 0000000000000000
R10: ffffc90003817a00 R11: fffff52000702f46 R12: ffff8880695334c0
R13: 1ffff92000702f38 R14: 0000000c4e19c178 R15: 1ffff92000702f75
FS:  000055556e4d0500(0000) GS:ffff888124824000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fadd476a9ec CR3: 0000000061552000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 security_inode_getattr+0x152/0x310 security/security.c:1917
 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+0x166/0x520 arch/x86/entry/syscall_64.c:84
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f4c868bdb9a
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:00007ffe78a5cd28 EFLAGS: 00000286 ORIG_RAX: 0000000000000106
RAX: ffffffffffffffda RBX: 00007f4c86955f63 RCX: 00007f4c868bdb9a
RDX: 00007ffe78a5cd50 RSI: 00007ffe78a5cde0 RDI: 00000000ffffff9c
RBP: 00007ffe78a5cde0 R08: 00007ffe78a5dde0 R09: 00000000ffffffff
R10: 0000000000000100 R11: 0000000000000286 R12: 00007ffe78a5de70
R13: 00007f4c86955f63 R14: 00000000001128df R15: 00007ffe78a5deb0
 </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 66 aa a6 fd 44 8b 35 af d9 48 09 4d 03 34 24 4c 89 f0 48 c1 e8 03 <80> 3c 18 00 74 08 4c 89 f7 e8 46 aa a6 fd 49 8b 3e be 04 00 00 00
RSP: 0018:ffffc900038179a0 EFLAGS: 00010202
RAX: 0000000189c3382f RBX: dffffc0000000000 RCX: ffffc90003817ba0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc900038179f8
RBP: ffffc90003817ab8 R08: ffffc90003817a2f R09: 0000000000000000
R10: ffffc90003817a00 R11: fffff52000702f46 R12: ffff8880695334c0
R13: 1ffff92000702f38 R14: 0000000c4e19c178 R15: 1ffff92000702f75
FS:  000055556e4d0500(0000) GS:ffff888124824000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fadd476a9ec CR3: 0000000061552000 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 66 aa a6 fd       	call   0xfda6aa7e
  18:	44 8b 35 af d9 48 09 	mov    0x948d9af(%rip),%r14d        # 0x948d9ce
  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 46 aa a6 fd       	call   0xfda6aa7e
  38:	49 8b 3e             	mov    (%r14),%rdi
  3b:	be 04 00 00 00       	mov    $0x4,%esi

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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.