syzbot


BUG: unable to handle kernel paging request in tomoyo_check_acl

Status: auto-closed as invalid on 2022/01/30 10:49
Subsystems: tomoyo
[Documentation on labels]
Reported-by: syzbot+38ac2a600eb9bcf4e571@syzkaller.appspotmail.com
First crash: 923d, last: 879d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in tomoyo_check_acl (3) hfs C inconclusive done 1 109d 266d 26/26 fixed on 2024/01/30 15:47
upstream general protection fault in tomoyo_check_acl (2) tomoyo 5 1060d 1047d 0/26 auto-closed as invalid on 2021/08/31 18:40
upstream general protection fault in tomoyo_check_acl tomoyo 2 1315d 1403d 0/26 auto-closed as invalid on 2020/12/20 04:05

Sample crash report:
BUG: unable to handle page fault for address: ffff888147af0618
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 10801067 P4D 10801067 PUD 141f9b063 PMD 127063 PTE 0
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 9291 Comm: systemd-udevd Not tainted 5.15.0-rc1-next-20210917-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:tomoyo_check_acl+0xbc/0x450 security/tomoyo/domain.c:173
Code: fa 01 00 00 e8 15 65 d7 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 f7 02 00 00 <44> 0f b6 73 18 31 ff 44 89 f6 e8 25 6b d7 fd 45 84 f6 0f 85 61 01
RSP: 0018:ffffc9000544f758 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff888147af0600 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff839ea94b RDI: ffff888147af0618
RBP: dffffc0000000000 R08: 0000000005d60b2c R09: 0000000000000000
R10: ffffffff839ea9f8 R11: 0000000000000000 R12: ffffc9000544f850
R13: ffff888012ddcc90 R14: 0000000000000000 R15: 0000000000000000
FS:  00007f05357238c0(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffff888147af0618 CR3: 000000008b05a000 CR4: 00000000001526f0
Call Trace:
 tomoyo_path_permission security/tomoyo/file.c:586 [inline]
 tomoyo_path_permission+0x1ff/0x3a0 security/tomoyo/file.c:573
 tomoyo_check_open_permission+0x33e/0x380 security/tomoyo/file.c:777
 tomoyo_file_open security/tomoyo/tomoyo.c:311 [inline]
 tomoyo_file_open+0xa3/0xd0 security/tomoyo/tomoyo.c:306
 security_file_open+0x45/0xb0 security/security.c:1634
 do_dentry_open+0x353/0x11d0 fs/open.c:809
 do_open fs/namei.c:3428 [inline]
 path_openat+0x1c9a/0x2740 fs/namei.c:3561
 do_filp_open+0x1aa/0x400 fs/namei.c:3588
 do_sys_openat2+0x16d/0x4d0 fs/open.c:1200
 do_sys_open fs/open.c:1216 [inline]
 __do_sys_open fs/open.c:1224 [inline]
 __se_sys_open fs/open.c:1220 [inline]
 __x64_sys_open+0x119/0x1c0 fs/open.c:1220
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f0534869840
Code: 73 01 c3 48 8b 0d 68 77 20 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 83 3d 89 bb 20 00 00 75 10 b8 02 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 1e f6 ff ff 48 89 04 24
RSP: 002b:00007ffe762cd018 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 0000000000000701 RCX: 00007f0534869840
RDX: 0000000000000001 RSI: 0000000000080000 RDI: 00007ffe762cd020
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000012
R10: 0000000000000064 R11: 0000000000000246 R12: 00007ffe762ce070
R13: 00007ffe762cf100 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
CR2: ffff888147af0618
---[ end trace 09ae5573910cb1bb ]---
RIP: 0010:tomoyo_check_acl+0xbc/0x450 security/tomoyo/domain.c:173
Code: fa 01 00 00 e8 15 65 d7 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 f7 02 00 00 <44> 0f b6 73 18 31 ff 44 89 f6 e8 25 6b d7 fd 45 84 f6 0f 85 61 01
RSP: 0018:ffffc9000544f758 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff888147af0600 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff839ea94b RDI: ffff888147af0618
RBP: dffffc0000000000 R08: 0000000005d60b2c R09: 0000000000000000
R10: ffffffff839ea9f8 R11: 0000000000000000 R12: ffffc9000544f850
R13: ffff888012ddcc90 R14: 0000000000000000 R15: 0000000000000000
FS:  00007f05357238c0(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffff888147af0618 CR3: 000000008b05a000 CR4: 00000000001526f0
----------------
Code disassembly (best guess):
   0:	fa                   	cli
   1:	01 00                	add    %eax,(%rax)
   3:	00 e8                	add    %ch,%al
   5:	15 65 d7 fd 48       	adc    $0x48fdd765,%eax
   a:	8d 7b 18             	lea    0x18(%rbx),%edi
   d:	48 89 f8             	mov    %rdi,%rax
  10:	48 89 fa             	mov    %rdi,%rdx
  13:	48 c1 e8 03          	shr    $0x3,%rax
  17:	83 e2 07             	and    $0x7,%edx
  1a:	0f b6 04 28          	movzbl (%rax,%rbp,1),%eax
  1e:	38 d0                	cmp    %dl,%al
  20:	7f 08                	jg     0x2a
  22:	84 c0                	test   %al,%al
  24:	0f 85 f7 02 00 00    	jne    0x321
* 2a:	44 0f b6 73 18       	movzbl 0x18(%rbx),%r14d <-- trapping instruction
  2f:	31 ff                	xor    %edi,%edi
  31:	44 89 f6             	mov    %r14d,%esi
  34:	e8 25 6b d7 fd       	callq  0xfdd76b5e
  39:	45 84 f6             	test   %r14b,%r14b
  3c:	0f                   	.byte 0xf
  3d:	85 61 01             	test   %esp,0x1(%rcx)

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/09/17 18:39 linux-next 9004fd387338 70b76c1d .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in tomoyo_check_acl
2021/11/01 10:48 upstream 8bb7eca972ad 098b5d53 .config console log report info ci-upstream-kasan-gce-smack-root general protection fault in tomoyo_check_acl
* Struck through repros no longer work on HEAD.