syzbot


INFO: task hung in switchdev_deferred_process_work (2)

Status: upstream: reported on 2025/12/02 15:22
Reported-by: syzbot+4e23e13d1bb3927b03f0@syzkaller.appspotmail.com
First crash: 12d, last: 12d
Similar bugs (12)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 INFO: task hung in switchdev_deferred_process_work (2) 1 1 83d 83d 0/3 upstream: reported on 2025/09/22 08:30
upstream INFO: task hung in switchdev_deferred_process_work (2) net 1 C inconclusive 1226 523d 1966d 26/29 fixed on 2024/07/09 19:14
linux-6.6 INFO: task hung in switchdev_deferred_process_work 1 1 144d 144d 0/2 auto-obsoleted due to no activity on 2025/10/31 04:22
upstream INFO: task hung in switchdev_deferred_process_work net 1 35 2256d 2792d 0/29 closed as invalid on 2019/10/23 07:26
upstream INFO: task hung in switchdev_deferred_process_work (3) net 1 C inconclusive 568 11h41m 493d 0/29 upstream: reported C repro on 2024/08/08 21:14
linux-5.15 INFO: task hung in switchdev_deferred_process_work (4) 1 1 3d23h 3d23h 0/3 upstream: reported on 2025/12/11 00:18
linux-5.15 INFO: task hung in switchdev_deferred_process_work 1 1 977d 977d 0/3 auto-obsoleted due to no activity on 2023/08/10 05:46
linux-4.19 INFO: task hung in switchdev_deferred_process_work 1 95 1029d 2107d 0/1 upstream: reported on 2020/03/08 04:06
linux-4.14 INFO: task hung in switchdev_deferred_process_work 1 1 1318d 1318d 0/1 auto-obsoleted due to no activity on 2022/09/03 16:45
linux-5.15 INFO: task hung in switchdev_deferred_process_work (2) 1 36 631d 703d 0/3 auto-obsoleted due to no activity on 2024/06/01 16:21
linux-5.15 INFO: task hung in switchdev_deferred_process_work (3) 1 8 415d 558d 0/3 auto-obsoleted due to no activity on 2025/02/02 03:46
linux-6.1 INFO: task hung in switchdev_deferred_process_work 1 8 522d 685d 0/3 auto-obsoleted due to no activity on 2024/10/18 09:59

Sample crash report:
INFO: task kworker/0:3:5824 blocked for more than 143 seconds.
      Not tainted syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/0:3     state:D stack:25320 pid:5824  ppid:2      flags:0x00004000
Workqueue: events switchdev_deferred_process_work
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5380 [inline]
 __schedule+0x14d2/0x44d0 kernel/sched/core.c:6699
 schedule+0xbd/0x170 kernel/sched/core.c:6773
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6832
 __mutex_lock_common kernel/locking/mutex.c:679 [inline]
 __mutex_lock+0x6b7/0xcc0 kernel/locking/mutex.c:747
 switchdev_deferred_process_work+0xe/0x20 net/switchdev/switchdev.c:104
 process_one_work kernel/workqueue.c:2634 [inline]
 process_scheduled_works+0xa45/0x15b0 kernel/workqueue.c:2711
 worker_thread+0xa55/0xfc0 kernel/workqueue.c:2792
 kthread+0x2fa/0x390 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
 </TASK>

Showing all locks held in the system:
2 locks held by kworker/0:1/9:
3 locks held by kworker/u4:0/11:
 #0: ffff88802bf3b938 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2609 [inline]
 #0: ffff88802bf3b938 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_scheduled_works+0x957/0x15b0 kernel/workqueue.c:2711
 #1: ffffc90000107d00 ((work_completion)(&(&net->ipv6.addr_chk_work)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2609 [inline]
 #1: ffffc90000107d00 ((work_completion)(&(&net->ipv6.addr_chk_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x957/0x15b0 kernel/workqueue.c:2711
 #2: ffffffff8dfbc708 (rtnl_mutex){+.+.}-{3:3}, at: addrconf_verify_work+0x19/0x30 net/ipv6/addrconf.c:4700
1 lock held by khungtaskd/29:
 #0: ffffffff8cd2ff20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:334 [inline]
 #0: ffffffff8cd2ff20 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:786 [inline]
 #0: ffffffff8cd2ff20 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x290 kernel/locking/lockdep.c:6633
