=============================
WARNING: suspicious RCU usage
6.16.0-rc7-syzkaller-01993-ge3f96b3556e4 #0 Not tainted
-----------------------------
net/sched/sch_generic.c:1288 suspicious rcu_dereference_protected() usage!

other info that might help us debug this:


rcu_scheduler_active = 2, debug_locks = 1
3 locks held by kworker/u8:2/5659:
 #0: ffff88802dc17948 ((wq_completion)bond0#3){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900024ffbc0 ((work_completion)(&(&bond->mii_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffffffff8e13f0e0 (rcu_read_lock){....}-{1:3}, at: bond_mii_monitor+0x153/0x2e00

stack backtrace:
CPU: 0 UID: 0 PID: 5659 Comm: kworker/u8:2 Not tainted 6.16.0-rc7-syzkaller-01993-ge3f96b3556e4 #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Workqueue: bond0 bond_mii_monitor
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250
 lockdep_rcu_suspicious+0x140/0x1d0
 dev_deactivate_queue+0x8f/0x1b0
 dev_deactivate_many+0xd3/0xd40
 dev_deactivate+0x118/0x1b0
 linkwatch_do_dev+0x10f/0x170
 ethtool_op_get_link+0x15/0x70
 bond_check_dev_link+0x447/0x6c0
 bond_mii_monitor+0x428/0x2e00
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>

=============================
WARNING: suspicious RCU usage
6.16.0-rc7-syzkaller-01993-ge3f96b3556e4 #0 Not tainted
-----------------------------
./include/linux/rtnetlink.h:163 suspicious rcu_dereference_protected() usage!

other info that might help us debug this:


rcu_scheduler_active = 2, debug_locks = 1
3 locks held by kworker/u8:2/5659:
 #0: ffff88802dc17948 ((wq_completion)bond0#3){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900024ffbc0 ((work_completion)(&(&bond->mii_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffffffff8e13f0e0 (rcu_read_lock){....}-{1:3}, at: bond_mii_monitor+0x153/0x2e00

stack backtrace:
CPU: 0 UID: 0 PID: 5659 Comm: kworker/u8:2 Not tainted 6.16.0-rc7-syzkaller-01993-ge3f96b3556e4 #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Workqueue: bond0 bond_mii_monitor
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250
 lockdep_rcu_suspicious+0x140/0x1d0
 dev_deactivate_many+0x197/0xd40
 dev_deactivate+0x118/0x1b0
 linkwatch_do_dev+0x10f/0x170
 ethtool_op_get_link+0x15/0x70
 bond_check_dev_link+0x447/0x6c0
 bond_mii_monitor+0x428/0x2e00
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
BUG: sleeping function called from invalid context at net/core/dev.c:12016
in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 5659, name: kworker/u8:2
preempt_count: 0, expected: 0
RCU nest depth: 1, expected: 0
3 locks held by kworker/u8:2/5659:
 #0: ffff88802dc17948 ((wq_completion)bond0#3){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900024ffbc0 ((work_completion)(&(&bond->mii_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffffffff8e13f0e0 (rcu_read_lock){....}-{1:3}, at: bond_mii_monitor+0x153/0x2e00
CPU: 0 UID: 0 PID: 5659 Comm: kworker/u8:2 Not tainted 6.16.0-rc7-syzkaller-01993-ge3f96b3556e4 #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Workqueue: bond0 bond_mii_monitor
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250
 __might_resched+0x495/0x610
 synchronize_net+0x1b/0xa0
 dev_deactivate_many+0x67f/0xd40
 dev_deactivate+0x118/0x1b0
 linkwatch_do_dev+0x10f/0x170
 ethtool_op_get_link+0x15/0x70
 bond_check_dev_link+0x447/0x6c0
 bond_mii_monitor+0x428/0x2e00
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>

=============================
WARNING: suspicious RCU usage
6.16.0-rc7-syzkaller-01993-ge3f96b3556e4 #0 Tainted: G        W          
-----------------------------
kernel/rcu/tree.c:3320 Illegal synchronize_rcu() in RCU read-side critical section!

other info that might help us debug this:


rcu_scheduler_active = 2, debug_locks = 1
3 locks held by kworker/u8:2/5659:
 #0: ffff88802dc17948 ((wq_completion)bond0#3){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900024ffbc0 ((work_completion)(&(&bond->mii_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffffffff8e13f0e0 (rcu_read_lock){....}-{1:3}, at: bond_mii_monitor+0x153/0x2e00

stack backtrace:
CPU: 0 UID: 0 PID: 5659 Comm: kworker/u8:2 Tainted: G        W           6.16.0-rc7-syzkaller-01993-ge3f96b3556e4 #0 PREEMPT(full) 
Tainted: [W]=WARN
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Workqueue: bond0 bond_mii_monitor
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250
 lockdep_rcu_suspicious+0x140/0x1d0
 synchronize_rcu+0xe9/0x310
 dev_deactivate_many+0x67f/0xd40
 dev_deactivate+0x118/0x1b0
 linkwatch_do_dev+0x10f/0x170
 ethtool_op_get_link+0x15/0x70
 bond_check_dev_link+0x447/0x6c0
 bond_mii_monitor+0x428/0x2e00
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>

=============================
WARNING: suspicious RCU usage
6.16.0-rc7-syzkaller-01993-ge3f96b3556e4 #0 Tainted: G        W          
-----------------------------
kernel/rcu/tree_exp.h:971 Illegal synchronize_rcu_expedited() in RCU read-side critical section!

