syzbot


WARNING in __local_bh_enable_ip

Status: fixed on 2017/10/24 07:07
Fix commit: 930651a75bf1 bpf: do not disable/enable BH in bpf_map_free_id()
First crash: 2404d, last: 2396d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in __local_bh_enable_ip (3) mm 1 2047d 2045d 0/26 auto-closed as invalid on 2019/03/07 16:37
upstream WARNING in __local_bh_enable_ip (2) rds 23 2214d 2225d 5/26 fixed on 2018/05/08 18:30
upstream WARNING in __local_bh_enable_ip (4) net 1 1643d 1642d 0/26 auto-closed as invalid on 2020/01/15 23:54

Sample crash report:
netlink: 6 bytes leftover after parsing attributes in process `syz-executor4'.
netlink: 6 bytes leftover after parsing attributes in process `syz-executor4'.
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5156 at kernel/softirq.c:161 __local_bh_enable_ip+0x1e/0x160 kernel/softirq.c:161
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 5156 Comm: syz-executor6 Not tainted 4.14.0-rc1+ #90
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:16 [inline]
 dump_stack+0x194/0x257 lib/dump_stack.c:52
 panic+0x1e4/0x417 kernel/panic.c:181
 __warn+0x1c4/0x1d9 kernel/panic.c:542
 report_bug+0x211/0x2d0 lib/bug.c:183
 fixup_bug+0x40/0x90 arch/x86/kernel/traps.c:178
 do_trap_no_signal arch/x86/kernel/traps.c:212 [inline]
 do_trap+0x260/0x390 arch/x86/kernel/traps.c:261
 do_error_trap+0x120/0x390 arch/x86/kernel/traps.c:298
 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:311
 invalid_op+0x18/0x20 arch/x86/entry/entry_64.S:905
RIP: 0010:__local_bh_enable_ip+0x1e/0x160 kernel/softirq.c:161
RSP: 0018:ffff8801c93c7748 EFLAGS: 00010046
RAX: 0000000000000082 RBX: 0000000000000201 RCX: 0000000000000000
RDX: 1ffffffff0b59334 RSI: 0000000000000201 RDI: ffffffff85ac99a0
RBP: ffff8801c93c7758 R08: ffffffff85b86b38 R09: 1ffff10039278ec6
R10: ffff8801c33bc480 R11: 0000000000000002 R12: ffffffff817b07e7
R13: dffffc0000000000 R14: ffff8801c93c77e8 R15: 0000000000000001
 __raw_spin_unlock_bh include/linux/spinlock_api_smp.h:176 [inline]
 _raw_spin_unlock_bh+0x30/0x40 kernel/locking/spinlock.c:207
 spin_unlock_bh include/linux/spinlock.h:361 [inline]
 bpf_map_free_id kernel/bpf/syscall.c:197 [inline]
 __bpf_map_put+0x267/0x320 kernel/bpf/syscall.c:227
 bpf_map_put+0x1a/0x20 kernel/bpf/syscall.c:235
 bpf_map_fd_put_ptr+0x15/0x20 kernel/bpf/map_in_map.c:96
 free_htab_elem+0xc3/0x1b0 kernel/bpf/hashtab.c:658
 htab_map_delete_elem+0x74d/0x970 kernel/bpf/hashtab.c:1063
 map_delete_elem kernel/bpf/syscall.c:633 [inline]
 SYSC_bpf kernel/bpf/syscall.c:1479 [inline]
 SyS_bpf+0x2188/0x46a0 kernel/bpf/syscall.c:1451
 entry_SYSCALL_64_fastpath+0x1f/0xbe
RIP: 0033:0x4520a9
RSP: 002b:00007efff9c6ec08 EFLAGS: 00000216 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 0000000000718000 RCX: 00000000004520a9
RDX: 0000000000000010 RSI: 0000000020451ff0 RDI: 0000000000000003
RBP: 0000000000000082 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000216 R12: 00000000004dc5d2
R13: 00000000ffffffff R14: 0000000000000005 R15: 0000000000000000
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (22):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2017/09/19 10:44 upstream ebb2c2437d80 d394531e .config console log report ci-upstream-kasan-gce
2017/09/16 04:18 upstream b38923a068c1 96b8e399 .config console log report ci-upstream-kasan-gce
2017/09/19 17:06 upstream 12fcf66e74b1 d394531e .config console log report ci-upstream-kasan-gce-386
2017/09/24 02:01 net-next-old 3fb5ec06578e c26ea367 .config console log report ci-upstream-net-kasan-gce
2017/09/19 10:43 net-next-old 3c75f6ee139d d394531e .config console log report ci-upstream-net-kasan-gce
2017/09/17 05:26 net-next-old 2bd6bf03f4c1 96b8e399 .config console log report ci-upstream-net-kasan-gce
2017/09/17 05:26 net-next-old 2bd6bf03f4c1 96b8e399 .config console log report ci-upstream-net-kasan-gce
2017/09/17 05:24 net-next-old 2bd6bf03f4c1 96b8e399 .config console log report ci-upstream-net-kasan-gce
2017/09/17 05:24 net-next-old 2bd6bf03f4c1 96b8e399 .config console log report ci-upstream-net-kasan-gce
2017/09/16 04:18 net-next-old ad9a19d00370 96b8e399 .config console log report ci-upstream-net-kasan-gce
2017/09/24 02:01 mmots 720bbe532b7c c26ea367 .config console log report ci-upstream-mmots-kasan-gce
2017/09/19 10:44 linux-next 840cc455c5f5 92f543f0 .config console log report skylake-linux-next-kasan-qemu
2017/09/19 10:43 linux-next 840cc455c5f5 92f543f0 .config console log report skylake-linux-next-kasan-qemu
2017/09/17 05:26 linux-next 1f183459b514 da1873aa .config console log report skylake-linux-next-kasan-qemu
2017/09/17 05:26 mmots 720bbe532b7c c26ea367 .config console log report ci-upstream-mmots-kasan-gce
2017/09/17 05:26 linux-next 1f183459b514 da1873aa .config console log report skylake-linux-next-kasan-qemu
2017/09/17 05:25 mmots 720bbe532b7c c26ea367 .config console log report ci-upstream-mmots-kasan-gce
2017/09/17 05:25 linux-next 1f183459b514 da1873aa .config console log report skylake-linux-next-kasan-qemu
2017/09/16 04:19 linux-next 1f183459b514 da1873aa .config console log report skylake-linux-next-kasan-qemu
2017/09/16 04:18 linux-next 1f183459b514 da1873aa .config console log report skylake-linux-next-kasan-qemu
* Struck through repros no longer work on HEAD.