syzbot


WARNING in tracepoint_probe_unregister

Status: fixed on 2018/03/12 10:10
Subsystems: block trace
[Documentation on labels]
Reported-by: syzbot+f00b2fc1cf284703bf4107c0ea565aafd9b536d0@syzkaller.appspotmail.com
Fix commit: a6da0024ffc1 blktrace: fix unlocked registration of tracepoints
First crash: 2399d, last: 2260d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in tracepoint_probe_unregister (2) trace 120 2203d 2259d 5/26 fixed on 2018/05/16 09:57

Sample crash report:
WARNING: CPU: 1 PID: 3037 at kernel/tracepoint.c:243 tracepoint_remove_func kernel/tracepoint.c:243 [inline]
WARNING: CPU: 1 PID: 3037 at kernel/tracepoint.c:243 tracepoint_probe_unregister+0x6b3/0x870 kernel/tracepoint.c:324
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 3037 Comm: syzkaller690700 Not tainted 4.14.0-rc8+ #167
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x194/0x257 lib/dump_stack.c:53
 panic+0x1e4/0x417 kernel/panic.c:181
 __warn+0x1c4/0x1d9 kernel/panic.c:542
 report_bug+0x211/0x2d0 lib/bug.c:184
 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:906
RIP: 0010:tracepoint_remove_func kernel/tracepoint.c:243 [inline]
RIP: 0010:tracepoint_probe_unregister+0x6b3/0x870 kernel/tracepoint.c:324
RSP: 0000:ffff8801d14f7890 EFLAGS: 00010297
RAX: ffff8801d14e2340 RBX: 00000000fffffffe RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff85d639e0 RDI: 0000000000000282
RBP: ffff8801d14f79a8 R08: 0000000000000001 R09: 1ffff1003a29ee6e
R10: ffff8801d14f7880 R11: 0000000000000001 R12: ffffffff81748da0
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8801d14f7980
 unregister_trace_block_rq_remap include/trace/events/block.h:603 [inline]
 blk_unregister_tracepoints+0x1e/0x160 kernel/trace/blktrace.c:1079
 blk_trace_cleanup+0x28/0x30 kernel/trace/blktrace.c:336
 blk_trace_remove+0x55/0x80 kernel/trace/blktrace.c:348
 sg_ioctl+0x5eb/0x2d90 drivers/scsi/sg.c:1098
 vfs_ioctl fs/ioctl.c:46 [inline]
 do_vfs_ioctl+0x1b1/0x1520 fs/ioctl.c:686
 SYSC_ioctl fs/ioctl.c:701 [inline]
 SyS_ioctl+0x8f/0xc0 fs/ioctl.c:692
 entry_SYSCALL_64_fastpath+0x1f/0xbe