other info that might help us debug this:


rcu_scheduler_active = 2, debug_locks = 1
3 locks held by kworker/u8:2/5659:
 #0: ffff88802dc17948 ((wq_completion)bond0#3){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900024ffbc0 ((work_completion)(&(&bond->mii_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffffffff8e13f0e0 (rcu_read_lock){....}-{1:3}, at: bond_mii_monitor+0x153/0x2e00

stack backtrace:
CPU: 0 UID: 0 PID: 5659 Comm: kworker/u8:2 Tainted: G        W           6.16.0-rc7-syzkaller-01993-ge3f96b3556e4 #0 PREEMPT(full) 
Tainted: [W]=WARN
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Workqueue: bond0 bond_mii_monitor
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250
 lockdep_rcu_suspicious+0x140/0x1d0
 synchronize_rcu_expedited+0x121/0x730
 synchronize_rcu+0x11a/0x310
 dev_deactivate_many+0x67f/0xd40
 dev_deactivate+0x118/0x1b0
 linkwatch_do_dev+0x10f/0x170
 ethtool_op_get_link+0x15/0x70
 bond_check_dev_link+0x447/0x6c0
 bond_mii_monitor+0x428/0x2e00
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>

=============================
[ BUG: Invalid wait context ]
6.16.0-rc7-syzkaller-01993-ge3f96b3556e4 #0 Tainted: G        W          
-----------------------------
kworker/u8:2/5659 is trying to lock:
ffffffff8e144bf8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x3b9/0x730
other info that might help us debug this:
context-{5:5}
3 locks held by kworker/u8:2/5659:
 #0: ffff88802dc17948 ((wq_completion)bond0#3){+.+.}-{0:0}, at: process_scheduled_works+0x9b4/0x17b0
 #1: ffffc900024ffbc0 ((work_completion)(&(&bond->mii_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x9ef/0x17b0
 #2: ffffffff8e13f0e0 (rcu_read_lock){....}-{1:3}, at: bond_mii_monitor+0x153/0x2e00
stack backtrace:
CPU: 0 UID: 0 PID: 5659 Comm: kworker/u8:2 Tainted: G        W           6.16.0-rc7-syzkaller-01993-ge3f96b3556e4 #0 PREEMPT(full) 
Tainted: [W]=WARN
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Workqueue: bond0 bond_mii_monitor
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250
 __lock_acquire+0xbcb/0xd20
 lock_acquire+0x120/0x360
 __mutex_lock+0x182/0xe80
 synchronize_rcu_expedited+0x3b9/0x730
 synchronize_rcu+0x11a/0x310
 dev_deactivate_many+0x67f/0xd40
 dev_deactivate+0x118/0x1b0
 linkwatch_do_dev+0x10f/0x170
 ethtool_op_get_link+0x15/0x70
 bond_check_dev_link+0x447/0x6c0
 bond_mii_monitor+0x428/0x2e00
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
------------[ cut here ]------------
Voluntary context switch within RCU read-side critical section!
WARNING: CPU: 0 PID: 5659 at kernel/rcu/tree_plugin.h:332 rcu_note_context_switch+0xe39/0x1140
Modules linked in:
CPU: 0 UID: 0 PID: 5659 Comm: kworker/u8:2 Tainted: G        W           6.16.0-rc7-syzkaller-01993-ge3f96b3556e4 #0 PREEMPT(full) 
Tainted: [W]=WARN
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Workqueue: bond0 bond_mii_monitor
RIP: 0010:rcu_note_context_switch+0xe39/0x1140
Code: 00 ba 02 00 00 00 e8 36 4a fe ff 4c 8b bc 24 b0 00 00 00 eb 91 c6 05 bd f8 e3 0d 01 90 48 c7 c7 20 1e 8c 8b e8 38 38 dc ff 90 <0f> 0b 90 90 e9 f4 f2 ff ff 90 0f 0b 90 45 84 ed 0f 84 b9 f2 ff ff
RSP: 0018:ffffc900024fed20 EFLAGS: 00010046
RAX: f823c33cd9dbca00 RBX: dffffc0000000000 RCX: ffff88801eb2d640
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000002
RBP: ffffc900024fee90 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffffbfff1bfaa6c R12: ffff88801eb2d640
R13: 0000000000000000 R14: ffff88801eb2da84 R15: 1ffff9200049fdc0
FS:  0000000000000000(0000) GS:ffff8880b8623000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8c294e7d60 CR3: 000000000df38000 CR4: 00000000000006f0
Call Trace:
 <TASK>
 __schedule+0x326/0x4cf0
 schedule+0x165/0x360
 schedule_preempt_disabled+0x13/0x30
 __mutex_lock+0x3ce/0xe80
 synchronize_rcu_expedited+0x3b9/0x730
 synchronize_rcu+0x11a/0x310
 dev_deactivate_many+0x67f/0xd40
 dev_deactivate+0x118/0x1b0
 linkwatch_do_dev+0x10f/0x170
 ethtool_op_get_link+0x15/0x70
 bond_check_dev_link+0x447/0x6c0
 bond_mii_monitor+0x428/0x2e00
 process_scheduled_works+0xae1/0x17b0
 worker_thread+0x8a0/0xda0
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30
 </TASK>
