BUG: using smp_processor_id() in preemptible [00000000] code: syz.0.298/6832 caller is net_dm_packet_trace_kfree_skb_hit+0x119/0x350 net/core/drop_monitor.c:519 CPU: 0 UID: 0 PID: 6832 Comm: syz.0.298 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 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 check_preemption_disabled+0xd2/0xe0 lib/smp_processor_id.c:47 net_dm_packet_trace_kfree_skb_hit+0x119/0x350 net/core/drop_monitor.c:519 __do_trace_kfree_skb include/trace/events/skb.h:24 [inline] trace_kfree_skb+0x18b/0x230 include/trace/events/skb.h:24 __sk_skb_reason_drop net/core/skbuff.c:1231 [inline] sk_skb_reason_drop+0xb7/0x1b0 net/core/skbuff.c:1249 kfree_skb_reason include/linux/skbuff.h:1323 [inline] kfree_skb include/linux/skbuff.h:1332 [inline] __skb_array_destroy_skb include/linux/skb_array.h:188 [inline] tun_ptr_free drivers/net/tun.c:558 [inline] tun_ptr_free drivers/net/tun.c:549 [inline] tun_queue_purge+0x1ee/0x340 drivers/net/tun.c:568 __tun_detach+0xb70/0x1850 drivers/net/tun.c:616 tun_detach drivers/net/tun.c:653 [inline] tun_chr_close+0xc2/0x220 drivers/net/tun.c:3587 __fput+0x3ff/0xb50 fs/file_table.c:512 task_work_run+0x150/0x240 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:70 [inline] exit_to_user_mode_loop+0x1d8/0x700 kernel/entry/common.c:101 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:336 [inline] do_syscall_64+0x661/0x790 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6949b9e159 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fff4987c298 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007f6949e27da0 RCX: 00007f6949b9e159 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 00007f6949e27da0 R08: 0000000000000006 R09: 0000000000000000 R10: 00000000003ffcc8 R11: 0000000000000246 R12: 000000000002efb8 R13: 00007f6949e2609c R14: 000000000002ed6d R15: 00007f6949e26090 BUG: using smp_processor_id() in preemptible [00000000] code: syz.0.298/6832 caller is net_dm_packet_trace_kfree_skb_hit+0x119/0x350 net/core/drop_monitor.c:519 CPU: 0 UID: 0 PID: 6832 Comm: syz.0.298 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 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 check_preemption_disabled+0xd2/0xe0 lib/smp_processor_id.c:47 net_dm_packet_trace_kfree_skb_hit+0x119/0x350 net/core/drop_monitor.c:519 __do_trace_kfree_skb include/trace/events/skb.h:24 [inline] trace_kfree_skb+0x18b/0x230 include/trace/events/skb.h:24 __sk_skb_reason_drop net/core/skbuff.c:1231 [inline] sk_skb_reason_drop+0xb7/0x1b0 net/core/skbuff.c:1249 kfree_skb_reason include/linux/skbuff.h:1323 [inline] kfree_skb include/linux/skbuff.h:1332 [inline] __skb_array_destroy_skb include/linux/skb_array.h:188 [inline] tun_ptr_free drivers/net/tun.c:558 [inline] tun_ptr_free drivers/net/tun.c:549 [inline] tun_queue_purge+0x1ee/0x340 drivers/net/tun.c:568 __tun_detach+0xb70/0x1850 drivers/net/tun.c:616 tun_detach drivers/net/tun.c:653 [inline] tun_chr_close+0xc2/0x220 drivers/net/tun.c:3587 __fput+0x3ff/0xb50 fs/file_table.c:512 task_work_run+0x150/0x240 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:70 [inline] exit_to_user_mode_loop+0x1d8/0x700 kernel/entry/common.c:101 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:336 [inline] do_syscall_64+0x661/0x790 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6949b9e159 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fff4987c298 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007f6949e27da0 RCX: 00007f6949b9e159 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 00007f6949e27da0 R08: 0000000000000006 R09: 0000000000000000 R10: 00000000003ffcc8 R11: 0000000000000246 R12: 000000000002efb8 R13: 00007f6949e2609c R14: 000000000002ed6d R15: 00007f6949e26090