syzbot


INFO: task hung in nbd_ioctl

Status: upstream: reported C repro on 2019/10/12 13:11
Reported-by: syzbot+15643e4cfffac60a87ed@syzkaller.appspotmail.com
First crash: 1682d, last: 468d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 INFO: task hung in nbd_ioctl C done 18 1607d 1681d 1/1 fixed on 2019/12/28 10:32
linux-4.14 INFO: task hung in nbd_ioctl (2) C done 16 1354d 1599d 1/1 fixed on 2020/10/21 11:01
upstream INFO: task hung in nbd_ioctl (2) nbd 37 1361d 1414d 15/26 fixed on 2020/09/25 01:17
upstream INFO: task hung in nbd_ioctl nbd C done 71 1658d 1694d 13/26 fixed on 2019/11/06 12:39
linux-5.15 INFO: task hung in nbd_ioctl origin:upstream C error 11 25d 330d 0/3 upstream: reported C repro on 2023/06/26 06:58
linux-6.1 INFO: task hung in nbd_ioctl origin:upstream C 7 27d 393d 0/3 upstream: reported C repro on 2023/04/23 23:29
upstream INFO: task hung in nbd_ioctl (3) nbd C done unreliable 121 9d23h 1331d 0/26 upstream: reported C repro on 2020/09/28 07:17
linux-4.14 INFO: task hung in nbd_ioctl (3) C inconclusive 12 733d 1285d 0/1 upstream: reported C repro on 2020/11/13 07:37
upstream INFO: task can't die in nbd_ioctl nbd C done 7 37d 1324d 0/26 upstream: reported C repro on 2020/10/05 07:20
Fix bisection attempts (9)
Created Duration User Patch Repo Result
2021/10/30 10:09 11m bisect fix linux-4.19.y error job log (0)
2021/08/05 13:06 33m bisect fix linux-4.19.y job log (0) log
2021/05/10 00:02 31m bisect fix linux-4.19.y job log (0) log
2021/01/19 01:14 31m bisect fix linux-4.19.y job log (0) log
2020/12/20 00:41 32m bisect fix linux-4.19.y job log (0) log
2020/11/20 00:11 30m bisect fix linux-4.19.y job log (0) log
2020/10/20 23:39 31m bisect fix linux-4.19.y job log (0) log
2020/08/26 12:36 33m bisect fix linux-4.19.y job log (0) log
2020/05/02 02:28 31m bisect fix linux-4.19.y job log (0) log

Sample crash report:
block nbd0: shutting down sockets
INFO: task syz-executor692:8116 blocked for more than 140 seconds.
      Not tainted 4.19.211-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor692 D28168  8116   8115 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:2828 [inline]
 __schedule+0x887/0x2040 kernel/sched/core.c:3517
 schedule+0x8d/0x1b0 kernel/sched/core.c:3561
 schedule_timeout+0x92d/0xfe0 kernel/time/timer.c:1794
 do_wait_for_common kernel/sched/completion.c:83 [inline]
 __wait_for_common kernel/sched/completion.c:104 [inline]
 wait_for_common+0x29c/0x470 kernel/sched/completion.c:115
 flush_workqueue+0x40b/0x13e0 kernel/workqueue.c:2713
 nbd_start_device_ioctl drivers/block/nbd.c:1276 [inline]
 __nbd_ioctl drivers/block/nbd.c:1347 [inline]
 nbd_ioctl+0x75b/0xbe0 drivers/block/nbd.c:1387
 __blkdev_driver_ioctl block/ioctl.c:303 [inline]
 blkdev_ioctl+0x5cb/0x1a80 block/ioctl.c:601
 block_ioctl+0xe9/0x130 fs/block_dev.c:1906
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:501 [inline]
 do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688
 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705
 __do_sys_ioctl fs/ioctl.c:712 [inline]
 __se_sys_ioctl fs/ioctl.c:710 [inline]
 __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f8865c7b389
Code: Bad RIP value.
RSP: 002b:00007fffb5006838 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f8865c7b389
RDX: 0000000000000000 RSI: 000000000000ab03 RDI: 0000000000000003
RBP: 0000000000000000 R08: 00007fffb50069d8 R09: 00007fffb50069d8
R10: 00007fffb50069d8 R11: 0000000000000246 R12: 00007f8865c3a6a0
R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000

Showing all locks held in the system:
1 lock held by khungtaskd/1570:
 #0: 0000000048e3d761 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441
3 locks held by kworker/u5:0/1716:
 #0: 00000000388dd25f ((wq_completion)"knbd%d-recv"nbd->index){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124
 #1: 0000000014e7b801 ((work_completion)(&args->work)){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128
 #2: 000000000b0b5f35 (sk_lock-AF_AX25){+.+.}, at: lock_sock include/net/sock.h:1512 [inline]
 #2: 000000000b0b5f35 (sk_lock-AF_AX25){+.+.}, at: ax25_recvmsg+0xbb/0x810 net/ax25/af_ax25.c:1629

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

