syzbot


general protection fault in smack_inode_permission (3)

Status: moderation: reported on 2025/11/07 02:43
Subsystems: lsm
[Documentation on labels]
Reported-by: syzbot+8562ac68bd1e885da59f@syzkaller.appspotmail.com
First crash: 37d, last: 20d
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in smack_inode_permission lsm 8 13 328d 582d 0/29 auto-obsoleted due to no activity on 2025/04/25 12:24
upstream general protection fault in smack_inode_permission (2) lsm 2 1 155d 151d 0/29 auto-obsoleted due to no activity on 2025/10/05 23:45
upstream BUG: unable to handle kernel NULL pointer dereference in smack_inode_permission lsm mm 10 C 1 1126d 1122d 22/29 fixed on 2023/02/24 13:50

Sample crash report:
ERROR: (device loop3): jfs_readdir: JFS:Dtree error: ino = 2, bn=0, index = 3
non-latin1 character 0xffff found in JFS file name
mount with iocharset=utf8 to access
ERROR: (device loop3): jfs_readdir: JFS:Dtree error: ino = 2, bn=0, index = 5
ERROR: (device loop3): jfs_readdir: JFS:Dtree error: ino = 2, bn=0, index = 6
ERROR: (device loop3): jfs_readdir: JFS:Dtree error: ino = 2, bn=0, index = 7
Oops: general protection fault, probably for non-canonical address 0xdffffc018bcf87a5: 0000 [#1] SMP KASAN PTI
KASAN: probably user-memory-access in range [0x0000000c5e7c3d28-0x0000000c5e7c3d2f]
CPU: 1 UID: 0 PID: 11688 Comm: syz-executor Not tainted syzkaller #0 PREEMPT_{RT,(full)} 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
RIP: 0010:smk_of_inode security/smack/smack.h:392 [inline]
RIP: 0010:smack_inode_permission+0x271/0x320 security/smack/smack_lsm.c:1217
Code: 03 80 3c 18 00 74 08 4c 89 ff e8 ba 34 ed fd 48 63 1d 6f 00 c8 08 49 03 1f 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 91 34 ed fd 48 8b 3b 44 89 f6 48 8d
RSP: 0018:ffffc900045079a0 EFLAGS: 00010206
RAX: 000000018bcf87a5 RBX: 0000000c5e7c3d28 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc900045079f8
RBP: ffffc90004507ab0 R08: ffffc90004507a27 R09: 0000000000000000
R10: ffffc90004507a00 R11: fffff520008a0f45 R12: 1ffff920008a0f38
R13: ffffc900045079e0 R14: 0000000000000001 R15: ffff88805c383ef8
FS:  0000555587b9d500(0000) GS:ffff888126ef7000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555587bc0608 CR3: 00000000680c2000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 security_inode_permission+0xf8/0x310 security/security.c:2363
 may_lookup fs/namei.c:1858 [inline]
 link_path_walk+0x232/0xea0 fs/namei.c:2467
 path_lookupat+0x97/0x430 fs/namei.c:2675
 filename_lookup+0x212/0x570 fs/namei.c:2705
 user_path_at+0x3a/0x60 fs/namei.c:3215
 ksys_umount fs/namespace.c:2052 [inline]
 __do_sys_umount fs/namespace.c:2060 [inline]
 __se_sys_umount fs/namespace.c:2058 [inline]
 __x64_sys_umount+0xee/0x160 fs/namespace.c:2058
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fdba89d09f7
Code: a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 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 a8 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007ffc63c68bf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: ffffffffffffffda RBX: 00007fdba8a51d7d RCX: 00007fdba89d09f7
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffc63c68cb0
RBP: 00007ffc63c68cb0 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffc63c69da0
R13: 00007fdba8a51d7d R14: 000000000010a072 R15: 00007ffc63c6ae70
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:smk_of_inode security/smack/smack.h:392 [inline]
RIP: 0010:smack_inode_permission+0x271/0x320 security/smack/smack_lsm.c:1217
Code: 03 80 3c 18 00 74 08 4c 89 ff e8 ba 34 ed fd 48 63 1d 6f 00 c8 08 49 03 1f 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 91 34 ed fd 48 8b 3b 44 89 f6 48 8d
RSP: 0018:ffffc900045079a0 EFLAGS: 00010206
RAX: 000000018bcf87a5 RBX: 0000000c5e7c3d28 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffc900045079f8
RBP: ffffc90004507ab0 R08: ffffc90004507a27 R09: 0000000000000000
R10: ffffc90004507a00 R11: fffff520008a0f45 R12: 1ffff920008a0f38
R13: ffffc900045079e0 R14: 0000000000000001 R15: ffff88805c383ef8
FS:  0000555587b9d500(0000) GS:ffff888126ef7000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555587bc0608 CR3: 00000000680c2000 CR4: 00000000003526f0
----------------
Code disassembly (best guess):
   0:	03 80 3c 18 00 74    	add    0x7400183c(%rax),%eax
   6:	08 4c 89 ff          	or     %cl,-0x1(%rcx,%rcx,4)
   a:	e8 ba 34 ed fd       	call   0xfded34c9
   f:	48 63 1d 6f 00 c8 08 	movslq 0x8c8006f(%rip),%rbx        # 0x8c80085
  16:	49 03 1f             	add    (%r15),%rbx
  19:	48 89 d8             	mov    %rbx,%rax
  1c:	48 c1 e8 03          	shr    $0x3,%rax
  20:	48 b9 00 00 00 00 00 	movabs $0xdffffc0000000000,%rcx
  27:	fc ff df
* 2a:	80 3c 08 00          	cmpb   $0x0,(%rax,%rcx,1) <-- trapping instruction
  2e:	74 08                	je     0x38
  30:	48 89 df             	mov    %rbx,%rdi
  33:	e8 91 34 ed fd       	call   0xfded34c9
  38:	48 8b 3b             	mov    (%rbx),%rdi
  3b:	44 89 f6             	mov    %r14d,%esi
  3e:	48                   	rex.W
  3f:	8d                   	.byte 0x8d

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/11/19 05:28 upstream 5bebe8de1926 ef766cd7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in smack_inode_permission
2025/11/03 02:35 upstream 6146a0f1dfae 2c50b6a9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in smack_inode_permission
* Struck through repros no longer work on HEAD.