BUG: using __this_cpu_read() in preemptible [00000000] code: syz-executor.1/8192 caller is dev_recursion_level include/linux/netdevice.h:3052 [inline] caller is sk_mc_loop+0x1d/0x210 net/core/sock.c:705 CPU: 1 PID: 8192 Comm: syz-executor.1 Not tainted 5.1.0-rc3-next-20190405 #19 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x172/0x1f0 lib/dump_stack.c:113 __this_cpu_preempt_check+0x246/0x270 lib/smp_processor_id.c:47 dev_recursion_level include/linux/netdevice.h:3052 [inline] sk_mc_loop+0x1d/0x210 net/core/sock.c:705 ip_mc_output+0x2ef/0xf70 net/ipv4/ip_output.c:352 dst_output include/net/dst.h:433 [inline] ip_local_out+0xc4/0x1b0 net/ipv4/ip_output.c:124 ip_send_skb+0x42/0xf0 net/ipv4/ip_output.c:1462 ip_push_pending_frames+0x64/0x80 net/ipv4/ip_output.c:1482 raw_sendmsg+0x1e6d/0x2f20 net/ipv4/raw.c:676 inet_sendmsg+0x147/0x5e0 net/ipv4/af_inet.c:802 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg+0xdd/0x130 net/socket.c:661 sock_write_iter+0x27c/0x3e0 net/socket.c:988 call_write_iter include/linux/fs.h:1863 [inline] new_sync_write+0x4c7/0x760 fs/read_write.c:474 __vfs_write+0xe4/0x110 fs/read_write.c:487 vfs_write+0x20c/0x580 fs/read_write.c:549 ksys_write+0xea/0x1f0 fs/read_write.c:598 __do_sys_write fs/read_write.c:610 [inline] __se_sys_write fs/read_write.c:607 [inline] __x64_sys_write+0x73/0xb0 fs/read_write.c:607 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4582b9 Code: ad b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 7b b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f07fae7bc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000004582b9 RDX: 000000000000ffeb RSI: 0000000020000100 RDI: 0000000000000003 RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f07fae7c6d4 R13: 00000000004c7a29 R14: 00000000004ddad8 R15: 00000000ffffffff