NMI backtrace for cpu 1
CPU: 1 PID: 1570 Comm: khungtaskd Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 nmi_cpu_backtrace.cold+0x63/0xa2 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x1a6/0x1f0 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline]
 watchdog+0x991/0xe60 kernel/hung_task.c:287
 kthread+0x33f/0x460 kernel/kthread.c:259
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 4689 Comm: systemd-journal Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:pid_nr_ns kernel/pid.c:407 [inline]
RIP: 0010:__task_pid_nr_ns+0x1cf/0x4c0 kernel/pid.c:431
Code: 24 04 8b ab 80 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 0f b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 <84> d2 0f 85 b5 02 00 00 45 8b 6c 24 04 89 ef 44 89 ee e8 ea 8f 23
RSP: 0018:ffff8880a1287ef8 EFLAGS: 00000202
RAX: 0000000000000007 RBX: ffffffff89f56fc0 RCX: ffffffff813ef5fc
RDX: 0000000000000000 RSI: ffffffff813ef60a RDI: ffff8880a1acae84
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000000 R12: ffff8880a1acae80
R13: ffff8880a18a81d8 R14: 0000000000000000 R15: 0000000000000000
FS:  00007fb6b437e8c0(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb6b174f008 CR3: 00000000a1532000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 task_tgid_vnr include/linux/sched.h:1305 [inline]
 __ia32_sys_getpid+0x1a/0x20 kernel/sys.c:890
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fb6b3616f17
Code: ff ff ff 48 8b 4d a0 0f b7 51 fe 48 8b 4d a8 66 89 54 08 fe e9 1a ff ff ff 66 2e 0f 1f 84 00 00 00 00 00 b8 27 00 00 00 0f 05 <c3> 0f 1f 84 00 00 00 00 00 b8 6e 00 00 00 0f 05 c3 0f 1f 84 00 00
RSP: 002b:00007ffdecaf94f8 EFLAGS: 00000202 ORIG_RAX: 0000000000000027
RAX: ffffffffffffffda RBX: 0000558184add1e0 RCX: 00007fb6b3616f17
RDX: 00000000ffffffff RSI: 00007ffdecaf9580 RDI: 0000558184add1e0
RBP: 0000000000001251 R08: 00007ffdecb25000 R09: 000000b8d4c2e652
R10: 0001c77d3f4014ad R11: 0000000000000202 R12: 00007ffdecaf9580
R13: 00007ffdecaf9578 R14: 0000558183f74958 R15: 0005efa0403c66b8

Crashes (79):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/12 12:02 linux-4.19.y 3f8a27f9e27b 67be1ae7 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in nbd_ioctl
2021/01/27 23:37 linux-4.19.y c4ff839de17f a57db36f .config console log report syz C ci2-linux-4-19 INFO: task hung in nbd_ioctl
2020/02/15 20:44 linux-4.19.y 9b15f7fae677 5d7b90f1 .config console log report syz C ci2-linux-4-19
2022/10/10 02:19 linux-4.19.y 3f8a27f9e27b aea5da89 .config console log report syz [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in nbd_ioctl
2020/09/20 23:38 linux-4.19.y 015e94d0e37b 9564d2e9 .config console log report syz ci2-linux-4-19
2023/02/07 10:18 linux-4.19.y 3f8a27f9e27b 5bc3be51 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in nbd_ioctl
2022/11/27 23:29 linux-4.19.y 3f8a27f9e27b f4470a7b .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in nbd_ioctl
2022/11/10 01:33 linux-4.19.y 3f8a27f9e27b bebca8b7 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in nbd_ioctl
2022/07/05 06:55 linux-4.19.y 3f8a27f9e27b bff65f44 .config console log report info ci2-linux-4-19 INFO: task hung in nbd_ioctl
2022/07/04 21:57 linux-4.19.y 3f8a27f9e27b bff65f44 .config console log report info ci2-linux-4-19 INFO: task hung in nbd_ioctl
2022/07/02 09:43 linux-4.19.y 3f8a27f9e27b 1434eec0 .config console log report info ci2-linux-4-19 INFO: task hung in nbd_ioctl
2022/06/27 16:33 linux-4.19.y 3f8a27f9e27b a371c43c .config console log report info ci2-linux-4-19 INFO: task hung in nbd_ioctl
2022/06/27 13:07 linux-4.19.y 3f8a27f9e27b a371c43c .config console log report info ci2-linux-4-19 INFO: task hung in nbd_ioctl
2022/06/27 00:25 linux-4.19.y 3f8a27f9e27b a371c43c .config console log report info ci2-linux-4-19 INFO: task hung in nbd_ioctl
2022/06/26 11:35 linux-4.19.y 3f8a27f9e27b a371c43c .config console log report info ci2-linux-4-19 INFO: task hung in nbd_ioctl
2022/06/05 00:59 linux-4.19.y 3f8a27f9e27b c8857892 .config console log report info ci2-linux-4-19 INFO: task hung in nbd_ioctl
2022/04/17 19:42 linux-4.19.y 3f8a27f9e27b 8bcc32a6 .config console log report info ci2-linux-4-19 INFO: task hung in nbd_ioctl
2022/04/17 03:46 linux-4.19.y 3f8a27f9e27b 8bcc32a6 .config console log report info ci2-linux-4-19 INFO: task hung in nbd_ioctl
2022/04/13 09:38 linux-4.19.y 3f8a27f9e27b faabdb86 .config console log report info ci2-linux-4-19 INFO: task hung in nbd_ioctl
2022/02/23 04:28 linux-4.19.y 3f8a27f9e27b 6e821dbf .config console log report info ci2-linux-4-19 INFO: task hung in nbd_ioctl
2022/02/19 16:27 linux-4.19.y 3f8a27f9e27b 3cd800e4 .config console log report info ci2-linux-4-19 INFO: task hung in nbd_ioctl
2022/01/31 19:26 linux-4.19.y 3f8a27f9e27b a491ad2d .config console log report info ci2-linux-4-19 INFO: task hung in nbd_ioctl
2022/01/18 07:35 linux-4.19.y 3f8a27f9e27b 731a2d23 .config console log report info ci2-linux-4-19 INFO: task hung in nbd_ioctl
2021/12/06 13:37 linux-4.19.y 3f8a27f9e27b 579a8754 .config console log report info ci2-linux-4-19 INFO: task hung in nbd_ioctl
2021/11/25 22:46 linux-4.19.y 3f8a27f9e27b 63eeac02 .config console log report info ci2-linux-4-19 INFO: task hung in nbd_ioctl
2021/11/23 09:38 linux-4.19.y 3f8a27f9e27b 545ab074 .config console log report info ci2-linux-4-19 INFO: task hung in nbd_ioctl
2021/09/29 00:09 linux-4.19.y c2276d585654 d82cb927 .config console log report info ci2-linux-4-19 INFO: task hung in nbd_ioctl
2021/09/25 06:26 linux-4.19.y 2950c9c5e0df 8cac236e .config console log report info ci2-linux-4-19 INFO: task hung in nbd_ioctl
2021/09/24 03:18 linux-4.19.y 2950c9c5e0df 8cac236e .config console log report info ci2-linux-4-19 INFO: task hung in nbd_ioctl
2021/08/25 20:24 linux-4.19.y 59456c9cc40c b599f2fc .config console log report info ci2-linux-4-19 INFO: task hung in nbd_ioctl
2021/07/06 12:44 linux-4.19.y 9f84340f012e 6c4484eb .config console log report info ci2-linux-4-19 INFO: task hung in nbd_ioctl
2021/07/05 00:09 linux-4.19.y 9f84340f012e 55aa55c2 .config console log report info ci2-linux-4-19 INFO: task hung in nbd_ioctl
2021/07/01 09:59 linux-4.19.y 9f84340f012e 658ebc66 .config console log report info ci2-linux-4-19 INFO: task hung in nbd_ioctl
2021/06/12 20:25 linux-4.19.y 9a2dc0e6c531 1ba81399 .config console log report info ci2-linux-4-19 INFO: task hung in nbd_ioctl
2021/05/28 13:22 linux-4.19.y 6b7b0056defc 858ea628 .config console log report info ci2-linux-4-19 INFO: task hung in nbd_ioctl
2021/05/27 09:42 linux-4.19.y 6b7b0056defc 858ea628 .config console log report info ci2-linux-4-19 INFO: task hung in nbd_ioctl
2021/05/19 02:29 linux-4.19.y 3c8c23092588 a343ba6b .config console log report info ci2-linux-4-19 INFO: task hung in nbd_ioctl
2021/05/15 18:55 linux-4.19.y 3c8c23092588 93f844de .config console log report info ci2-linux-4-19 INFO: task hung in nbd_ioctl
2021/04/10 00:02 linux-4.19.y b4454811f122 6a81331a .config console log report info ci2-linux-4-19 INFO: task hung in nbd_ioctl
2021/03/12 09:16 linux-4.19.y 030194a5b292 429d8a6b .config console log report info ci2-linux-4-19 INFO: task hung in nbd_ioctl
2021/02/28 09:03 linux-4.19.y 2d19be4653f5 4c37c133 .config console log report info ci2-linux-4-19 INFO: task hung in nbd_ioctl
2021/02/26 13:04 linux-4.19.y 2d19be4653f5 4c37c133 .config console log report info ci2-linux-4-19 INFO: task hung in nbd_ioctl
2021/02/18 01:20 linux-4.19.y 811218eceeaa 14052202 .config console log report info ci2-linux-4-19 INFO: task hung in nbd_ioctl
2020/09/08 08:11 linux-4.19.y c37da90efff5 abf9ba4f .config console log report ci2-linux-4-19
2020/09/07 19:43 linux-4.19.y c37da90efff5 abf9ba4f .config console log report ci2-linux-4-19
2020/07/27 12:36 linux-4.19.y 20b3a3dfdf6c cb93dc6a .config console log report ci2-linux-4-19
2020/07/03 08:23 linux-4.19.y 399849e4654e f30c14bf .config console log report ci2-linux-4-19
2020/06/27 08:23 linux-4.19.y a39e75458e1c ffec44b5 .config console log report ci2-linux-4-19
2020/06/03 16:03 linux-4.19.y 4707d8e57273 a5ce5de0 .config console log report ci2-linux-4-19
2020/05/11 16:36 linux-4.19.y 033c4ea49a4b f8f57555 .config console log report ci2-linux-4-19
2020/04/02 02:03 linux-4.19.y 54b4fa6d3955 a34e2c33 .config console log report ci2-linux-4-19
2020/04/01 03:52 linux-4.19.y 54b4fa6d3955 a34e2c33 .config console log report ci2-linux-4-19
2020/03/31 09:45 linux-4.19.y 54b4fa6d3955 c8d1cc20 .config console log report ci2-linux-4-19
2020/03/03 02:21 linux-4.19.y a083db76118d 4a4e0509 .config console log report ci2-linux-4-19
2020/03/03 00:07 linux-4.19.y a083db76118d 4a4e0509 .config console log report ci2-linux-4-19
2020/02/16 05:26 linux-4.19.y 9b15f7fae677 5d7b90f1 .config console log report ci2-linux-4-19
2020/02/15 18:34 linux-4.19.y 9b15f7fae677 5d7b90f1 .config console log report ci2-linux-4-19
2020/02/10 23:09 linux-4.19.y b499cf4b3a90 d9e55b05 .config console log report ci2-linux-4-19
2019/12/24 18:55 linux-4.19.y 672481c2deff be5c2c81 .config console log report ci2-linux-4-19
2019/12/17 09:57 linux-4.19.y 312017a460d5 d13d7958 .config console log report ci2-linux-4-19
2019/11/05 08:33 linux-4.19.y ef244c308885 76630fc9 .config console log report ci2-linux-4-19
2019/11/02 19:25 linux-4.19.y ef244c308885 997ccc67 .config console log report ci2-linux-4-19
2019/11/02 18:50 linux-4.19.y ef244c308885 997ccc67 .config console log report ci2-linux-4-19
2019/10/31 12:08 linux-4.19.y ef244c308885 a41ca8fa .config console log report ci2-linux-4-19
2019/10/30 17:57 linux-4.19.y ef244c308885 5ea87a66 .config console log report ci2-linux-4-19
2019/10/30 17:33 linux-4.19.y ef244c308885 5ea87a66 .config console log report ci2-linux-4-19
2019/10/30 11:26 linux-4.19.y ef244c308885 5ea87a66 .config console log report ci2-linux-4-19
2019/10/27 07:14 linux-4.19.y c3038e718a19 25bb509e .config console log report ci2-linux-4-19
2019/10/24 23:24 linux-4.19.y c3038e718a19 d01bb02a .config console log report ci2-linux-4-19
2019/10/22 08:10 linux-4.19.y c3038e718a19 c59a7cd8 .config console log report ci2-linux-4-19
2019/10/20 08:54 linux-4.19.y c3038e718a19 8c88c9c1 .config console log report ci2-linux-4-19
2019/10/20 03:01 linux-4.19.y c3038e718a19 8c88c9c1 .config console log report ci2-linux-4-19
2019/10/19 20:28 linux-4.19.y c3038e718a19 8c88c9c1 .config console log report ci2-linux-4-19
2019/10/19 09:58 linux-4.19.y c3038e718a19 8c88c9c1 .config console log report ci2-linux-4-19
2019/10/19 06:39 linux-4.19.y c3038e718a19 8c88c9c1 .config console log report ci2-linux-4-19
2019/10/18 02:55 linux-4.19.y c3038e718a19 8c88c9c1 .config console log report ci2-linux-4-19
2019/10/12 21:01 linux-4.19.y dafd634415a7 426631dd .config console log report ci2-linux-4-19
2019/10/12 17:24 linux-4.19.y dafd634415a7 426631dd .config console log report ci2-linux-4-19
2019/10/12 12:10 linux-4.19.y dafd634415a7 426631dd .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.