syzbot


WARNING in bpf_jit_free

Status: fixed on 2019/12/17 00:29
Reported-by: syzbot+9c82fb55b07b21f98024@syzkaller.appspotmail.com
Fix commit: ed568ca73601 bpf: fix use after free in prog symbol exposure
First crash: 1177d, last: 1000d

Fix bisection: fixed by (bisect log) :
commit ed568ca736012e87176e481582a6eb031cc5fa5e
Author: Daniel Borkmann <daniel@iogearbox.net>
Date: Fri Oct 4 17:40:58 2019 +0000

  bpf: fix use after free in prog symbol exposure

similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 WARNING in bpf_jit_free syz done 60 997d 1170d 1/1 fixed on 2019/12/17 14:31
upstream WARNING in bpf_jit_free C done 21697 1028d 1445d 13/22 fixed on 2019/09/06 20:45

Sample crash report:
WARNING: CPU: 1 PID: 11909 at kernel/bpf/core.c:681 bpf_jit_free+0x238/0x300
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 11909 Comm: kworker/1:6 Not tainted 4.19.59 #32
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events bpf_prog_free_deferred
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x172/0x1f0 lib/dump_stack.c:113
 panic+0x263/0x507 kernel/panic.c:185
 __warn.cold+0x20/0x4a kernel/panic.c:540
 report_bug+0x263/0x2b0 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 fixup_bug arch/x86/kernel/traps.c:173 [inline]
 do_error_trap+0x204/0x360 arch/x86/kernel/traps.c:296
 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1013
