BUG: unable to handle kernel paging request in bpf_prog_kallsyms_add

5 views
Skip to first unread message

syzbot

unread,
Apr 24, 2019, 10:11:07 PM4/24/19
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: c98875d9 Linux 4.19.36
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=175f42eb200000
kernel config: https://syzkaller.appspot.com/x/.config?x=5e40ac5fbcc6366d
dashboard link: https://syzkaller.appspot.com/bug?extid=cb64950a7e66132c3e40
compiler: gcc (GCC) 9.0.0 20181231 (experimental)

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

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+cb6495...@syzkaller.appspotmail.com

kauditd_printk_skb: 143 callbacks suppressed
audit: type=1400 audit(1556154628.394:5222): avc: denied { map } for
pid=4413 comm="blkid" path="/lib/x86_64-linux-gnu/libuuid.so.1.3.0"
dev="sda1" ino=2819 scontext=system_u:system_r:kernel_t:s0
tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1
BUG: unable to handle kernel paging request at ffffc90001933020
PGD 12c255067 P4D 12c255067 PUD 21bc31067 PMD 219aa4067 PTE 0
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 4459 Comm: syz-executor.2 Not tainted 4.19.36 #4
audit: type=1400 audit(1556154628.394:5223): avc: denied { map } for
pid=4461 comm="blkid" path="/sbin/blkid" dev="sda1" ino=16128
scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:object_r:file_t:s0
tclass=file permissive=1
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
RIP: 0010:bpf_prog_kallsyms_add+0x108/0x840 kernel/bpf/core.c:489
Code: 05 48 8d 7b 20 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80
3c 02 00 0f 85 b5 06 00 00 48 b8 00 00 00 00 00 fc ff df <4c> 8b 6b 20 49
8d 5d 60 48 89 da 48 c1 ea 03 80 3c 02 00 0f 85 9c
RSP: 0018:ffff8880559bfc50 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffffc90001933000 RCX: ffffffff815368f8
RDX: 1ffff92000326604 RSI: 0000000000000004 RDI: ffffc90001933020
RBP: ffff8880559bfc90 R08: 1ffffffff10fe2e8 R09: fffffbfff10fe2e9
R10: fffffbfff10fe2e8 R11: ffffffff887f1743 R12: 0000000000000001
R13: 0000000000000094 R14: ffffc90001933000 R15: ffff8880a5a9acc0
audit: type=1400 audit(1556154628.394:5224): avc: denied { map } for
pid=4461 comm="blkid" path="/sbin/blkid" dev="sda1" ino=16128
scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:object_r:file_t:s0
tclass=file permissive=1
FS: 00007fc4c1305700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90001933020 CR3: 00000000892c4000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
audit: type=1400 audit(1556154628.424:5225): avc: denied { map } for
pid=4413 comm="blkid" path="/lib/x86_64-linux-gnu/libuuid.so.1.3.0"
dev="sda1" ino=2819 scontext=system_u:system_r:kernel_t:s0
tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
bpf_prog_load+0xf65/0x13f0 kernel/bpf/syscall.c:1464
audit: type=1400 audit(1556154628.424:5226): avc: denied { map } for
pid=4461 comm="blkid" path="/lib/x86_64-linux-gnu/ld-2.13.so" dev="sda1"
ino=2668 scontext=system_u:system_r:kernel_t:s0
tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1
audit: type=1400 audit(1556154628.434:5227): avc: denied { map } for
pid=4461 comm="blkid" path="/lib/x86_64-linux-gnu/ld-2.13.so" dev="sda1"
ino=2668 scontext=system_u:system_r:kernel_t:s0
tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1
__do_sys_bpf kernel/bpf/syscall.c:2394 [inline]
__se_sys_bpf kernel/bpf/syscall.c:2356 [inline]
__x64_sys_bpf+0x331/0x4c0 kernel/bpf/syscall.c:2356
do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290
audit: type=1400 audit(1556154628.444:5228): avc: denied { map } for
pid=4461 comm="blkid" path="/etc/ld.so.cache" dev="sda1" ino=2251
scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:object_r:file_t:s0
tclass=file permissive=1
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x458d99
Code: ad b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 7b b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00
audit: type=1400 audit(1556154628.454:5229): avc: denied { prog_load }
for pid=4424 comm="syz-executor.2"
scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023
tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=bpf
permissive=1
RSP: 002b:00007fc4c1304c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000458d99
RDX: 0000000000000048 RSI: 0000000020000380 RDI: 0000000000000005
RBP: 000000000073bfa0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fc4c13056d4
audit: type=1400 audit(1556154628.474:5230): avc: denied { prog_run }
for pid=4424 comm="syz-executor.2"
scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023
tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=bpf
permissive=1
R13: 00000000004bf0dc R14: 00000000004d0060 R15: 00000000ffffffff
Modules linked in:
CR2: ffffc90001933020
audit: type=1400 audit(1556154628.474:5231): avc: denied { map } for
pid=4461 comm="blkid" path="/lib/x86_64-linux-gnu/libblkid.so.1.1.0"
dev="sda1" ino=2825 scontext=system_u:system_r:kernel_t:s0
tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1
---[ end trace 90534a670ed5d0de ]---
kobject: 'loop4' (0000000032500680): kobject_uevent_env
RIP: 0010:bpf_prog_kallsyms_add+0x108/0x840 kernel/bpf/core.c:489
Code: 05 48 8d 7b 20 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80
3c 02 00 0f 85 b5 06 00 00 48 b8 00 00 00 00 00 fc ff df <4c> 8b 6b 20 49
8d 5d 60 48 89 da 48 c1 ea 03 80 3c 02 00 0f 85 9c
kobject: 'loop4' (0000000032500680): fill_kobj_path: path
= '/devices/virtual/block/loop4'
RSP: 0018:ffff8880559bfc50 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffffc90001933000 RCX: ffffffff815368f8
RDX: 1ffff92000326604 RSI: 0000000000000004 RDI: ffffc90001933020
RBP: ffff8880559bfc90 R08: 1ffffffff10fe2e8 R09: fffffbfff10fe2e9
R10: fffffbfff10fe2e8 R11: ffffffff887f1743 R12: 0000000000000001
R13: 0000000000000094 R14: ffffc90001933000 R15: ffff8880a5a9acc0
FS: 00007fc4c1305700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90001933020 CR3: 00000000892c4000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
This bug 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 syzk...@googlegroups.com.

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

syzbot

unread,
Jan 21, 2020, 4:31:07 AM1/21/20
to syzkaller...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages