syzbot


BUG: sleeping function called from invalid context in wext_netdev_notifier_call

Status: upstream: reported on 2024/12/12 04:41
Subsystems: wireless
[Documentation on labels]
Reported-by: syzbot+3647b9259b77c1bb8e94@syzkaller.appspotmail.com
First crash: 110d, last: 60d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [wireless?] BUG: sleeping function called from invalid context in wext_netdev_notifier_call 4 (5) 2024/12/13 08:45

Sample crash report:
BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1523
in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 2986, name: kworker/u8:8
preempt_count: 0, expected: 0
RCU nest depth: 1, expected: 0
INFO: lockdep is turned off.
CPU: 0 UID: 0 PID: 2986 Comm: kworker/u8:8 Not tainted 6.13.0-syzkaller-07644-gc2da8b3f914f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
Workqueue: bond0 bond_mii_monitor
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:94 [inline]
 dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120
 __might_resched+0x5d4/0x780 kernel/sched/core.c:8758
 down_read+0x8e/0xa40 kernel/locking/rwsem.c:1523
 wireless_nlevent_flush net/wireless/wext-core.c:351 [inline]
 wext_netdev_notifier_call+0x1f/0x120 net/wireless/wext-core.c:371
 notifier_call_chain+0x1a5/0x3f0 kernel/notifier.c:85
 netdev_state_change+0x11f/0x1a0 net/core/dev.c:1506
 linkwatch_do_dev+0x112/0x170 net/core/link_watch.c:186
 ethtool_op_get_link+0x15/0x60 net/ethtool/ioctl.c:62
 bond_check_dev_link+0x1f1/0x3f0 drivers/net/bonding/bond_main.c:873
 bond_miimon_inspect drivers/net/bonding/bond_main.c:2740 [inline]
 bond_mii_monitor+0x49a/0x3170 drivers/net/bonding/bond_main.c:2962
 process_one_work kernel/workqueue.c:3236 [inline]
 process_scheduled_works+0xa66/0x1840 kernel/workqueue.c:3317
 worker_thread+0x870/0xd30 kernel/workqueue.c:3398
 kthread+0x7a9/0x920 kernel/kthread.c:464
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:148
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/01/26 20:40 upstream c2da8b3f914f 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root BUG: sleeping function called from invalid context in wext_netdev_notifier_call
2024/12/27 00:46 net b3a69c559899 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce BUG: sleeping function called from invalid context in wext_netdev_notifier_call
2024/12/08 04:37 net 4c49f38e20a5 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce BUG: sleeping function called from invalid context in wext_netdev_notifier_call
2024/12/31 14:02 net-next 9268abe611b0 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce BUG: sleeping function called from invalid context in wext_netdev_notifier_call
2024/12/28 15:22 net-next 9268abe611b0 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce BUG: sleeping function called from invalid context in wext_netdev_notifier_call
2024/12/27 10:04 net-next 9268abe611b0 d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-net-kasan-gce BUG: sleeping function called from invalid context in wext_netdev_notifier_call
* Struck through repros no longer work on HEAD.