syzbot


general protection fault in tomoyo_check_acl (4)

Status: closed as dup on 2025/01/04 13:18
Subsystems: tomoyo
[Documentation on labels]
Reported-by: syzbot+2232f2316fe61cb50344@syzkaller.appspotmail.com
First crash: 106d, last: 85d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
general protection fault in account_kernel_stack (3) kernel C 7 86d 101d
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] [tomoyo?] general protection fault in tomoyo_check_acl (4) 1 (2) 2025/01/04 13:18
[syzbot] Monthly tomoyo report (Dec 2024) 0 (1) 2024/12/19 18:40
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel paging request in tomoyo_check_acl tomoyo 2 1243d 1284d 0/28 auto-closed as invalid on 2022/01/30 10:49
upstream general protection fault in tomoyo_check_acl tomoyo 2 1680d 1768d 0/28 auto-closed as invalid on 2020/12/20 04:05
upstream general protection fault in tomoyo_check_acl (3) hfs C inconclusive done 1 473d 630d 25/28 fixed on 2024/01/30 15:47
upstream general protection fault in tomoyo_check_acl (2) tomoyo 5 1425d 1411d 0/28 auto-closed as invalid on 2021/08/31 18:40

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f]
CPU: 1 UID: 101 PID: 5499 Comm: dhcpcd Not tainted 6.13.0-rc5-syzkaller-00012-g0bc21e701a6f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:tomoyo_check_acl+0xb0/0x410 security/tomoyo/domain.c:173
Code: 00 0f 85 57 03 00 00 49 8b 5d 00 49 39 dd 0f 84 fc 01 00 00 e8 81 fd 47 fd 48 8d 7b 18 48 89 f8 48 89 fa 48 c1 e8 03 83 e2 07 <0f> b6 04 28 38 d0 7f 08 84 c0 0f 85 cc 02 00 00 44 0f b6 7b 18 31
RSP: 0018:ffffc90002e27bf0 EFLAGS: 00010246
RAX: 0000000000000003 RBX: 0000000000000000 RCX: 0000000000000001
RDX: 0000000000000000 RSI: ffffffff8451523f RDI: 0000000000000018
RBP: dffffc0000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000001 R12: ffffc90002e27cb0
R13: ffff888032308390 R14: 0000000000000000 R15: 0000000000000002
FS:  00007f3591bb0740(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b305efff8 CR3: 0000000028dc0000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 tomoyo_path_number_perm+0x350/0x5b0 security/tomoyo/file.c:733
 security_file_ioctl+0x9b/0x240 security/security.c:2908
 __do_sys_ioctl fs/ioctl.c:900 [inline]
 __se_sys_ioctl fs/ioctl.c:892 [inline]
 __x64_sys_ioctl+0xb7/0x200 fs/ioctl.c:892
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f3591c7ed49
Code: 5c c3 48 8d 44 24 08 48 89 54 24 e0 48 89 44 24 c0 48 8d 44 24 d0 48 89 44 24 c8 b8 10 00 00 00 c7 44 24 b8 10 00 00 00 0f 05 <41> 89 c0 3d 00 f0 ff ff 76 10 48 8b 15 ae 60 0d 00 f7 d8 41 83 c8
RSP: 002b:00007ffca0dadac8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00005555b7452c70 RCX: 00007f3591c7ed49
RDX: 00007ffca0dadad0 RSI: 0000000000008921 RDI: 0000000000000011
RBP: 0000000000000000 R08: 0000000000000008 R09: 0000000000000035
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffca0dadad0
R13: 0000555595eb2f88 R14: 00005555b7452c70 R15: 00005555b74534e0
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:tomoyo_check_acl+0xb0/0x410 security/tomoyo/domain.c:173
Code: 00 0f 85 57 03 00 00 49 8b 5d 00 49 39 dd 0f 84 fc 01 00 00 e8 81 fd 47 fd 48 8d 7b 18 48 89 f8 48 89 fa 48 c1 e8 03 83 e2 07 <0f> b6 04 28 38 d0 7f 08 84 c0 0f 85 cc 02 00 00 44 0f b6 7b 18 31
RSP: 0018:ffffc90002e27bf0 EFLAGS: 00010246
RAX: 0000000000000003 RBX: 0000000000000000 RCX: 0000000000000001
RDX: 0000000000000000 RSI: ffffffff8451523f RDI: 0000000000000018
RBP: dffffc0000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000001 R12: ffffc90002e27cb0
R13: ffff888032308390 R14: 0000000000000000 R15: 0000000000000002
FS:  00007f3591bb0740(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f96d1bf6d58 CR3: 0000000028dc0000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	00 0f                	add    %cl,(%rdi)
   2:	85 57 03             	test   %edx,0x3(%rdi)
   5:	00 00                	add    %al,(%rax)
   7:	49 8b 5d 00          	mov    0x0(%r13),%rbx
   b:	49 39 dd             	cmp    %rbx,%r13
   e:	0f 84 fc 01 00 00    	je     0x210
  14:	e8 81 fd 47 fd       	call   0xfd47fd9a
  19:	48 8d 7b 18          	lea    0x18(%rbx),%rdi
  1d:	48 89 f8             	mov    %rdi,%rax
  20:	48 89 fa             	mov    %rdi,%rdx
  23:	48 c1 e8 03          	shr    $0x3,%rax
  27:	83 e2 07             	and    $0x7,%edx
* 2a:	0f b6 04 28          	movzbl (%rax,%rbp,1),%eax <-- trapping instruction
  2e:	38 d0                	cmp    %dl,%al
  30:	7f 08                	jg     0x3a
  32:	84 c0                	test   %al,%al
  34:	0f 85 cc 02 00 00    	jne    0x306
  3a:	44 0f b6 7b 18       	movzbl 0x18(%rbx),%r15d
  3f:	31                   	.byte 0x31

Crashes (14):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/01/03 05:05 upstream 0bc21e701a6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in tomoyo_check_acl
2025/01/01 05:29 upstream ccb98ccef0e5 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in tomoyo_check_acl
2024/12/31 17:39 upstream ccb98ccef0e5 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in tomoyo_check_acl
2024/12/31 11:35 upstream ccb98ccef0e5 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in tomoyo_check_acl
2024/12/31 04:40 upstream ccb98ccef0e5 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in tomoyo_check_acl
2024/12/23 07:05 upstream 4bbf9020becb b4fbdbd4 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in tomoyo_check_acl
2024/12/21 22:31 upstream 499551201b5f d7f584ee .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in tomoyo_check_acl
2024/12/21 20:17 upstream 499551201b5f d7f584ee .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in tomoyo_check_acl
2024/12/20 08:35 upstream 8faabc041a00 c87fa8a3 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in tomoyo_check_acl
2024/12/19 17:44 upstream eabcdba3ad40 1d58202c .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in tomoyo_check_acl
2024/12/15 17:24 upstream 2d8308bf5b67 7cbfbb3a .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in tomoyo_check_acl
2024/12/14 23:05 upstream a0e3919a2df2 7cbfbb3a .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in tomoyo_check_acl
2024/12/13 02:26 upstream 150b567e0d57 3547e30f .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in tomoyo_check_acl
2024/12/12 09:29 upstream 231825b2e1ff 035bb8e0 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in tomoyo_check_acl
* Struck through repros no longer work on HEAD.