BUG: spinlock bad magic on CPU#1, syzkaller127419/4959 lock: 0xffff8801ce0f0da8, .magic: ffff8801, .owner: syzkaller127419/4959, .owner_cpu: 1 CPU: 1 PID: 4959 Comm: syzkaller127419 Not tainted 4.13.0-mm1+ #7 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:16 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:52 spin_dump+0x14d/0x280 kernel/locking/spinlock_debug.c:67 spin_bug kernel/locking/spinlock_debug.c:75 [inline] debug_spin_unlock kernel/locking/spinlock_debug.c:97 [inline] do_raw_spin_unlock+0x2bd/0x330 kernel/locking/spinlock_debug.c:134 __raw_spin_unlock include/linux/spinlock_api_smp.h:151 [inline] _raw_spin_unlock+0x22/0x30 kernel/locking/spinlock.c:183 spin_unlock include/linux/spinlock.h:356 [inline] __fanout_link+0xaf/0xf0 net/packet/af_packet.c:1508 fanout_add+0x88b/0x1190 net/packet/af_packet.c:1760 packet_setsockopt+0xfdc/0x1e80 net/packet/af_packet.c:3795 SYSC_setsockopt net/socket.c:1852 [inline] SyS_setsockopt+0x189/0x360 net/socket.c:1831 entry_SYSCALL_64_fastpath+0x1f/0xbe RIP: 0033:0x446239 RSP: 002b:00007fd37e186dc8 EFLAGS: 00000202 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000446239 RDX: 0000000000000012 RSI: 0000000000000107 RDI: 000000000000007b RBP: 0000000000000082 R08: 0000000000000004 R09: 00007fd37e187700 R10: 00000000201ef000 R11: 0000000000000202 R12: 0000000000000000 R13: 00007ffca66f840f R14: 00007fd37e1879c0 R15: 0000000000000000