syzbot


INFO: task hung in nbd_add_socket (2)

Status: upstream: reported C repro on 2022/03/21 16:06
Subsystems: block
[Documentation on labels]
Reported-by: syzbot+cbb4b1ebc70d0c5a8c29@syzkaller.appspotmail.com
First crash: 934d, last: 28d
Cause bisection: failed (error log, bisect log)
  
Discussions (10)
Title Replies (including bot) Last reply
[syzbot] Monthly block report (Jul 2024) 0 (1) 2024/07/15 11:51
[syzbot] Monthly block report (May 2024) 0 (1) 2024/05/13 21:12
[syzbot] Monthly block report (Mar 2024) 0 (1) 2024/03/12 09:29
[syzbot] Monthly block report (Jan 2024) 0 (1) 2024/01/09 18:20
[syzbot] Monthly block report (Dec 2023) 0 (1) 2023/12/10 10:05
[syzbot] Monthly block report (Oct 2023) 0 (1) 2023/10/09 09:23
[syzbot] Monthly block report (Jul 2023) 0 (1) 2023/07/06 14:17
[syzbot] Monthly block report (Jun 2023) 0 (1) 2023/06/07 09:10
[syzbot] Monthly block report (May 2023) 0 (1) 2023/05/05 08:06
[syzbot] INFO: task hung in nbd_add_socket (2) 0 (2) 2022/04/07 05:24
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in nbd_add_socket block 75 972d 1051d 0/28 closed as dup on 2021/11/21 13:59
linux-4.14 INFO: task hung in nbd_add_socket (2) C error 2 762d 1016d 0/1 upstream: reported C repro on 2021/12/25 23:00
linux-4.14 INFO: task hung in nbd_add_socket 1 1308d 1308d 0/1 auto-closed as invalid on 2021/07/06 19:04
linux-4.19 INFO: task hung in nbd_add_socket C error 11 584d 1308d 0/1 upstream: reported C repro on 2021/03/08 23:07
linux-6.1 INFO: task hung in nbd_add_socket origin:upstream C 2 15d 504d 0/3 upstream: reported C repro on 2023/05/21 19:27
upstream INFO: task can't die in blk_mq_freeze_queue_wait block 221 1048d 1056d 20/28 fixed on 2022/03/08 16:11
Last patch testing requests (12)
Created Duration User Patch Repo Result
2024/09/23 16:59 19m retest repro linux-next report log
2024/09/23 16:59 20m retest repro linux-next report log
2024/09/23 16:59 1h42m retest repro linux-next report log
2024/09/23 07:52 18m retest repro linux-next report log
2024/09/23 07:52 17m retest repro linux-next report log
2024/09/23 07:52 30m retest repro upstream report log
2024/09/23 07:52 2h05m retest repro upstream OK log
2024/09/23 07:52 1h04m retest repro linux-next report log
2024/09/23 06:49 18m retest repro upstream report log
2024/09/23 06:49 18m retest repro upstream report log
2022/04/07 10:23 11m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/ 3e732ebf7316 OK
2022/04/07 08:54 4m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/ 3e732ebf7316 error
Fix bisection attempts (16)
Created Duration User Patch Repo Result
2024/09/08 16:49 4h04m bisect fix upstream OK (0) job log log
2024/08/09 02:08 1h36m bisect fix upstream OK (0) job log log
2024/07/09 10:21 2h25m bisect fix upstream OK (0) job log log
2024/03/04 23:39 2h00m bisect fix upstream OK (0) job log log
2024/01/02 00:26 1h47m bisect fix upstream OK (0) job log log
2023/12/02 21:43 1h56m bisect fix upstream OK (0) job log log
2023/10/31 11:52 2h51m bisect fix upstream OK (0) job log log
2023/09/30 02:52 1h58m bisect fix upstream OK (0) job log log
2023/07/02 14:11 30m bisect fix upstream OK (0) job log log
2023/05/29 19:17 30m bisect fix upstream OK (0) job log log
2023/04/09 02:05 30m bisect fix upstream OK (0) job log log
2023/03/10 01:34 30m bisect fix upstream OK (0) job log log
2023/02/08 00:33 32m bisect fix upstream OK (0) job log log
2022/07/16 15:39 24m bisect fix upstream OK (0) job log log
2022/06/09 08:34 29m bisect fix upstream OK (0) job log log
2022/05/09 23:26 23m bisect fix upstream OK (0) job log log

