BUG: spinlock bad magic on CPU#0, syz-executor.3/9917 lock: 0xffff8880ae82c8b6, .magic: 00000000, .owner: /-1, .owner_cpu: 0 CPU: 0 PID: 9917 Comm: syz-executor.3 Not tainted 5.0.0+ #109 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 spin_dump.cold+0x81/0xe6 kernel/locking/spinlock_debug.c:67 spin_bug kernel/locking/spinlock_debug.c:75 [inline] debug_spin_lock_before kernel/locking/spinlock_debug.c:83 [inline] do_raw_spin_lock+0x231/0x2e0 kernel/locking/spinlock_debug.c:112 __raw_spin_lock include/linux/spinlock_api_smp.h:143 [inline] _raw_spin_lock+0x37/0x40 kernel/locking/spinlock.c:144 spin_lock include/linux/spinlock.h:329 [inline] __queue_work+0x23d/0x1180 kernel/workqueue.c:1449 queue_work_on+0x192/0x200 kernel/workqueue.c:1518 queue_work include/linux/workqueue.h:494 [inline] sock_diag_broadcast_destroy+0x13e/0x1a0 net/core/sock_diag.c:160 __sk_free+0x21b/0x300 net/core/sock.c:1743 sk_free+0x42/0x50 net/core/sock.c:1756 sock_put include/net/sock.h:1720 [inline] tcp_close+0xbc3/0x10c0 net/ipv4/tcp.c:2505 inet_release+0x105/0x1f0 net/ipv4/af_inet.c:432 inet6_release+0x53/0x80 net/ipv6/af_inet6.c:473 __sock_release+0xd3/0x2b0 net/socket.c:599 sock_close+0x1b/0x30 net/socket.c:1247 __fput+0x2e5/0x8d0 fs/file_table.c:278 ____fput+0x16/0x20 fs/file_table.c:309 task_work_run+0x14a/0x1c0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop+0x273/0x2c0 arch/x86/entry/common.c:166 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline] syscall_return_slowpath arch/x86/entry/common.c:268 [inline] do_syscall_64+0x52d/0x610 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x458209 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:00007f810e6a0c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000458209 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f810e6a16d4 R13: 00000000004f5112 R14: 00000000004cec78 R15: 00000000ffffffff kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 9917 Comm: syz-executor.3 Not tainted 5.0.0+ #109 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__list_add_valid+0x4c/0xa0 lib/list_debug.c:26 Code: 08 48 c1 ea 03 80 3c 02 00 75 52 49 8b 54 24 08 48 39 f2 0f 85 5a 01 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 f2 48 c1 ea 03 <80> 3c 02 00 75 3c 48 8b 16 4c 39 e2 0f 85 5f 01 00 00 49 39 f5 0f RSP: 0018:ffff888066217b50 EFLAGS: 00010046 RAX: dffffc0000000000 RBX: ffff88808a446808 RCX: ffffffff814a275c RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8880ae82c90e RBP: ffff888066217b68 R08: ffff88808a446810 R09: ffffed1011488d02 R10: ffffed1011488d01 R11: ffff88808a44680f R12: ffff8880ae82c906 R13: ffff88808a446810 R14: ffff8880ae82c906 R15: ffff8880ae82c8b6 FS: 00007f810e6a1700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffe4e8bb610 CR3: 000000005c495000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __list_add include/linux/list.h:60 [inline] list_add_tail include/linux/list.h:93 [inline] insert_work+0x117/0x3a0 kernel/workqueue.c:1332 __queue_work+0x4f5/0x1180 kernel/workqueue.c:1493 queue_work_on+0x192/0x200 kernel/workqueue.c:1518 queue_work include/linux/workqueue.h:494 [inline] sock_diag_broadcast_destroy+0x13e/0x1a0 net/core/sock_diag.c:160 __sk_free+0x21b/0x300 net/core/sock.c:1743 sk_free+0x42/0x50 net/core/sock.c:1756 sock_put include/net/sock.h:1720 [inline] tcp_close+0xbc3/0x10c0 net/ipv4/tcp.c:2505 inet_release+0x105/0x1f0 net/ipv4/af_inet.c:432 inet6_release+0x53/0x80 net/ipv6/af_inet6.c:473 __sock_release+0xd3/0x2b0 net/socket.c:599 sock_close+0x1b/0x30 net/socket.c:1247 __fput+0x2e5/0x8d0 fs/file_table.c:278 ____fput+0x16/0x20 fs/file_table.c:309 task_work_run+0x14a/0x1c0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop+0x273/0x2c0 arch/x86/entry/common.c:166 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline] syscall_return_slowpath arch/x86/entry/common.c:268 [inline] do_syscall_64+0x52d/0x610 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x458209 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:00007f810e6a0c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000458209 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f810e6a16d4 R13: 00000000004f5112 R14: 00000000004cec78 R15: 00000000ffffffff Modules linked in: ---[ end trace 0c1ad0266fd6cbed ]--- RIP: 0010:__list_add_valid+0x4c/0xa0 lib/list_debug.c:26 Code: 08 48 c1 ea 03 80 3c 02 00 75 52 49 8b 54 24 08 48 39 f2 0f 85 5a 01 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 f2 48 c1 ea 03 <80> 3c 02 00 75 3c 48 8b 16 4c 39 e2 0f 85 5f 01 00 00 49 39 f5 0f RSP: 0018:ffff888066217b50 EFLAGS: 00010046 RAX: dffffc0000000000 RBX: ffff88808a446808 RCX: ffffffff814a275c RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8880ae82c90e RBP: ffff888066217b68 R08: ffff88808a446810 R09: ffffed1011488d02 R10: ffffed1011488d01 R11: ffff88808a44680f R12: ffff8880ae82c906 R13: ffff88808a446810 R14: ffff8880ae82c906 R15: ffff8880ae82c8b6 FS: 00007f810e6a1700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffe4e8bb610 CR3: 000000005c495000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400