BUG: sleeping function called from invalid context at kernel/workqueue.c:4561
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5571, name: sshd
preempt_count: 101, expected: 0
RCU nest depth: 3, expected: 0
locks held by sshd/5571: 5, last CPU#0:
 #0: ffff8881110d8260 (sk_lock-AF_INET){+.+.}-{0:0}, at: tcp_sendmsg+0x21/0x50
 #1: ffffffff8fd5c8e0 (rcu_read_lock){....}-{1:3}, at: __ip_queue_xmit+0x65/0x1b10
 #2: ffffffff8fd5c8e0 (rcu_read_lock){....}-{1:3}, at: ip_output+0x5a/0x450
 #3: ffffffff8fd5c8e0 (rcu_read_lock){....}-{1:3}, at: ip_finish_output2+0x3de/0x10b0
 #4: ffffc90000007d00 ((&vub300->inactivity_timer)){+.-.}-{0:0}, at: call_timer_fn+0xd5/0x5f0
Preemption disabled at:
[<ffffffff89b41c18>] __dev_queue_xmit+0x2a8/0x3920
CPU: 0 UID: 0 PID: 5571 Comm: sshd Tainted: G             L      syzkaller #0 PREEMPT(full) 
Tainted: [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <IRQ>
 dump_stack_lvl+0xe8/0x150
 __might_resched+0x36a/0x4c0
 __cancel_work_sync+0x6d/0x110
 mmc_free_host+0x19/0x40
 call_timer_fn+0x18d/0x5f0
 __run_timer_base+0x652/0x8b0
 run_timer_softirq+0xb7/0x170
 handle_softirqs+0x226/0x860
 do_softirq+0x77/0xd0
 </IRQ>
 <TASK>
 __local_bh_enable_ip+0x100/0x140
 __dev_queue_xmit+0x1efb/0x3920
 ip_finish_output2+0xbda/0x10b0
 ip_output+0x29f/0x450
 __ip_queue_xmit+0x10df/0x1b10
 __tcp_transmit_skb+0x2d18/0x47c0
 tcp_write_xmit+0x1bfa/0x6400
 __tcp_push_pending_frames+0x96/0x380
 tcp_sendmsg_locked+0x47da/0x5400
 tcp_sendmsg+0x2f/0x50
 sock_sendmsg_nosec+0x10e/0x180
 sock_write_iter+0x2de/0x3e0
 vfs_write+0x612/0xba0
 ksys_write+0x150/0x270
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fc309716bf2
Code: 89 c7 48 89 44 24 08 e8 7b 34 fa ff 48 8b 44 24 08 48 83 c4 28 c3 c3 64 8b 04 25 18 00 00 00 85 c0 75 20 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 6f 48 8b 15 07 a2 0d 00 f7 d8 64 89 02 48 83
RSP: 002b:00007ffc9b3848c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000224 RCX: 00007fc309716bf2
RDX: 0000000000000224 RSI: 00007fc309592010 RDI: 0000000000000004
RBP: 00005572bf17e2b0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00005572a4629aa4
R13: 0000000000000153 R14: 00005572a462a3e8 R15: 00007ffc9b384938
 </TASK>

=============================
WARNING: suspicious RCU usage
syzkaller #0 Tainted: G        W    L     
-----------------------------
kernel/rcu/srcutree.c:1468 Illegal synchronize_srcu() in same-type SRCU (or in RCU) read-side critical section!

other info that might help us debug this:


rcu_scheduler_active = 2, debug_locks = 1
locks held by sshd/5571: 5, last CPU#0:
 #0: ffff8881110d8260 (sk_lock-AF_INET){+.+.}-{0:0}, at: tcp_sendmsg+0x21/0x50
 #1: ffffffff8fd5c8e0 (rcu_read_lock){....}-{1:3}, at: __ip_queue_xmit+0x65/0x1b10
 #2: ffffffff8fd5c8e0 (rcu_read_lock){....}-{1:3}, at: ip_output+0x5a/0x450
 #3: ffffffff8fd5c8e0 (rcu_read_lock){....}-{1:3}, at: ip_finish_output2+0x3de/0x10b0
 #4: ffffc90000007d00 ((&vub300->inactivity_timer)){+.-.}-{0:0}, at: call_timer_fn+0xd5/0x5f0

stack backtrace:
CPU: 0 UID: 0 PID: 5571 Comm: sshd Tainted: G        W    L      syzkaller #0 PREEMPT(full) 
Tainted: [W]=WARN, [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <IRQ>
 dump_stack_lvl+0xe8/0x150
 lockdep_rcu_suspicious+0x140/0x1d0
 __synchronize_srcu+0x157/0x2f0
 wakeup_source_unregister+0x129/0x3f0
 mmc_host_classdev_release+0x47/0x100
 device_release+0xc4/0x1f0
 kobject_put+0x222/0x550
 call_timer_fn+0x18d/0x5f0
 __run_timer_base+0x652/0x8b0
 run_timer_softirq+0xb7/0x170
 handle_softirqs+0x226/0x860
 do_softirq+0x77/0xd0
 </IRQ>
 <TASK>
 __local_bh_enable_ip+0x100/0x140
 __dev_queue_xmit+0x1efb/0x3920
 ip_finish_output2+0xbda/0x10b0
 ip_output+0x29f/0x450
 __ip_queue_xmit+0x10df/0x1b10
 __tcp_transmit_skb+0x2d18/0x47c0
 tcp_write_xmit+0x1bfa/0x6400
 __tcp_push_pending_frames+0x96/0x380
 tcp_sendmsg_locked+0x47da/0x5400
 tcp_sendmsg+0x2f/0x50
 sock_sendmsg_nosec+0x10e/0x180
 sock_write_iter+0x2de/0x3e0
 vfs_write+0x612/0xba0
 ksys_write+0x150/0x270
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fc309716bf2
Code: 89 c7 48 89 44 24 08 e8 7b 34 fa ff 48 8b 44 24 08 48 83 c4 28 c3 c3 64 8b 04 25 18 00 00 00 85 c0 75 20 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 6f 48 8b 15 07 a2 0d 00 f7 d8 64 89 02 48 83
RSP: 002b:00007ffc9b3848c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000224 RCX: 00007fc309716bf2
RDX: 0000000000000224 RSI: 00007fc309592010 RDI: 0000000000000004
RBP: 00005572bf17e2b0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00005572a4629aa4
R13: 0000000000000153 R14: 00005572a462a3e8 R15: 00007ffc9b384938
 </TASK>
ODEBUG: object ffffc90000007ac0 is NOT on stack ffffc900047a8000, but annotated.
------------[ cut here ]------------
1
WARNING: lib/debugobjects.c:672 at __debug_object_init+0x2c4/0x3c0, CPU#0: sshd/5571
Modules linked in:
CPU: 0 UID: 0 PID: 5571 Comm: sshd Tainted: G        W    L      syzkaller #0 PREEMPT(full) 
Tainted: [W]=WARN, [L]=SOFTLOCKUP
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:__debug_object_init+0x2c4/0x3c0
Code: cc cc cc 41 ff c7 44 89 3d 09 88 e7 16 48 c7 c1 80 e4 6d 8c 48 c7 c7 e0 e4 6d 8c 84 c0 48 0f 45 f9 48 89 de e8 cd 70 3b fc 90 <0f> 0b 90 e9 c0 fe ff ff e8 4f 1c 00 00 8b 05 61 85 6c 0b 3b 05 5f
RSP: 0018:ffffc900000079f8 EFLAGS: 00010046
RAX: 0000000000000050 RBX: ffffc90000007ac0 RCX: 41aedaef32cd0500
RDX: 0000000000000100 RSI: 0000000000000100 RDI: 0000000000000000
RBP: ffff888172f50020 R08: 0000000000000100 R09: 1ffffffff20d24b0
R10: dffffc0000000000 R11: fffffbfff20d24b1 R12: 1ffff92000000f54
R13: ffff8881116ca888 R14: dffffc0000000000 R15: 0000000000000001
FS:  00007fc309a91800(0000) GS:ffff88818c4bf000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fffe2cb8ff8 CR3: 000000017892e000 CR4: 00000000000006f0
Call Trace:
 <IRQ>
 __synchronize_srcu+0x1d5/0x2f0
 wakeup_source_unregister+0x129/0x3f0
 mmc_host_classdev_release+0x47/0x100
 device_release+0xc4/0x1f0
 kobject_put+0x222/0x550
 call_timer_fn+0x18d/0x5f0
 __run_timer_base+0x652/0x8b0
 run_timer_softirq+0xb7/0x170
 handle_softirqs+0x226/0x860
 do_softirq+0x77/0xd0
 </IRQ>
 <TASK>
 __local_bh_enable_ip+0x100/0x140
 __dev_queue_xmit+0x1efb/0x3920
 ip_finish_output2+0xbda/0x10b0
 ip_output+0x29f/0x450
 __ip_queue_xmit+0x10df/0x1b10
 __tcp_transmit_skb+0x2d18/0x47c0
 tcp_write_xmit+0x1bfa/0x6400
 __tcp_push_pending_frames+0x96/0x380
 tcp_sendmsg_locked+0x47da/0x5400
 tcp_sendmsg+0x2f/0x50
 sock_sendmsg_nosec+0x10e/0x180
 sock_write_iter+0x2de/0x3e0
 vfs_write+0x612/0xba0
 ksys_write+0x150/0x270
 do_syscall_64+0x166/0x520
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fc309716bf2
Code: 89 c7 48 89 44 24 08 e8 7b 34 fa ff 48 8b 44 24 08 48 83 c4 28 c3 c3 64 8b 04 25 18 00 00 00 85 c0 75 20 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 6f 48 8b 15 07 a2 0d 00 f7 d8 64 89 02 48 83
RSP: 002b:00007ffc9b3848c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000224 RCX: 00007fc309716bf2
RDX: 0000000000000224 RSI: 00007fc309592010 RDI: 0000000000000004
RBP: 00005572bf17e2b0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00005572a4629aa4
R13: 0000000000000153 R14: 00005572a462a3e8 R15: 00007ffc9b384938
 </TASK>