Sample crash report:
INFO: task syz-executor301:5181 blocked for more than 143 seconds.
      Not tainted 6.7.0-syzkaller-01193-g6c1dd1fe5d8a #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor301 state:D stack:28144 pid:5181  tgid:5180  ppid:5096   flags:0x00000006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5399 [inline]
 __schedule+0xf12/0x5c00 kernel/sched/core.c:6726
 __schedule_loop kernel/sched/core.c:6801 [inline]
 schedule+0xe9/0x270 kernel/sched/core.c:6816
 blk_mq_freeze_queue_wait+0x13f/0x190 block/blk-mq.c:140
 nbd_add_socket+0x18c/0x980 drivers/block/nbd.c:1150
 __nbd_ioctl drivers/block/nbd.c:1494 [inline]
 nbd_ioctl+0x8b9/0xd60 drivers/block/nbd.c:1551
 blkdev_ioctl+0x2f3/0x760 block/ioctl.c:633
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:871 [inline]
 __se_sys_ioctl fs/ioctl.c:857 [inline]
 __x64_sys_ioctl+0x18f/0x210 fs/ioctl.c:857
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xd3/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7fee59f2d4b9
RSP: 002b:00007fee59eeb228 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fee59fb4328 RCX: 00007fee59f2d4b9
RDX: 0000000000000004 RSI: 000000000000ab00 RDI: 0000000000000003
RBP: 00007fee59fb4320 R08: 00007fee59eeb6c0 R09: 00007fee59eeb6c0
R10: 00007fee59eeb6c0 R11: 0000000000000246 R12: 00007fee59fb432c
R13: 00007fee59f811a4 R14: 64626e2f7665642f R15: 00007ffd23ff3e88
 </TASK>
INFO: task syz-executor301:5182 blocked for more than 143 seconds.
      Not tainted 6.7.0-syzkaller-01193-g6c1dd1fe5d8a #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor301 state:D stack:30200 pid:5182  tgid:5180  ppid:5096   flags:0x00000006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5399 [inline]
 __schedule+0xf12/0x5c00 kernel/sched/core.c:6726
 __schedule_loop kernel/sched/core.c:6801 [inline]
 schedule+0xe9/0x270 kernel/sched/core.c:6816
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6873
 __mutex_lock_common kernel/locking/mutex.c:684 [inline]
 __mutex_lock+0x5b9/0x9d0 kernel/locking/mutex.c:752
 nbd_ioctl+0x151/0xd60 drivers/block/nbd.c:1544
 blkdev_ioctl+0x2f3/0x760 block/ioctl.c:633
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:871 [inline]
 __se_sys_ioctl fs/ioctl.c:857 [inline]
 __x64_sys_ioctl+0x18f/0x210 fs/ioctl.c:857
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xd3/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7fee59f2d4b9
RSP: 002b:00007fee59eca228 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fee59fb4338 RCX: 00007fee59f2d4b9
RDX: 0000000000000000 RSI: 000000000000ab03 RDI: 0000000000000003
RBP: 00007fee59fb4330 R08: 00007ffd23ff3e87 R09: 00007fee59eca6c0
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fee59fb433c
R13: 00007fee59f811a4 R14: 64626e2f7665642f R15: 00007ffd23ff3e88
 </TASK>
INFO: task syz-executor301:5183 blocked for more than 143 seconds.
      Not tainted 6.7.0-syzkaller-01193-g6c1dd1fe5d8a #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor301 state:D stack:29136 pid:5183  tgid:5180  ppid:5096   flags:0x00000006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5399 [inline]
 __schedule+0xf12/0x5c00 kernel/sched/core.c:6726
 __schedule_loop kernel/sched/core.c:6801 [inline]
 schedule+0xe9/0x270 kernel/sched/core.c:6816
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6873
 __mutex_lock_common kernel/locking/mutex.c:684 [inline]
 __mutex_lock+0x5b9/0x9d0 kernel/locking/mutex.c:752
 nbd_ioctl+0x151/0xd60 drivers/block/nbd.c:1544
 blkdev_ioctl+0x2f3/0x760 block/ioctl.c:633
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:871 [inline]
 __se_sys_ioctl fs/ioctl.c:857 [inline]
 __x64_sys_ioctl+0x18f/0x210 fs/ioctl.c:857
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xd3/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7fee59f2d4b9
RSP: 002b:00007fee59ea9228 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fee59fb4348 RCX: 00007fee59f2d4b9
RDX: 0000000000000001 RSI: 000000000000ab07 RDI: 0000000000000003
RBP: 00007fee59fb4340 R08: 00007ffd23ff3e87 R09: 00007fee59ea96c0
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fee59fb434c
R13: 00007fee59f811a4 R14: 64626e2f7665642f R15: 00007ffd23ff3e88
 </TASK>