RIP: 0033:0x444339
RSP: 002b:00007fffa8210908 EFLAGS: 00000206 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000006d66c0 RCX: 0000000000444339
RDX: 00000000205dd000 RSI: 6000020000001276 RDI: 000000000000000f
RBP: 0000000000000082 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000206 R12: ffffffffffffffff
R13: 6000020000001276 R14: 0000000000000000 R15: 0000000000000000
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (115):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2017/11/08 08:19 upstream fbc3edf7d773 9547ae3a .config console log report syz C ci-upstream-kasan-gce
2017/10/29 21:04 linux-next 36ef71cae353 e511d9f8 .config console log report syz C ci-upstream-next-kasan-gce
2018/03/12 01:15 upstream abeb75218aeb 36d1c454 .config console log report ci-upstream-kasan-gce
2018/03/11 11:18 upstream 3266b5bd97ea 36d1c454 .config console log report ci-upstream-kasan-gce
2018/03/09 13:04 upstream 1b88accf6a65 36d1c454 .config console log report ci-upstream-kasan-gce
2018/03/08 06:56 upstream 851710a80961 d50edb7e .config console log report ci-upstream-kasan-gce
2018/03/07 08:40 upstream 86f84779d8e9 c8a18476 .config console log report ci-upstream-kasan-gce
2018/03/04 12:33 upstream 58bdf601c2de 2c6f473e .config console log report ci-upstream-kasan-gce
2018/03/04 05:05 upstream 58bdf601c2de 2c6f473e .config console log report ci-upstream-kasan-gce
2018/03/03 08:12 upstream 0573fed92b67 2c6f473e .config console log report ci-upstream-kasan-gce
2018/03/01 23:29 upstream 8da5db7ddae1 2c6f473e .config console log report ci-upstream-kasan-gce
2018/02/27 15:49 upstream 6f70eb2b00eb 05b5a32c .config console log report ci-upstream-kasan-gce
2018/02/27 04:23 upstream 4a3928c6f8a5 b370d4a7 .config console log report ci-upstream-kasan-gce
2018/02/26 14:31 upstream 4a3928c6f8a5 9fe8aa42 .config console log report ci-upstream-kasan-gce
2018/02/26 03:47 upstream c89be5242607 9fe8aa42 .config console log report ci-upstream-kasan-gce
2018/02/26 01:10 upstream c89be5242607 9fe8aa42 .config console log report ci-upstream-kasan-gce
2018/02/25 06:48 upstream 3664ce2d9309 5c1e0207 .config console log report ci-upstream-kasan-gce
2018/02/24 21:41 upstream 9cb9c07d6b0c 5c1e0207 .config console log report ci-upstream-kasan-gce
2018/02/20 09:41 upstream 91ab883eb213 c1f526e3 .config console log report ci-upstream-kasan-gce
2018/01/24 20:08 upstream 5132ede0fe80 866f1102 .config console log report ci-upstream-kasan-gce
2018/01/24 18:27 upstream 5132ede0fe80 a5b7566c .config console log report ci-upstream-kasan-gce
2018/01/17 11:07 upstream 8cbab92dff77 a46e5318 .config console log report ci-upstream-kasan-gce
2018/01/17 01:26 upstream 41aa5e5d712b a46e5318 .config console log report ci-upstream-kasan-gce
2018/01/16 19:49 upstream a8750ddca918 a46e5318 .config console log report ci-upstream-kasan-gce
2018/03/09 09:49 bpf-next 75a141af68c5 36d1c454 .config console log report ci-upstream-bpf-next-kasan-gce
2018/03/09 01:16 bpf-next 12ef9bda06a5 36d1c454 .config console log report ci-upstream-bpf-next-kasan-gce
2018/03/08 12:13 bpf-next 12ef9bda06a5 8240eedf .config console log report ci-upstream-bpf-next-kasan-gce
2018/03/08 01:45 bpf-next 0f3e9c97eb5a d50edb7e .config console log report ci-upstream-bpf-next-kasan-gce
2018/03/06 18:24 bpf-next 0f3e9c97eb5a c8a18476 .config console log report ci-upstream-bpf-next-kasan-gce
2018/03/06 10:35 bpf-next 0f3e9c97eb5a aef0b792 .config console log report ci-upstream-bpf-next-kasan-gce
2018/03/06 00:10 bpf-next ca435f88c102 aef0b792 .config console log report ci-upstream-bpf-next-kasan-gce
2018/03/05 12:07 bpf-next c51a63797acc bbd5104f .config console log report ci-upstream-bpf-next-kasan-gce
2018/03/01 09:48 bpf-next 71d22d58b6e5 c4089507 .config console log report ci-upstream-bpf-next-kasan-gce
2018/02/28 01:15 bpf-next 71d22d58b6e5 05b5a32c .config console log report ci-upstream-bpf-next-kasan-gce
2018/02/25 19:09 bpf-next 7d72637eb39f 9fe8aa42 .config console log report ci-upstream-bpf-next-kasan-gce
2018/02/23 03:22 bpf-next 0b6b8a3dd86d 8d8e2494 .config console log report ci-upstream-bpf-next-kasan-gce
2018/02/15 17:50 bpf-next 0b6b8a3dd86d c8b3f7c1 .config console log report ci-upstream-bpf-next-kasan-gce
2018/02/15 05:50 bpf-next 615a94749857 77ed06bf .config console log report ci-upstream-bpf-next-kasan-gce
2018/02/07 13:40 bpf-next 617aebe6a97e 9fb5ec43 .config console log report ci-upstream-bpf-next-kasan-gce
2018/02/07 13:31 bpf-next 617aebe6a97e 9fb5ec43 .config console log report ci-upstream-bpf-next-kasan-gce
2018/02/06 16:32 bpf-next 617aebe6a97e 66c15deb .config console log report ci-upstream-bpf-next-kasan-gce
2018/02/06 16:13 bpf-next 617aebe6a97e 66c15deb .config console log report ci-upstream-bpf-next-kasan-gce
2018/01/27 04:02 bpf-next 8223967fe0b8 1d18b112 .config console log report ci-upstream-bpf-next-kasan-gce
2018/01/27 03:39 bpf-next 8223967fe0b8 1d18b112 .config console log report ci-upstream-bpf-next-kasan-gce
2018/01/26 14:25 bpf-next 9c147b56fc71 1d18b112 .config console log report ci-upstream-bpf-next-kasan-gce
2018/01/26 03:37 bpf-next 82f1e0f3acf0 1d18b112 .config console log report ci-upstream-bpf-next-kasan-gce
2018/01/25 08:44 bpf-next e9dcd80b9d77 6b2a715e .config console log report ci-upstream-bpf-next-kasan-gce
2018/01/25 08:34 bpf-next e9dcd80b9d77 6b2a715e .config console log report ci-upstream-bpf-next-kasan-gce
2018/01/25 08:26 bpf-next e9dcd80b9d77 6b2a715e .config console log report ci-upstream-bpf-next-kasan-gce
2018/01/25 08:25 bpf-next e9dcd80b9d77 6b2a715e .config console log report ci-upstream-bpf-next-kasan-gce
2018/01/24 20:05 bpf-next e9dcd80b9d77 866f1102 .config console log report ci-upstream-bpf-next-kasan-gce
2018/01/24 20:00 bpf-next e9dcd80b9d77 866f1102 .config console log report ci-upstream-bpf-next-kasan-gce
2018/01/23 14:13 bpf-next ebdd7b491b8a a5b7566c .config console log report ci-upstream-bpf-next-kasan-gce
2018/01/20 12:13 mmots 2734fabdcba4 fbbdcd92 .config console log report ci-upstream-mmots-kasan-gce
2018/01/17 20:39 linux-next 1fec57a31e56 b8970f31 .config console log report ci-upstream-next-kasan-gce
2018/01/17 01:27 mmots ce3c209f6733 a46e5318 .config console log report ci-upstream-mmots-kasan-gce
2018/01/16 11:24 mmots ce3c209f6733 4198e588 .config console log report ci-upstream-mmots-kasan-gce
2018/01/10 09:39 mmots 69eed2290e1d 02a19b64 .config console log report ci-upstream-mmots-kasan-gce
2018/01/09 00:32 mmots 69eed2290e1d 11dc42f6 .config console log report ci-upstream-mmots-kasan-gce
* Struck through repros no longer work on HEAD.