syzbot


general protection fault in tomoyo_print_entry

Status: moderation: reported on 2024/12/23 01:01
Subsystems: tomoyo
[Documentation on labels]
Reported-by: syzbot+6ad314666f9ef63d9adf@syzkaller.appspotmail.com
First crash: 7d22h, last: 11h10m

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: 0 UID: 0 PID: 32344 Comm: ÿÿòÿÿÿòÿÿÿòÿÿÿò Not tainted 6.13.0-rc4-syzkaller-00012-g9b2ffa6148b1 #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 6e 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:ffffc9000c07fa90 EFLAGS: 00010202
RAX: 0000000000000003 RBX: dffffc0000000000 RCX: ffffc9000d171000
RDX: 0000000000000001 RSI: ffffffff84505de2 RDI: 0000000000000019
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffffed1012942b1a
R13: ffff88807dbee910 R14: ffff888094a15800 R15: 0000000000000000
FS:  00007f7ff71f66c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000007000 CR3: 0000000068f42000 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:0x7f7ff9385d29
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:00007f7ff71f6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007f7ff9575fa0 RCX: 00007f7ff9385d29
RDX: 000000000000b4d3 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 00007f7ff9401b08 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f7ff9575fa0 R15: 00007fffc008fa28
 </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 6e 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:ffffc9000c07fa90 EFLAGS: 00010202
RAX: 0000000000000003 RBX: dffffc0000000000 RCX: ffffc9000d171000
RDX: 0000000000000001 RSI: ffffffff84505de2 RDI: 0000000000000019
RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffffed1012942b1a
R13: ffff88807dbee910 R14: ffff888094a15800 R15: 0000000000000000
FS:  00007f7ff71f66c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000056499b8a5680 CR3: 0000000068f42000 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 6e f1 48 fd       	call   0xfd48f187
  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 (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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.