syzbot


general protection fault in tomoyo_print_entry

Status: upstream: reported on 2024/12/27 20:31
Subsystems: tomoyo
[Documentation on labels]
Reported-by: syzbot+b189984e86625a050e68@syzkaller.appspotmail.com
First crash: 9d14h, last: 19h14m
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [tomoyo?] general protection fault in tomoyo_print_entry 0 (1) 2024/12/27 20:31

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: 0 PID: 7293 Comm: syz.1.535 Not tainted 6.13.0-rc4-syzkaller-00069-g8379578b11d5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:tomoyo_print_entry+0x83/0x2720 security/tomoyo/common.c:1387
Code: f3 65 48 8b 04 25 28 00 00 00 48 89 84 24 38 01 00 00 31 c0 e8 3e f1 48 fd 48 8d 7d 19 48 89 f8 48 89 fa 48 c1 e8 03 83 e2 07 <0f> b6 04 18 38 d0 7f 08 84 c0 0f 85 2e 14 00 00 49 8d 8e f3 00 00
RSP: 0018:ffffc90002ef7a90 EFLAGS: 00010202
RAX: 0000000000000003 RBX: dffffc0000000000 RCX: ffffc9000c2b9000
RDX: 0000000000000001 RSI: ffffffff84505e12 RDI: 0000000000000019
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000003 R12: ffffed100436ba1a
R13: ffff8880280e2f90 R14: ffff888021b5d000 R15: 0000000000000001
FS:  00007fa7aef106c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020008000 CR3: 000000007b9ee000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 tomoyo_read_domain2+0xa3/0x380 security/tomoyo/common.c:1596
 tomoyo_read_domain security/tomoyo/common.c:1649 [inline]
 tomoyo_read_domain+0x3d2/0x9c0 security/tomoyo/common.c:1610
 tomoyo_read_control+0x281/0x510 security/tomoyo/common.c:2591
 vfs_read+0x1df/0xbe0 fs/read_write.c:563
 ksys_read+0x12b/0x250 fs/read_write.c:708
 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:0x7fa7ae185d29
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fa7aef10038 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007fa7ae375fa0 RCX: 00007fa7ae185d29
RDX: 000000020000074c RSI: 0000000020001080 RDI: 0000000000000004
RBP: 00007fa7ae201b08 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fa7ae375fa0 R15: 00007ffe481b5f38
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:tomoyo_print_entry+0x83/0x2720 security/tomoyo/common.c:1387
Code: f3 65 48 8b 04 25 28 00 00 00 48 89 84 24 38 01 00 00 31 c0 e8 3e f1 48 fd 48 8d 7d 19 48 89 f8 48 89 fa 48 c1 e8 03 83 e2 07 <0f> b6 04 18 38 d0 7f 08 84 c0 0f 85 2e 14 00 00 49 8d 8e f3 00 00
RSP: 0018:ffffc90002ef7a90 EFLAGS: 00010202
RAX: 0000000000000003 RBX: dffffc0000000000 RCX: ffffc9000c2b9000
RDX: 0000000000000001 RSI: ffffffff84505e12 RDI: 0000000000000019
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000003 R12: ffffed100436ba1a
R13: ffff8880280e2f90 R14: ffff888021b5d000 R15: 0000000000000001
FS:  00007fa7aef106c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5f63dd4f98 CR3: 000000007b9ee000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	f3 65 48 8b 04 25 28 	repz mov %gs:0x28,%rax
   7:	00 00 00
   a:	48 89 84 24 38 01 00 	mov    %rax,0x138(%rsp)
  11:	00
  12:	31 c0                	xor    %eax,%eax
  14:	e8 3e f1 48 fd       	call   0xfd48f157
  19:	48 8d 7d 19          	lea    0x19(%rbp),%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 18          	movzbl (%rax,%rbx,1),%eax <-- trapping instruction
  2e:	38 d0                	cmp    %dl,%al
  30:	7f 08                	jg     0x3a
  32:	84 c0                	test   %al,%al
  34:	0f 85 2e 14 00 00    	jne    0x1468
  3a:	49                   	rex.WB
  3b:	8d                   	.byte 0x8d
  3c:	8e f3                	mov    %ebx,%?

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/27 20:30 upstream 8379578b11d5 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in tomoyo_print_entry
2024/12/26 12:18 upstream 9b2ffa6148b1 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in tomoyo_print_entry
2024/12/25 03:30 upstream 9b2ffa6148b1 444551c4 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in tomoyo_print_entry
2024/12/24 05:52 upstream f07044dd0df0 444551c4 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in tomoyo_print_entry
2024/12/19 00:56 upstream c061cf420ded 1432fc84 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in tomoyo_print_entry
* Struck through repros no longer work on HEAD.