[syzbot] general protection fault in tomoyo_check_acl (2)

syzbot syzbot+750652790d29f243bd16 at syzkaller.appspotmail.com
Mon May 17 11:07:25 UTC 2021


Hello,

syzbot found the following issue on:

HEAD commit:    5d869070 net: phy: marvell: don't use empty switch default..
git tree:       net-next
console output: https://syzkaller.appspot.com/x/log.txt?x=120c7ffed00000
kernel config:  https://syzkaller.appspot.com/x/.config?x=2c0b14609f12d53
dashboard link: https://syzkaller.appspot.com/bug?extid=750652790d29f243bd16

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+750652790d29f243bd16 at syzkaller.appspotmail.com

general protection fault, probably for non-canonical address 0xe0000299dffffd43: 0000 [#1] PREEMPT SMP KASAN
KASAN: probably user-memory-access in range [0x000034ceffffea18-0x000034ceffffea1f]
CPU: 0 PID: 8406 Comm: systemd-udevd Not tainted 5.12.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:tomoyo_check_acl+0xac/0x450 security/tomoyo/domain.c:173
Code: 00 0f 85 69 03 00 00 49 8b 5d 00 49 39 dd 0f 84 fa 01 00 00 e8 f5 28 e2 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
RSP: 0018:ffffc900016df760 EFLAGS: 00010246
RAX: 00000699dffffd43 RBX: 000034ceffffea00 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8391cd6b RDI: 000034ceffffea18
RBP: dffffc0000000000 R08: 00000000e906028c R09: 0000000000000000
R10: ffffffff8391ce18 R11: 0000000000000000 R12: ffffc900016df858
R13: ffff888011f22a10 R14: 0000000000000000 R15: 0000000000000000
FS:  00007f6b153858c0(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6b141a003f CR3: 00000000134a1000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
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:313 [inline]
 tomoyo_file_open+0xa3/0xd0 security/tomoyo/tomoyo.c:308
 security_file_open+0x52/0x4f0 security/security.c:1589
 do_dentry_open+0x358/0x11b0 fs/open.c:813
 do_open fs/namei.c:3367 [inline]
 path_openat+0x1c0e/0x27e0 fs/namei.c:3500
 do_filp_open+0x190/0x3d0 fs/namei.c:3527
 do_sys_openat2+0x16d/0x420 fs/open.c:1187
 do_sys_open fs/open.c:1203 [inline]
 __do_sys_open fs/open.c:1211 [inline]
 __se_sys_open fs/open.c:1207 [inline]
 __x64_sys_open+0x119/0x1c0 fs/open.c:1207
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f6b144cb840
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:00007ffdefb36b68 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007ffdefb370b0 RCX: 00007f6b144cb840
RDX: 000055b3f19c7f40 RSI: 0000000000000002 RDI: 000055b3eff01ad8
RBP: 000055b3f19c86b0 R08: 000000000000fefc R09: 0000000000000070
R10: 0000000000000018 R11: 0000000000000246 R12: 0000000000000010
R13: 0000000000000012 R14: 000055b3f19c7f10 R15: 00007ffdefb38680
Modules linked in:
---[ end trace c6274c8e09aa7141 ]---
RIP: 0010:tomoyo_check_acl+0xac/0x450 security/tomoyo/domain.c:173
Code: 00 0f 85 69 03 00 00 49 8b 5d 00 49 39 dd 0f 84 fa 01 00 00 e8 f5 28 e2 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
RSP: 0018:ffffc900016df760 EFLAGS: 00010246
RAX: 00000699dffffd43 RBX: 000034ceffffea00 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8391cd6b RDI: 000034ceffffea18
RBP: dffffc0000000000 R08: 00000000e906028c R09: 0000000000000000
R10: ffffffff8391ce18 R11: 0000000000000000 R12: ffffc900016df858
R13: ffff888011f22a10 R14: 0000000000000000 R15: 0000000000000000
FS:  00007f6b153858c0(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005559ae2660f8 CR3: 00000000134a1000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller at googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.



More information about the Linux-security-module-archive mailing list