INFO: lockdep is turned off.
NMI backtrace for cpu 0
CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.7.0-syzkaller-01193-g6c1dd1fe5d8a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x277/0x390 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x299/0x300 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+0xf87/0x1210 kernel/hung_task.c:379
 kthread+0x2c6/0x3a0 kernel/kthread.c:388
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 58 Comm: kworker/u4:4 Not tainted 6.7.0-syzkaller-01193-g6c1dd1fe5d8a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
Workqueue: events_unbound toggle_allocation_gate
RIP: 0010:mmu_notifier_arch_invalidate_secondary_tlbs include/linux/mmu_notifier.h:496 [inline]
RIP: 0010:flush_tlb_mm_range+0x1c0/0x320 arch/x86/mm/tlb.c:1040
Code: 48 8d bb f0 07 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 2d 01 00 00 48 83 bb f0 07 00 00 00 <0f> 85 e9 00 00 00 48 83 c4 08 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48
RSP: 0018:ffffc90001597968 EFLAGS: 00000046
RAX: dffffc0000000000 RBX: ffff888013078000 RCX: 0000000000000000
RDX: 1ffff1100260f0fe RSI: 1ffffffff1e7333c RDI: ffff8880130787f0
RBP: 00002aaaaaaac000 R08: 0000000000000000 R09: 0000000000008e6a
R10: ffff888013078627 R11: 0000000000000000 R12: 00002aaaaaaab000
R13: ffff8880b993c400 R14: ffff8880130788c0 R15: 0000000000000001
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055c048916680 CR3: 000000000cf79000 CR4: 0000000000350ef0
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 __text_poke+0x5bd/0xca0 arch/x86/kernel/alternative.c:1878
 text_poke_bp_batch+0x1cd/0x750 arch/x86/kernel/alternative.c:2223
 text_poke_flush arch/x86/kernel/alternative.c:2417 [inline]
 text_poke_flush arch/x86/kernel/alternative.c:2414 [inline]
 text_poke_finish+0x30/0x40 arch/x86/kernel/alternative.c:2424
 arch_jump_label_transform_apply+0x1c/0x30 arch/x86/kernel/jump_label.c:146
 jump_label_update+0x1d7/0x400 kernel/jump_label.c:829
 static_key_disable_cpuslocked+0x154/0x1c0 kernel/jump_label.c:235
 static_key_disable+0x1a/0x20 kernel/jump_label.c:243
 toggle_allocation_gate mm/kfence/core.c:831 [inline]
 toggle_allocation_gate+0x13f/0x250 mm/kfence/core.c:818
 process_one_work+0x886/0x15d0 kernel/workqueue.c:2633
 process_scheduled_works kernel/workqueue.c:2706 [inline]
 worker_thread+0x8b9/0x1290 kernel/workqueue.c:2787
 kthread+0x2c6/0x3a0 kernel/kthread.c:388
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242
 </TASK>

