------------[ cut here ]------------ IS_ERR(old) WARNING: kernel/tracepoint.c:369 at tracepoint_remove_func kernel/tracepoint.c:369 [inline], CPU#2: syz.4.1943/13151 WARNING: kernel/tracepoint.c:369 at tracepoint_probe_unregister+0x837/0xd10 kernel/tracepoint.c:515, CPU#2: syz.4.1943/13151 Modules linked in: CPU: 2 UID: 0 PID: 13151 Comm: syz.4.1943 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:tracepoint_remove_func kernel/tracepoint.c:369 [inline] RIP: 0010:tracepoint_probe_unregister+0x837/0xd10 kernel/tracepoint.c:515 Code: cc e8 2d 21 fe ff 48 8d 73 f0 48 c7 c2 30 01 0d 82 48 c7 c7 c0 c4 e7 8e e8 f6 85 e1 ff eb ba bb fe ff ff ff e8 0a 21 fe ff 90 <0f> 0b 90 eb ac e8 ff 20 fe ff 49 89 dd 45 31 ff 49 be 00 00 00 00 RSP: 0018:ffffc9000305fb90 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 00000000fffffffe RCX: 0000000000000000 RDX: ffff88804a65a580 RSI: ffffffff820d1226 RDI: ffff88804a65a580 RBP: 00000000fffffffb R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffffffff82136f70 R13: 0000000000000000 R14: 0000000000010000 R15: ffff8880238a4c58 FS: 0000000000000000(0000) GS:ffff888096b67000(0063) knlGS:00000000f5476b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f5483edc CR3: 00000000579ff000 CR4: 0000000000352ef0 Call Trace: unregister_trace_sched_switch include/trace/events/sched.h:220 [inline] tracing_sched_unregister kernel/trace/trace_sched_switch.c:87 [inline] tracing_stop_sched_switch kernel/trace/trace_sched_switch.c:129 [inline] tracing_stop_cmdline_record+0x66/0xa0 kernel/trace/trace_sched_switch.c:140 __ftrace_event_enable_disable+0x6df/0x6f0 kernel/trace/trace_events.c:907 ftrace_event_enable_disable kernel/trace/trace_events.c:934 [inline] event_enable_write+0x262/0x340 kernel/trace/trace_events.c:1956 vfs_write+0x2aa/0x1050 fs/read_write.c:685 ksys_write+0x12a/0x250 fs/read_write.c:739 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:79 [inline] __do_fast_syscall_32+0x13a/0x8b0 arch/x86/entry/syscall_32.c:291 do_fast_syscall_32+0x32/0x70 arch/x86/entry/syscall_32.c:316 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf7fb4fec Code: d2 74 05 c1 e8 0c 89 02 8b 5d fc 31 c0 c9 c3 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1f 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 2e 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 58 b8 RSP: 002b:00000000f547650c EFLAGS: 00000292 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 0000000080000240 RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000292 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ---------------- Code disassembly (best guess): 0: d2 74 05 c1 shlb %cl,-0x3f(%rbp,%rax,1) 4: e8 0c 89 02 8b call 0x8b028915 9: 5d pop %rbp a: fc cld b: 31 c0 xor %eax,%eax d: c9 leave e: c3 ret f: 90 nop 10: 90 nop 11: 90 nop 12: 90 nop 13: 90 nop 14: 90 nop 15: 90 nop 16: 90 nop 17: 90 nop 18: 90 nop 19: 90 nop 1a: 90 nop 1b: 90 nop 1c: 90 nop 1d: 90 nop 1e: 0f 1f 00 nopl (%rax) 21: 51 push %rcx 22: 52 push %rdx 23: 55 push %rbp 24: 89 e5 mov %esp,%ebp 26: 0f 34 sysenter 28: cd 80 int $0x80 * 2a: 5d pop %rbp <-- trapping instruction 2b: 5a pop %rdx 2c: 59 pop %rcx 2d: c3 ret 2e: 90 nop 2f: 2e 8d b4 26 00 00 00 cs lea 0x0(%rsi,%riz,1),%esi 36: 00 37: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi 3e: 58 pop %rax 3f: b8 .byte 0xb8