syzbot


BUG: unable to handle kernel paging request in bpf_prog_kallsyms_add

Status: auto-closed as invalid on 2020/01/21 09:31
Reported-by: syzbot+cb64950a7e66132c3e40@syzkaller.appspotmail.com
First crash: 2037d, last: 1886d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 BUG: unable to handle kernel paging request in bpf_prog_kallsyms_add 1 1919d 1919d 0/1 auto-closed as invalid on 2019/12/19 04:54
upstream BUG: unable to handle kernel paging request in bpf_prog_kallsyms_add bpf syz error 234 1903d 2264d 12/28 fixed on 2019/09/06 20:45

Sample crash report:
BUG: unable to handle kernel paging request at ffffc90001933020
PGD 12c256067 P4D 12c256067 PUD 21bc31067 PMD a61ec067 PTE 0
kobject: 'loop5' (00000000ec3157ca): kobject_uevent_env
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 20887 Comm: syz-executor.2 Not tainted 4.19.75 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
kobject: 'loop5' (00000000ec3157ca): fill_kobj_path: path = '/devices/virtual/block/loop5'
RIP: 0010:bpf_prog_kallsyms_add+0x108/0x840 kernel/bpf/core.c:490
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:ffff88804eff7c50 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffffc90001933000 RCX: ffffffff815363a8
RDX: 1ffff92000326604 RSI: 0000000000000004 RDI: ffffc90001933020
RBP: ffff88804eff7c90 R08: 1ffffffff10fe82c R09: fffffbfff10fe82d
R10: fffffbfff10fe82c R11: ffffffff887f4163 R12: 0000000000000001
R13: 000000000000001b R14: ffffc90001933000 R15: ffff888082b1c280
FS:  00007f0e62584700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90001933020 CR3: 0000000098155000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 bpf_prog_load+0xf7e/0x1400 kernel/bpf/syscall.c:1469
kobject: 'loop1' (000000001ee10f3c): kobject_uevent_env
 __do_sys_bpf kernel/bpf/syscall.c:2405 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:2367 [inline]
 __x64_sys_bpf+0x32b/0x4c0 kernel/bpf/syscall.c:2367
kobject: 'loop1' (000000001ee10f3c): fill_kobj_path: path = '/devices/virtual/block/loop1'
 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x459a09
Code: fd b7 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 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f0e62583c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000459a09
RDX: 0000000000000048 RSI: 0000000020000200 RDI: 0000000000000005
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f0e625846d4
R13: 00000000004bfe4d R14: 00000000004d1c70 R15: 00000000ffffffff
Modules linked in:
CR2: ffffc90001933020
kobject: 'loop0' (0000000026228869): kobject_uevent_env
---[ end trace 4c0cb95e1215d86e ]---
RIP: 0010:bpf_prog_kallsyms_add+0x108/0x840 kernel/bpf/core.c:490
kobject: 'loop0' (0000000026228869): fill_kobj_path: path = '/devices/virtual/block/loop0'
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:ffff88804eff7c50 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffffc90001933000 RCX: ffffffff815363a8
RDX: 1ffff92000326604 RSI: 0000000000000004 RDI: ffffc90001933020
RBP: ffff88804eff7c90 R08: 1ffffffff10fe82c R09: fffffbfff10fe82d
R10: fffffbfff10fe82c R11: ffffffff887f4163 R12: 0000000000000001
R13: 000000000000001b R14: ffffc90001933000 R15: ffff888082b1c280
FS:  00007f0e62584700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90001933020 CR3: 0000000098155000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
kobject: 'loop0' (0000000026228869): kobject_uevent_env
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/09/23 09:30 linux-4.19.y d573e8a79f70 d96e88f3 .config console log report ci2-linux-4-19
2019/08/15 01:07 linux-4.19.y 893af1c79e42 0d298d6b .config console log report ci2-linux-4-19
2019/07/28 07:51 linux-4.19.y 64f4694072aa c85e1c5b .config console log report ci2-linux-4-19
2019/06/18 08:26 linux-4.19.y 6500aa436df4 e3f76baa .config console log report ci2-linux-4-19
2019/06/17 07:16 linux-4.19.y 7aa823a959e1 442206d7 .config console log report ci2-linux-4-19
2019/04/25 01:10 linux-4.19.y c98875d930e9 8e3c52b1 .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.