syzbot


general protection fault in tomoyo_get_name

Status: auto-closed as invalid on 2021/06/23 15:16
Subsystems: tomoyo
[Documentation on labels]
Reported-by: syzbot+70f6c41a3f85d189ae76@syzkaller.appspotmail.com
First crash: 1090d, last: 1090d

Sample crash report:
general protection fault, probably for non-canonical address 0xe0000212dffffd44: 0000 [#1] PREEMPT SMP KASAN
KASAN: probably user-memory-access in range [0x00003096ffffea20-0x00003096ffffea27]
CPU: 0 PID: 8437 Comm: syz-fuzzer Not tainted 5.12.0-rc8-next-20210423-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:tomoyo_get_name+0xec/0x480 security/tomoyo/memory.c:167
Code: 8b a8 80 0a 8d 90 48 39 2c 24 0f 84 42 01 00 00 49 bc 00 00 00 00 00 fc ff df e8 7f 7e dd fd 48 8d 7d 20 48 89 f8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 74 08 3c 03 0f 8e e4 02 00 00 44 8b 75 20 89
RSP: 0018:ffffc90000f0f5c8 EFLAGS: 00010206
RAX: 00000612dffffd44 RBX: 000000006837bd7a RCX: 0000000000000000
RDX: ffff888025359c80 RSI: ffffffff83977af1 RDI: 00003096ffffea20
RBP: 00003096ffffea00 R08: 000000001516207d R09: ffffffff8c71e1c7
R10: ffffffff83977b1b R11: 0000000000000000 R12: dffffc0000000000
R13: ffff888015152b8d R14: 000000001516207d R15: 0000000000000022
FS:  00000000018494b0(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000559fa090f908 CR3: 0000000012958000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 tomoyo_parse_name_union+0xbc/0x160 security/tomoyo/util.c:260
 tomoyo_update_path_acl security/tomoyo/file.c:395 [inline]
 tomoyo_write_file+0x4c0/0x7f0 security/tomoyo/file.c:1022
 tomoyo_write_domain2+0x116/0x1d0 security/tomoyo/common.c:1152
 tomoyo_add_entry security/tomoyo/common.c:2042 [inline]
 tomoyo_supervisor+0xbc9/0xf00 security/tomoyo/common.c:2103
 tomoyo_audit_path_log security/tomoyo/file.c:168 [inline]
 tomoyo_path_permission security/tomoyo/file.c:587 [inline]
 tomoyo_path_permission+0x270/0x3a0 security/tomoyo/file.c:573
 tomoyo_path_perm+0x2f0/0x400 security/tomoyo/file.c:838
 security_inode_getattr+0xcf/0x140 security/security.c:1332
 vfs_getattr fs/stat.c:139 [inline]
 vfs_statx+0x164/0x390 fs/stat.c:207
 vfs_fstatat fs/stat.c:225 [inline]
 __do_sys_newfstatat+0x96/0x120 fs/stat.c:394
 do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x4af20a
Code: e8 3b 82 fb ff 48 8b 7c 24 10 48 8b 74 24 18 48 8b 54 24 20 4c 8b 54 24 28 4c 8b 44 24 30 4c 8b 4c 24 38 48 8b 44 24 08 0f 05 <48> 3d 01 f0 ff ff 76 20 48 c7 44 24 40 ff ff ff ff 48 c7 44 24 48
RSP: 002b:000000c0002ad698 EFLAGS: 00000216 ORIG_RAX: 0000000000000106
RAX: ffffffffffffffda RBX: 000000c00001e800 RCX: 00000000004af20a
RDX: 000000c00019a858 RSI: 000000c000191100 RDI: ffffffffffffff9c
RBP: 000000c0002ad710 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000100 R11: 0000000000000216 R12: ffffffffffffffff
R13: 0000000000000089 R14: 0000000000000088 R15: 0000000000000100
Modules linked in:
---[ end trace be824b900d48c85b ]---
RIP: 0010:tomoyo_get_name+0xec/0x480 security/tomoyo/memory.c:167
Code: 8b a8 80 0a 8d 90 48 39 2c 24 0f 84 42 01 00 00 49 bc 00 00 00 00 00 fc ff df e8 7f 7e dd fd 48 8d 7d 20 48 89 f8 48 c1 e8 03 <42> 0f b6 04 20 84 c0 74 08 3c 03 0f 8e e4 02 00 00 44 8b 75 20 89
RSP: 0018:ffffc90000f0f5c8 EFLAGS: 00010206
RAX: 00000612dffffd44 RBX: 000000006837bd7a RCX: 0000000000000000
RDX: ffff888025359c80 RSI: ffffffff83977af1 RDI: 00003096ffffea20
RBP: 00003096ffffea00 R08: 000000001516207d R09: ffffffff8c71e1c7
R10: ffffffff83977b1b R11: 0000000000000000 R12: dffffc0000000000
R13: ffff888015152b8d R14: 000000001516207d R15: 0000000000000022
FS:  00000000018494b0(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7d785b4000 CR3: 0000000012958000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/04/24 15:15 linux-next e3d35712f85a 17f0b706 .config console log report ci-upstream-linux-next-kasan-gce-root general protection fault in tomoyo_get_name
* Struck through repros no longer work on HEAD.