RIP: 0010:bpf_jit_free+0x238/0x300
Code: 38 d0 7f 08 84 c0 0f 85 94 00 00 00 48 b8 00 02 00 00 00 00 ad de 41 0f b6 5c 24 02 49 39 c7 0f 84 33 fe ff ff e8 28 4b f5 ff <0f> 0b e9 27 fe ff ff e8 1c 4b f5 ff 4c 89 ea 48 b8 00 00 00 00 00
RSP: 0018:ffff888085287ca8 EFLAGS: 00010293
RAX: ffff88809d5c2280 RBX: 0000000000000007 RCX: ffffffff8174e67d
RDX: 0000000000000000 RSI: ffffffff8175caf8 RDI: ffff8880a66b74e8
RBP: ffff888085287cd0 R08: 1ffffffff146e1a8 R09: fffffbfff146e1a9
R10: fffffbfff146e1a8 R11: ffffffff8a370d47 R12: ffffc90001933000
R13: ffffc90001933002 R14: ffffc90001933020 R15: ffffffff887f1ec0
 bpf_prog_free_deferred+0x2f6/0x420 kernel/bpf/core.c:1814
 process_one_work+0x989/0x1750 kernel/workqueue.c:2153
 worker_thread+0x98/0xe40 kernel/workqueue.c:2296
 kthread+0x354/0x420 kernel/kthread.c:246
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (293):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-19 2019/07/16 19:06 linux-4.19.y 3bd837bfe431 4ec4ea48 .config log report syz
ci2-linux-4-19 2019/06/06 16:40 linux-4.19.y e109a984cf38 f5dd5568 .config log report syz
ci2-linux-4-19 2019/06/06 06:07 linux-4.19.y e109a984cf38 a547defc .config log report syz
ci2-linux-4-19 2019/05/01 04:17 linux-4.19.y 19bb613acb9a 618456b4 .config log report syz
ci2-linux-4-19 2019/04/29 22:34 linux-4.19.y 19bb613acb9a b617407b .config log report syz
ci2-linux-4-19 2019/04/29 06:21 linux-4.19.y 19bb613acb9a b617407b .config log report syz
ci2-linux-4-19 2019/04/26 16:04 linux-4.19.y c98875d930e9 b617407b .config log report syz
ci2-linux-4-19 2019/04/24 22:42 linux-4.19.y c98875d930e9 8e3c52b1 .config log report syz
ci2-linux-4-19 2019/04/24 05:03 linux-4.19.y c98875d930e9 2398edea .config log report syz
ci2-linux-4-19 2019/04/23 12:18 linux-4.19.y c98875d930e9 53199d6e .config log report syz
ci2-linux-4-19 2019/04/21 00:19 linux-4.19.y c98875d930e9 b0e8efcb .config log report syz
ci2-linux-4-19 2019/04/17 07:06 linux-4.19.y 4d552acf3370 b0e8efcb .config log report syz
ci2-linux-4-19 2019/04/14 12:54 linux-4.19.y 4d552acf3370 505ab413 .config log report syz
ci2-linux-4-19 2019/04/12 00:46 linux-4.19.y 4d552acf3370 13030ef8 .config log report syz
ci2-linux-4-19 2019/04/10 20:09 linux-4.19.y 4d552acf3370 65b612b7 .config log report syz
ci2-linux-4-19 2019/10/05 01:38 linux-4.19.y 555161ee1b7a c86336cf .config log report
ci2-linux-4-19 2019/10/03 03:14 linux-4.19.y 555161ee1b7a 2e29b534 .config log report
ci2-linux-4-19 2019/10/02 10:33 linux-4.19.y 555161ee1b7a 2e29b534 .config log report
ci2-linux-4-19 2019/10/02 03:27 linux-4.19.y 555161ee1b7a b7a87a83 .config log report
ci2-linux-4-19 2019/10/01 07:40 linux-4.19.y 555161ee1b7a c7a4fb99 .config log report
ci2-linux-4-19 2019/09/29 23:20 linux-4.19.y d573e8a79f70 c1ad5441 .config log report
ci2-linux-4-19 2019/09/27 05:06 linux-4.19.y d573e8a79f70 2f1548bc .config log report
ci2-linux-4-19 2019/09/24 14:21 linux-4.19.y d573e8a79f70 f8368f99 .config log report
ci2-linux-4-19 2019/09/23 17:22 linux-4.19.y d573e8a79f70 c68252d2 .config log report
ci2-linux-4-19 2019/09/23 10:18 linux-4.19.y d573e8a79f70 d96e88f3 .config log report
ci2-linux-4-19 2019/09/22 23:35 linux-4.19.y d573e8a79f70 d96e88f3 .config log report
ci2-linux-4-19 2019/09/22 13:41 linux-4.19.y d573e8a79f70 d96e88f3 .config log report
ci2-linux-4-19 2019/09/22 11:49 linux-4.19.y d573e8a79f70 d96e88f3 .config log report
ci2-linux-4-19 2019/09/20 12:24 linux-4.19.y dbc29aff8d04 d96e88f3 .config log report
ci2-linux-4-19 2019/09/16 05:02 linux-4.19.y ee809c7e0895 32d59357 .config log report
ci2-linux-4-19 2019/09/15 01:44 linux-4.19.y ee809c7e0895 32d59357 .config log report
ci2-linux-4-19 2019/09/13 15:22 linux-4.19.y ee809c7e0895 32d59357 .config log report
ci2-linux-4-19 2019/09/13 01:11 linux-4.19.y ee809c7e0895 40fa42bc .config log report
ci2-linux-4-19 2019/09/11 11:46 linux-4.19.y ee809c7e0895 a60cb4cd .config log report
ci2-linux-4-19 2019/09/08 04:59 linux-4.19.y e7d2672c66e4 a60cb4cd .config log report
ci2-linux-4-19 2019/09/07 03:41 linux-4.19.y e7d2672c66e4 a60cb4cd .config log report
ci2-linux-4-19 2019/09/06 10:12 linux-4.19.y 0fed55c248d9 c16be727 .config log report
ci2-linux-4-19 2019/09/04 12:32 linux-4.19.y 97ab07e11fbf d994512d .config log report
ci2-linux-4-19 2019/09/04 06:16 linux-4.19.y 97ab07e11fbf 526709ff .config log report
ci2-linux-4-19 2019/09/04 00:16 linux-4.19.y 97ab07e11fbf 526709ff .config log report
ci2-linux-4-19 2019/09/03 16:42 linux-4.19.y 97ab07e11fbf 48448e71 .config log report
ci2-linux-4-19 2019/09/01 20:50 linux-4.19.y 97ab07e11fbf bad3cce2 .config log report
ci2-linux-4-19 2019/09/01 03:06 linux-4.19.y 97ab07e11fbf bad3cce2 .config log report
ci2-linux-4-19 2019/08/31 22:57 linux-4.19.y 97ab07e11fbf bad3cce2 .config log report
ci2-linux-4-19 2019/08/31 02:06 linux-4.19.y 97ab07e11fbf bcd7bcc2 .config log report
ci2-linux-4-19 2019/08/27 22:20 linux-4.19.y def4c11b3131 fd37b39e .config log report
ci2-linux-4-19 2019/08/27 21:23 linux-4.19.y def4c11b3131 d21c5d9d .config log report
ci2-linux-4-19 2019/08/27 20:05 linux-4.19.y def4c11b3131 d21c5d9d .config log report
ci2-linux-4-19 2019/08/27 04:22 linux-4.19.y def4c11b3131 d21c5d9d .config log report
ci2-linux-4-19 2019/08/26 12:16 linux-4.19.y def4c11b3131 d21c5d9d .config log report
ci2-linux-4-19 2019/08/26 04:11 linux-4.19.y def4c11b3131 d21c5d9d .config log report
ci2-linux-4-19 2019/08/25 21:30 linux-4.19.y def4c11b3131 d21c5d9d .config log report
ci2-linux-4-19 2019/08/24 15:53 linux-4.19.y a5aa80588fcd 78ded196 .config log report
ci2-linux-4-19 2019/08/24 01:13 linux-4.19.y a5aa80588fcd 78ded196 .config log report
ci2-linux-4-19 2019/08/22 04:33 linux-4.19.y a5aa80588fcd 4ea67ff8 .config log report
ci2-linux-4-19 2019/08/18 16:42 linux-4.19.y a5aa80588fcd 55bf8926 .config log report
ci2-linux-4-19 2019/08/17 14:52 linux-4.19.y a5aa80588fcd 55bf8926 .config log report
ci2-linux-4-19 2019/08/17 05:44 linux-4.19.y a5aa80588fcd 8fd428a1 .config log report
ci2-linux-4-19 2019/04/10 17:28 linux-4.19.y 4d552acf3370 65b612b7 .config log report