BUG: using smp_processor_id() in preemptible [00000000] code: syz.3.110/6322 caller is net_dm_packet_trace_kfree_skb_hit+0x119/0x350 net/core/drop_monitor.c:519 CPU: 2 UID: 0 PID: 6322 Comm: syz.3.110 Not tainted syzkaller #0 PREEMPT(full) 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] __skb_queue_purge_reason include/linux/skbuff.h:3470 [inline] skb_queue_purge_reason+0x2aa/0x420 net/core/skbuff.c:4040 skb_queue_purge include/linux/skbuff.h:3483 [inline] packet_set_ring+0x547/0x1fb0 net/packet/af_packet.c:4655 packet_setsockopt+0x11c4/0x2380 net/packet/af_packet.c:3873 do_sock_setsockopt+0xf3/0x1d0 net/socket.c:2397 __sys_setsockopt+0x195/0x220 net/socket.c:2422 __do_sys_setsockopt net/socket.c:2428 [inline] __se_sys_setsockopt net/socket.c:2425 [inline] __x64_sys_setsockopt+0xbd/0x160 net/socket.c:2425 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f77caf9e159 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:00007f77cbe75028 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007f77cb226090 RCX: 00007f77caf9e159 RDX: 0000000000000005 RSI: 0000000000000107 RDI: 0000000000000005 RBP: 00007f77cb03503b R08: 000000000000001c R09: 0000000000000000 R10: 0000200000000080 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f77cb226128 R14: 00007f77cb226090 R15: 00007ffd320d7278 BUG: using smp_processor_id() in preemptible [00000000] code: syz.3.110/6322 caller is net_dm_packet_trace_kfree_skb_hit+0x119/0x350 net/core/drop_monitor.c:519 CPU: 2 UID: 0 PID: 6322 Comm: syz.3.110 Not tainted syzkaller #0 PREEMPT(full) 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] __skb_queue_purge_reason include/linux/skbuff.h:3470 [inline] skb_queue_purge_reason+0x2aa/0x420 net/core/skbuff.c:4040 skb_queue_purge include/linux/skbuff.h:3483 [inline] packet_set_ring+0x547/0x1fb0 net/packet/af_packet.c:4655 packet_setsockopt+0x11c4/0x2380 net/packet/af_packet.c:3873 do_sock_setsockopt+0xf3/0x1d0 net/socket.c:2397 __sys_setsockopt+0x195/0x220 net/socket.c:2422 __do_sys_setsockopt net/socket.c:2428 [inline] __se_sys_setsockopt net/socket.c:2425 [inline] __x64_sys_setsockopt+0xbd/0x160 net/socket.c:2425 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f77caf9e159 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:00007f77cbe75028 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007f77cb226090 RCX: 00007f77caf9e159 RDX: 0000000000000005 RSI: 0000000000000107 RDI: 0000000000000005 RBP: 00007f77cb03503b R08: 000000000000001c R09: 0000000000000000 R10: 0000200000000080 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f77cb226128 R14: 00007f77cb226090 R15: 00007ffd320d7278