=============================
[ BUG: Invalid wait context ]
syzkaller #0 Not tainted
-----------------------------
syz.8.2734/15643 is trying to lock:
ffff88804c4742e8 (&type->lock_class#4){+.+.}-{4:4}, at: spin_lock include/linux/spinlock.h:342 [inline]
ffff88804c4742e8 (&type->lock_class#4){+.+.}-{4:4}, at: tcp_tsq_handler+0x1d/0x200 net/ipv4/tcp_output.c:1291
other info that might help us debug this:
context-{3:3}
2 locks held by syz.8.2734/15643:
#0: ffff88801bc09540 ((wq_completion)events_bh){+.-.}-{0:0}, at: process_one_work+0x12b1/0x1940 kernel/workqueue.c:3297
#1: ffffc90000a08d60 ((work_completion)(&tsq->work)){+.-.}-{0:0}, at: process_one_work+0x988/0x1940 kernel/workqueue.c:3298
stack backtrace:
CPU: 1 UID: 0 PID: 15643 Comm: syz.8.2734 Not tainted syzkaller #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
print_lock_invalid_wait_context kernel/locking/lockdep.c:4830 [inline]
check_wait_context kernel/locking/lockdep.c:4902 [inline]
__lock_acquire+0xf75/0x1a40 kernel/locking/lockdep.c:5187
lock_acquire kernel/locking/lockdep.c:5868 [inline]
lock_acquire+0x1b9/0x370 kernel/locking/lockdep.c:5825
__raw_spin_lock include/linux/spinlock_api_smp.h:158 [inline]
_raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:158
spin_lock include/linux/spinlock.h:342 [inline]
tcp_tsq_handler+0x1d/0x200 net/ipv4/tcp_output.c:1291
tcp_tsq_workfn+0x2b2/0x560 net/ipv4/tcp_output.c:1325
process_one_work+0xa23/0x1940 kernel/workqueue.c:3322
process_scheduled_works kernel/workqueue.c:3405 [inline]
bh_worker+0x646/0x890 kernel/workqueue.c:3708
workqueue_softirq_action+0x142/0x1a0 kernel/workqueue.c:3736
tasklet_action+0x14/0x70 kernel/softirq.c:965
handle_softirqs+0x1ea/0x9b0 kernel/softirq.c:622
__do_softirq kernel/softirq.c:656 [inline]
invoke_softirq kernel/softirq.c:496 [inline]
__irq_exit_rcu+0x162/0x210 kernel/softirq.c:735
irq_exit_rcu+0x9/0x30 kernel/softirq.c:752
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline]
sysvec_apic_timer_interrupt+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1062
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674
RIP: 0010:__sanitizer_cov_trace_pc+0x3f/0x70 kernel/kcov.c:217
Code: 58 12 a9 00 01 ff 00 74 1b f6 c4 01 74 07 a9 00 00 ff 00 74 05 c3 cc cc cc cc 8b 82 24 17 00 00 85 c0 74 f1 8b 82 f8 16 00 00 <83> f8 02 75 e6 48 8b 8a 00 17 00 00 8b 92 fc 16 00 00 48 8b 01 48
RSP: 0018:ffffc900050279b8 EFLAGS: 00000246
RAX: 0000000000000002 RBX: ffffc90005027b90 RCX: ffffffff851ca0c8
RDX: ffff888077e5a540 RSI: ffffffff851ca0da RDI: ffff888077e5a540
RBP: 0000000000000000 R08: 0000000000000007 R09: fffffffffffff000
R10: ffffc90005027bd0 R11: 0000000000000000 R12: 0000000000000008
R13: 0000000000000000 R14: ffffc90005027bd0 R15: ffffc90005027bd0
__import_iovec+0xaa/0x640 lib/iov_iter.c:1389
import_iovec+0x101/0x130 lib/iov_iter.c:1440
copy_msghdr_from_user+0x2c6/0x4c0 net/socket.c:2621
recvmsg_copy_msghdr net/socket.c:2870 [inline]
___sys_recvmsg+0xdd/0x1a0 net/socket.c:2942
do_recvmmsg+0x2f3/0x740 net/socket.c:3041
__sys_recvmmsg net/socket.c:3115 [inline]
__do_sys_recvmmsg net/socket.c:3138 [inline]
__se_sys_recvmmsg net/socket.c:3131 [inline]
__x64_sys_recvmmsg+0x22a/0x280 net/socket.c:3131
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x115/0x870 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9936b9e0d9
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:00007f9934df6028 EFLAGS: 00000246 ORIG_RAX: 000000000000012b
RAX: ffffffffffffffda RBX: 00007f9936e26090 RCX: 00007f9936b9e0d9
RDX: 0000000000010106 RSI: 00002000000000c0 RDI: 0000000000000004
RBP: 00007f9936c35024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f9936e26128 R14: 00007f9936e26090 R15: 00007ffe40ebc6a8
----------------
Code disassembly (best guess):
0: 58 pop %rax
1: 12 a9 00 01 ff 00 adc 0xff0100(%rcx),%ch
7: 74 1b je 0x24
9: f6 c4 01 test $0x1,%ah
c: 74 07 je 0x15
e: a9 00 00 ff 00 test $0xff0000,%eax
13: 74 05 je 0x1a
15: c3 ret
16: cc int3
17: cc int3
18: cc int3
19: cc int3
1a: 8b 82 24 17 00 00 mov 0x1724(%rdx),%eax
20: 85 c0 test %eax,%eax
22: 74 f1 je 0x15
24: 8b 82 f8 16 00 00 mov 0x16f8(%rdx),%eax
* 2a: 83 f8 02 cmp $0x2,%eax <-- trapping instruction
2d: 75 e6 jne 0x15
2f: 48 8b 8a 00 17 00 00 mov 0x1700(%rdx),%rcx
36: 8b 92 fc 16 00 00 mov 0x16fc(%rdx),%edx
3c: 48 8b 01 mov (%rcx),%rax
3f: 48 rex.W