syzbot


BUG: unable to handle kernel paging request in htab_map_alloc

Status: closed as invalid on 2018/09/05 12:51
Subsystems: bpf
[Documentation on labels]
First crash: 2267d, last: 2267d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel paging request in htab_map_alloc (2) bpf C unreliable 8 1391d 1399d 19/28 fixed on 2021/03/10 01:49

Sample crash report:
BUG: unable to handle kernel paging request at ffffc90002000011
PGD 1d4235067 P4D 1d4235067 PUD 1d4238067 PMD 1bc264067 PTE 80000001be6c1000
Oops: 0002 [#1] SMP PTI
CPU: 0 PID: 4598 Comm: syz-executor376 Not tainted 4.18.0-rc5+ #29
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:htab_elem_set_ptr kernel/bpf/hashtab.c:86 [inline]
RIP: 0010:prealloc_init kernel/bpf/hashtab.c:161 [inline]
RIP: 0010:htab_map_alloc+0x126a/0x1da0 kernel/bpf/hashtab.c:378
Code: 89 ef e8 b9 c6 41 00 48 89 c3 4d 09 e7 4c 8b 7d c8 0f 85 9a 00 00 00 4c 89 33 4d 85 f6 0f 85 bd 00 00 00 48 8b 85 70 ff ff ff <49> 89 45 00 4c 8b 65 b0 41 c7 84 24 20 03 00 00 00 00 00 00 e8 bd 
RSP: 0018:ffff880198f8fb40 EFLAGS: 00010246
RAX: 000060fde001b848 RBX: ffffffff8ba12000 RCX: 5555559000000000
RDX: ffffffff8ba13000 RSI: 0000000000000008 RDI: ffffc90002000011
RBP: ffff880198f8fc20 R08: 0000000000000000 R09: ffff88021fc39090
R10: 0000000000000000 R11: 0000000000000212 R12: 0000000000000000
R13: ffffc90002000011 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000000cb1940(0000) GS:ffff88021fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90002000011 CR3: 00000001b6bf6000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 find_and_alloc_map kernel/bpf/syscall.c:129 [inline]
 map_create kernel/bpf/syscall.c:453 [inline]
 __do_sys_bpf+0x7e20/0xeae0 kernel/bpf/syscall.c:2290
 __se_sys_bpf kernel/bpf/syscall.c:2267 [inline]
 __x64_sys_bpf+0xda/0x110 kernel/bpf/syscall.c:2267
 do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x63/0xe7
RIP: 0033:0x4408b9
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 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 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00 
RSP: 002b:00007ffd7f2357b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007ffd7f2357d0 RCX: 00000000004408b9
RDX: 000000000000002c RSI: 0000000020214fd4 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402140
R13: 00000000004021d0 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
Dumping ftrace buffer:
   (ftrace buffer empty)
CR2: ffffc90002000011
---[ end trace 3be5a6741ea1336b ]---
RIP: 0010:htab_elem_set_ptr kernel/bpf/hashtab.c:86 [inline]
RIP: 0010:prealloc_init kernel/bpf/hashtab.c:161 [inline]
RIP: 0010:htab_map_alloc+0x126a/0x1da0 kernel/bpf/hashtab.c:378
Code: 89 ef e8 b9 c6 41 00 48 89 c3 4d 09 e7 4c 8b 7d c8 0f 85 9a 00 00 00 4c 89 33 4d 85 f6 0f 85 bd 00 00 00 48 8b 85 70 ff ff ff <49> 89 45 00 4c 8b 65 b0 41 c7 84 24 20 03 00 00 00 00 00 00 e8 bd 
RSP: 0018:ffff880198f8fb40 EFLAGS: 00010246
RAX: 000060fde001b848 RBX: ffffffff8ba12000 RCX: 5555559000000000
RDX: ffffffff8ba13000 RSI: 0000000000000008 RDI: ffffc90002000011
RBP: ffff880198f8fc20 R08: 0000000000000000 R09: ffff88021fc39090
R10: 0000000000000000 R11: 0000000000000212 R12: 0000000000000000
R13: ffffc90002000011 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000000cb1940(0000) GS:ffff88021fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90002000011 CR3: 00000001b6bf6000 CR4: 00000000001406f0
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
2018/07/21 13:46 https://github.com/google/kmsan.git master d1c2a46a46f6 8cc079c3 .config console log report syz C ci-upstream-kmsan-gce
* Struck through repros no longer work on HEAD.