BUG: using smp_processor_id() in preemptible [00000000] code: syz-executor.2/4126 caller is netdev_core_stats_alloc+0x98/0x110 net/core/dev.c:10298 CPU: 0 PID: 4126 Comm: syz-executor.2 Not tainted 5.17.0-rc7-syzkaller-02426-g97aeb877de7f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 check_preemption_disabled+0x16b/0x170 lib/smp_processor_id.c:49 netdev_core_stats_alloc+0x98/0x110 net/core/dev.c:10298 dev_core_stats include/linux/netdevice.h:3855 [inline] dev_core_stats_rx_dropped_inc include/linux/netdevice.h:3866 [inline] tun_get_user+0x2e67/0x3ab0 drivers/net/tun.c:1844 tun_chr_write_iter+0xe1/0x200 drivers/net/tun.c:2015 call_write_iter include/linux/fs.h:2074 [inline] do_iter_readv_writev+0x47a/0x750 fs/read_write.c:725 do_iter_write+0x188/0x710 fs/read_write.c:851 vfs_writev+0x1aa/0x630 fs/read_write.c:924 do_pwritev fs/read_write.c:1021 [inline] __do_sys_pwritev fs/read_write.c:1068 [inline] __se_sys_pwritev fs/read_write.c:1063 [inline] __x64_sys_pwritev+0x231/0x310 fs/read_write.c:1063 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f93a1288049 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f939fbdc168 EFLAGS: 00000246 ORIG_RAX: 0000000000000128 RAX: ffffffffffffffda RBX: 00007f93a139b030 RCX: 00007f93a1288049 RDX: 0000000000000001 RSI: 0000000020000000 RDI: 0000000000000003 RBP: 00007f93a12e208d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe0b5e966f R14: 00007f939fbdc300 R15: 0000000000022000