1 lock held by udevd/5158:
1 lock held by dhcpcd/5453:
2 locks held by getty/5550:
 #0: ffff88802ccbb0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: ffffc9000326e2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x425/0x1380 drivers/tty/n_tty.c:2217
3 locks held by kworker/0:3/5824:
 #0: ffff888017870938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2609 [inline]
 #0: ffff888017870938 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x957/0x15b0 kernel/workqueue.c:2711
 #1: ffffc9000481fd00 (deferred_process_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2609 [inline]
 #1: ffffc9000481fd00 (deferred_process_work){+.+.}-{0:0}, at: process_scheduled_works+0x957/0x15b0 kernel/workqueue.c:2711
 #2: ffffffff8dfbc708 (rtnl_mutex){+.+.}-{3:3}, at: switchdev_deferred_process_work+0xe/0x20 net/switchdev/switchdev.c:104
1 lock held by dhcpcd/9720:
1 lock held by dhcpcd/10409:
1 lock held by syz.4.1882/12353:
 #0: ffffffff8dfbc708 (rtnl_mutex){+.+.}-{3:3}, at: tun_detach drivers/net/tun.c:698 [inline]
 #0: ffffffff8dfbc708 (rtnl_mutex){+.+.}-{3:3}, at: tun_chr_close+0x41/0x1c0 drivers/net/tun.c:3511
2 locks held by dhcpcd/12439:
 #0: ffff888025b26130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1767 [inline]
 #0: ffff888025b26130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x32/0xcc0 net/packet/af_packet.c:3258
 #1: ffffffff8cd358f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:324 [inline]
 #1: ffffffff8cd358f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x360/0x830 kernel/rcu/tree_exp.h:1004
2 locks held by dhcpcd/12440:
 #0: ffff888025596130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1767 [inline]
 #0: ffff888025596130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x32/0xcc0 net/packet/af_packet.c:3258
 #1: ffffffff8cd358f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:324 [inline]
 #1: ffffffff8cd358f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x360/0x830 kernel/rcu/tree_exp.h:1004
1 lock held by dhcpcd/12441:
 #0: ffff888076224130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1767 [inline]
 #0: ffff888076224130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x32/0xcc0 net/packet/af_packet.c:3258

=============================================

NMI backtrace for cpu 1
CPU: 1 PID: 29 Comm: khungtaskd Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
Call Trace:
 <TASK>
 dump_stack_lvl+0x16c/0x230 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x39b/0x3d0 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x17a/0x2f0 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline]
 watchdog+0xf41/0xf80 kernel/hung_task.c:379
 kthread+0x2fa/0x390 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:152
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:293
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 1098 Comm: kworker/u4:6 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
Workqueue: events_unbound nsim_dev_trap_report_work
RIP: 0010:check_wait_context kernel/locking/lockdep.c:4778 [inline]
RIP: 0010:__lock_acquire+0x697/0x7c80 kernel/locking/lockdep.c:5087
Code: 48 89 d8 48 c1 e8 03 42 0f b6 04 00 84 c0 0f 85 b4 62 00 00 45 84 f6 0f 84 76 05 00 00 0f b6 1b 48 8b 44 24 48 42 0f b6 04 00 <84> c0 0f 85 23 63 00 00 41 f6 47 01 80 0f 85 56 05 00 00 84 db 41
RSP: 0018:ffffc9000465f700 EFLAGS: 00000002
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff81670461
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff90da95e8
RBP: ffffc9000465f948 R08: dffffc0000000000 R09: 1ffffffff21b52bd
R10: dffffc0000000000 R11: fffffbfff21b52be R12: ffff888022e5a8c4
R13: ffff888022e59e00 R14: 0000000000000002 R15: ffff888022e5a9a0
FS:  0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000001bb1e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <TASK>
 lock_acquire+0x197/0x410 kernel/locking/lockdep.c:5754
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline]
 _raw_spin_lock_bh+0x36/0x50 kernel/locking/spinlock.c:178

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/12/02 15:21 linux-6.6.y 4791134e4aeb d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan-perf INFO: task hung in switchdev_deferred_process_work
* Struck through repros no longer work on HEAD.