Crashes (36):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/10 10:42 upstream 6c1dd1fe5d8a b438bd66 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in nbd_add_socket
2023/01/09 00:33 upstream 9b43a525db12 1dac8c7a .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in nbd_add_socket
2023/01/08 08:32 upstream 0a71553536d2 1dac8c7a .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in nbd_add_socket
2022/12/02 23:01 upstream a4412fdd49dc e080de16 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in nbd_add_socket
2022/10/03 05:10 upstream a962b54e162c feb56351 .config console log report syz C [disk image] [vmlinux] ci-upstream-kasan-gce-smack-root INFO: task hung in nbd_add_socket
2022/10/02 08:18 upstream b357fd1c2afc feb56351 .config console log report syz C [disk image] [vmlinux] ci-upstream-kasan-gce-smack-root INFO: task hung in nbd_add_socket
2022/09/19 18:23 upstream 521a547ced64 dd9a85ff .config console log report syz C ci-upstream-kasan-gce-selinux-root INFO: task hung in nbd_add_socket
2022/09/18 13:57 upstream a335366bad13 dd9a85ff .config console log report syz C ci-upstream-kasan-gce-selinux-root INFO: task hung in nbd_add_socket
2022/09/18 06:19 upstream a335366bad13 dd9a85ff .config console log report syz C ci-upstream-kasan-gce-selinux-root INFO: task hung in nbd_add_socket
2022/09/08 08:26 upstream 0066f1b0e275 435aeef7 .config console log report syz C ci-upstream-kasan-gce-root INFO: task hung in nbd_add_socket
2022/09/05 06:24 upstream 7726d4c3e60b 28811d0a .config console log report syz C [disk image] [vmlinux] ci-upstream-kasan-gce-selinux-root INFO: task hung in nbd_add_socket
2022/09/02 12:23 upstream 42e66b1cc3a0 a805568e .config console log report syz C ci-upstream-kasan-gce-smack-root INFO: task hung in nbd_add_socket
2022/08/23 20:10 upstream 072e51356cd5 cea8b0f7 .config console log report syz C ci-upstream-kasan-gce-smack-root INFO: task hung in nbd_add_socket
2022/08/13 15:16 upstream 7ebfc85e2cd7 8dfcaa3d .config console log report syz C ci-upstream-kasan-gce-root INFO: task hung in nbd_add_socket
2022/09/12 01:36 linux-next e47eb90a0a9a 356d8217 .config console log report syz C ci-upstream-linux-next-kasan-gce-root INFO: task hung in nbd_add_socket
2022/08/21 10:43 linux-next 8755ae45a9e8 26a13b38 .config console log report syz C ci-upstream-linux-next-kasan-gce-root INFO: task hung in nbd_add_socket
2022/08/14 02:56 linux-next 6c8f479764eb 8dfcaa3d .config console log report syz C ci-upstream-linux-next-kasan-gce-root INFO: task hung in nbd_add_socket
2022/08/12 18:00 linux-next 6c8f479764eb 402cd70d .config console log report syz C ci-upstream-linux-next-kasan-gce-root INFO: task hung in nbd_add_socket
2022/08/11 08:45 linux-next 6c8f479764eb a6201f11 .config console log report syz C ci-upstream-linux-next-kasan-gce-root INFO: task hung in nbd_add_socket
2022/06/16 14:03 linux-next 6012273897fe 1719ee24 .config console log report syz C ci-upstream-linux-next-kasan-gce-root INFO: task hung in nbd_add_socket
2022/08/06 10:01 upstream 200e340f2196 e853abd9 .config strace log report syz C ci-upstream-kasan-gce-smack-root INFO: task hung in nbd_add_socket
2022/04/07 05:35 upstream 3e732ebf7316 97582466 .config console log report syz C ci-upstream-kasan-gce-smack-root INFO: task hung in nbd_add_socket
2022/04/07 05:23 upstream 3e732ebf7316 97582466 .config console log report syz C ci-upstream-kasan-gce-selinux-root INFO: task hung in nbd_add_socket
2022/08/15 00:44 linux-next 6c8f479764eb 8dfcaa3d .config console log report syz C ci-upstream-linux-next-kasan-gce-root INFO: task hung in nbd_add_socket
2022/03/17 15:46 upstream 56e337f2cf13 dfa9a8ed .config console log report syz ci-upstream-kasan-gce-root INFO: task hung in nbd_add_socket
2024/05/13 06:03 upstream ba16c1cf11c9 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in nbd_add_socket
2022/09/18 04:17 upstream a335366bad13 dd9a85ff .config console log report syz C ci-upstream-kasan-gce-selinux-root INFO: task hung in nbd_add_socket
2022/08/20 08:36 upstream 4c2d0b039c5c 26a13b38 .config console log report syz C ci-upstream-kasan-gce-smack-root INFO: task hung in nbd_add_socket
2023/04/29 19:16 upstream 89d77f71f493 62df2017 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in nbd_add_socket
2022/10/22 06:43 upstream 4da34b7d175d c0b80a55 .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-smack-root INFO: task hung in nbd_add_socket
2022/04/07 02:49 upstream 3e732ebf7316 97582466 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in nbd_add_socket
2022/04/07 02:49 upstream 3e732ebf7316 97582466 .config console log report info ci-upstream-kasan-gce-selinux-root INFO: task hung in nbd_add_socket
2022/04/07 02:45 upstream 3e732ebf7316 97582466 .config console log report info ci-upstream-kasan-gce-root INFO: task hung in nbd_add_socket
2022/03/17 13:28 upstream 56e337f2cf13 dfa9a8ed .config console log report info ci-upstream-kasan-gce-root INFO: task hung in nbd_add_socket
2023/07/22 17:47 linux-next ae867bc97b71 27cbe77f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in nbd_add_socket
2022/10/31 18:33 linux-next 4d48f589d294 2a71366b .config console log report info [disk image] [vmlinux] ci-upstream-linux-next-kasan-gce-root INFO: task hung in nbd_add_socket
* Struck through repros no longer work on HEAD.