Hello,
syzbot has tested the proposed patch but the reproducer is still triggering an issue:
INFO: task hung in pn533_finalize_setup
INFO: task kworker/0:1:7 blocked for more than 143 seconds.
Not tainted 5.14.0-rc2-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/0:1 state:D stack:21688 pid: 7 ppid: 2 flags:0x00004000
INFO: task kworker/1:2:3812 blocked for more than 144 seconds.
Not tainted 5.14.0-rc2-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/1:2 state:D stack:22704 pid: 3812 ppid: 2 flags:0x00004000
INFO: task kworker/0:5:8663 blocked for more than 146 seconds.
Not tainted 5.14.0-rc2-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/0:5 state:D stack:22704 pid: 8663 ppid: 2 flags:0x00004000
INFO: task kworker/0:6:10109 blocked for more than 147 seconds.
Not tainted 5.14.0-rc2-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/0:6 state:D
stack:22704 pid:10109 ppid: 2 flags:0x00004000
INFO: task kworker/1:5:10119 blocked for more than 148 seconds.
Not tainted 5.14.0-rc2-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/1:5 state:D stack:21480 pid:10119 ppid: 2 flags:0x00004000
INFO: task kworker/0:8:10163 blocked for more than 149 seconds.
Not tainted 5.14.0-rc2-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/0:8 state:D stack:21192 pid:10163 ppid: 2 flags:0x00004000
5 locks held by kworker/0:1/7:
#0: ffff88801967a938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x7aa/0x10c0 kernel/workqueue.c:2249
#1: ffffc90000cc7d20 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x7e8/0x10c0 kernel/workqueue.c:2251
#2: ffff888022558220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:754 [inline]
#2: ffff888022558220 (&dev->mutex){....}-{3:3}, at: hub_event+0x157/0xd80 drivers/usb/core/hub.c:5614
#3: ffff88802f6bd220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:754 [inline]
#3: ffff88802f6bd220 (&dev->mutex){....}-{3:3}, at: __device_attach+0x8a/0x560 drivers/base/dd.c:940
#4:
ffff88802fc1f1a8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:754 [inline]
ffff88802fc1f1a8 (&dev->mutex){....}-{3:3}, at: __device_attach+0x8a/0x560 drivers/base/dd.c:940
4 locks held by kworker/u4:3/58:
1 lock held by khungtaskd/1621:
#0: ffffffff8c7177c0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 arch/x86/pci/mmconfig_64.c:151
5 locks held by kworker/1:2/3812:
#0: ffff88801967a938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x7aa/0x10c0 kernel/workqueue.c:2249
#1:
ffffc90002f3fd20 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x7e8/0x10c0 kernel/workqueue.c:2251
#2: ffff888146cf0220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:754 [inline]
#2: ffff888146cf0220 (&dev->mutex){....}-{3:3}, at: hub_event+0x157/0xd80 drivers/usb/core/hub.c:5614
#3: ffff88801ea6e220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:754 [inline]
#3: ffff88801ea6e220 (&dev->mutex){....}-{3:3}, at: __device_attach+0x8a/0x560 drivers/base/dd.c:940
#4: ffff88802e2921a8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:754 [inline]
#4: ffff88802e2921a8 (&dev->mutex){....}-{3:3}, at: __device_attach+0x8a/0x560 drivers/base/dd.c:940
1 lock held by in:imklog/8127:
#0: ffff88802b96c0f0 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x24e/0x2f0 fs/file.c:974
5 locks held by kworker/0:5/8663:
#0: ffff88801967a938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x7aa/0x10c0 kernel/workqueue.c:2249
#1: ffffc9000256fd20 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x7e8/0x10c0 kernel/workqueue.c:2251
#2: ffff888022568220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:754 [inline]
#2: ffff888022568220 (&dev->mutex){....}-{3:3}, at: hub_event+0x157/0xd80 drivers/usb/core/hub.c:5614
#3: ffff88802f1bf220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:754 [inline]
#3: ffff88802f1bf220 (&dev->mutex){....}-{3:3}, at: __device_attach+0x8a/0x560 drivers/base/dd.c:940
#4: ffff8880314a91a8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:754 [inline]
#4: ffff8880314a91a8 (&dev->mutex){....}-{3:3}, at: __device_attach+0x8a/0x560 drivers/base/dd.c:940
5 locks held by kworker/0:6/10109:
#0: ffff88801967a938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x7aa/0x10c0 kernel/workqueue.c:2249
#1: ffffc9000ae57d20 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x7e8/0x10c0 kernel/workqueue.c:2251
#2: ffff888022620220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:754 [inline]
#2: ffff888022620220 (&dev->mutex){....}-{3:3}, at: hub_event+0x157/0xd80 drivers/usb/core/hub.c:5614
#3: ffff88802fcce220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:754 [inline]
#3: ffff88802fcce220 (&dev->mutex){....}-{3:3}, at: __device_attach+0x8a/0x560 drivers/base/dd.c:940
#4: ffff88803592a1a8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:754 [inline]
#4: ffff88803592a1a8 (&dev->mutex){....}-{3:3}, at: __device_attach+0x8a/0x560 drivers/base/dd.c:940
5 locks held by kworker/1:5/10119:
#0: ffff88801967a938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x7aa/0x10c0 kernel/workqueue.c:2249
#1: ffffc9000aef7d20 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x7e8/0x10c0 kernel/workqueue.c:2251
#2: ffff8880225f0220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:754 [inline]
#2: ffff8880225f0220 (&dev->mutex){....}-{3:3}, at: hub_event+0x157/0xd80 drivers/usb/core/hub.c:5614
#3: ffff8880184db220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:754 [inline]
#3: ffff8880184db220 (&dev->mutex){....}-{3:3}, at: __device_attach+0x8a/0x560 drivers/base/dd.c:940
#4: ffff88801eb881a8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:754 [inline]
#4: ffff88801eb881a8 (&dev->mutex){....}-{3:3}, at: __device_attach+0x8a/0x560 drivers/base/dd.c:940
5 locks held by kworker/0:8/10163:
#0: ffff88801967a938 ((wq_completion)usb_hub_wq){+.+.}-{0:0}, at: process_one_work+0x7aa/0x10c0 kernel/workqueue.c:2249
#1: ffffc9000afd7d20 ((work_completion)(&hub->events)){+.+.}-{0:0}, at: process_one_work+0x7e8/0x10c0 kernel/workqueue.c:2251
#2: ffff888022608220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:754 [inline]
#2: ffff888022608220 (&dev->mutex){....}-{3:3}, at: hub_event+0x157/0xd80 drivers/usb/core/hub.c:5614
#3: ffff88801cdf2220 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:754 [inline]
#3: ffff88801cdf2220 (&dev->mutex){....}-{3:3}, at: __device_attach+0x8a/0x560 drivers/base/dd.c:940
#4: ffff8880376661a8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:754 [inline]
#4: ffff8880376661a8 (&dev->mutex){....}-{3:3}, at: __device_attach+0x8a/0x560 drivers/base/dd.c:940
3 locks held by syz-executor.1/18700:
#0: ffff8880b9c514d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:460 [inline]
#0: ffff8880b9c514d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock kernel/sched/sched.h:1307 [inline]
#0: ffff8880b9c514d8 (&rq->__lock){-.-.}-{2:2}, at: rq_lock kernel/sched/sched.h:1610 [inline]
#0: ffff8880b9c514d8 (&rq->__lock){-.-.}-{2:2}, at: __schedule+0x150/0x11f0 kernel/sched/core.c:5854
#1: ffff8880b9c1f848 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x50b/0x820 kernel/sched/psi.c:880
#2: ffffffff8c7177c0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 arch/x86/pci/mmconfig_64.c:151
4 locks held by syz-executor.2/18734:
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 1621 Comm: khungtaskd Not tainted 5.14.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1d3/0x29f lib/dump_stack.c:105
nmi_cpu_backtrace+0x16c/0x190 lib/nmi_backtrace.c:105
nmi_trigger_cpumask_backtrace+0x191/0x2f0 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline]
watchdog+0xd06/0xd50 kernel/hung_task.c:295
kthread+0x453/0x480 kernel/kthread.c:319
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 3163 Comm: kworker/0:3 Not tainted 5.14.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: wg-crypt-wg0 wg_packet_encrypt_worker
RIP: 0010:try_to_wake_up+0xc8/0xe10 kernel/sched/core.c:3723
Code: 00 4c 89 64 24 18 4c 8d a3 10 09 00 00 4c 89 e7 e8 4d 50 83 08 48 89 44 24 20 48 83 c3 18 49 89 dd 49 c1 ed 03 43 8a 44 35 00 <84> c0 0f 85 cc 08 00 00 44 23 3b 0f 84 28 01 00 00 48 89 5c 24 10
RSP: 0018:ffffc900021df440 EFLAGS: 00000806
RAX: 0000000000000800 RBX: ffff888021cc0018 RCX: 0000000000000001
RDX: dffffc0000000000 RSI: 0000000000000004 RDI: ffffc900021df320
RBP: ffffc900021df550 R08: dffffc0000000000 R09: 0000000000000003
R10: fffff5200043be65 R11: 0000000000000004 R12: ffff888021cc0910
R13: 1ffff11004398003 R14: dffffc0000000000 R15: 0000000000000003
FS: 0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffd38a2ecc0 CR3: 000000000c48e000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__queue_work+0x928/0xc60 kernel/workqueue.c:1498
queue_work_on+0x111/0x200 kernel/workqueue.c:1525
wg_queue_enqueue_per_peer_tx+0x1e5/0x360 drivers/net/wireguard/queueing.h:193
wg_packet_encrypt_worker+0x1197/0x1550 drivers/net/wireguard/send.c:305
process_one_work+0x833/0x10c0 kernel/workqueue.c:2276
worker_thread+0xac1/0x1320 kernel/workqueue.c:2422
kthread+0x453/0x480 kernel/kthread.c:319
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
Tested on:
commit: 2734d6c1 Linux 5.14-rc2
git tree: git://
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
console output:
https://syzkaller.appspot.com/x/log.txt?x=10e808d4300000
kernel config:
https://syzkaller.appspot.com/x/.config?x=300aea483211c875
dashboard link:
https://syzkaller.appspot.com/bug?extid=1dc8b460d6d48d7ef9ca
compiler: Debian clang version 11.0.1-2, GNU ld (GNU Binutils for Debian) 2.35.1