syzbot


INFO: task hung in blkdev_get_by_dev (5)

Status: upstream: reported C repro on 2023/03/02 18:11
Subsystems: block
[Documentation on labels]
Reported-by: syzbot+6229476844294775319e@syzkaller.appspotmail.com
First crash: 517d, last: 76d
Cause bisection: failed (error log, bisect log)
  
Discussions (8)
Title Replies (including bot) Last reply
[syzbot] Monthly block report (Feb 2024) 0 (1) 2024/02/09 20:57
[syzbot] Monthly block report (Oct 2023) 0 (1) 2023/10/09 09:23
[syzbot] Monthly block report (Sep 2023) 0 (1) 2023/09/07 09:25
[syzbot] Monthly block report (Aug 2023) 0 (1) 2023/08/07 07:28
[syzbot] Monthly block report (Jul 2023) 0 (1) 2023/07/06 14:17
[syzbot] Monthly block report 0 (1) 2023/04/03 16:00
[PATCH] nbd: Fix hang when connection reset by peer 1 (1) 2023/03/07 15:15
[syzbot] [block?] INFO: task hung in blkdev_get_by_dev (5) 0 (1) 2023/03/02 18:11
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 INFO: task hung in blkdev_get_by_dev origin:lts-only C 8 1d02h 119d 0/3 upstream: reported C repro on 2024/01/29 00:39
linux-5.15 INFO: task hung in blkdev_get_by_dev (2) 1 260d 260d 0/3 auto-obsoleted due to no activity on 2023/12/18 22:46
upstream INFO: task hung in blkdev_get_by_dev (3) block 1 810d 810d 0/26 auto-closed as invalid on 2022/05/08 09:47
linux-5.15 INFO: task hung in blkdev_get_by_dev 1 392d 392d 0/3 auto-obsoleted due to no activity on 2023/08/23 09:06
linux-5.15 INFO: task hung in blkdev_get_by_dev (3) 8 4d02h 116d 0/3 upstream: reported on 2024/02/01 00:39
upstream INFO: task hung in blkdev_get_by_dev fs 1 1189d 1189d 0/26 auto-closed as invalid on 2021/05/23 22:12
upstream INFO: task hung in blkdev_get_by_dev (4) block 1 639d 639d 0/26 auto-obsoleted due to no activity on 2022/11/25 11:03
upstream INFO: task hung in blkdev_get_by_dev (2) block 1727 842d 921d 0/26 closed as dup on 2021/11/21 14:02
Last patch testing requests (6)
Created Duration User Patch Repo Result
2024/05/21 23:23 33m retest repro upstream report log
2024/04/01 13:35 23m retest repro upstream error OK
2024/01/14 22:17 19m retest repro upstream report log
2023/11/05 10:31 24m retest repro upstream report log
2023/09/13 19:43 16m retest repro upstream report log
2023/08/27 09:29 23m retest repro upstream report log
Fix bisection attempts (5)
Created Duration User Patch Repo Result
2024/03/12 08:55 3h27m bisect fix upstream job log (0) log
2024/01/15 11:17 1h52m bisect fix upstream job log (0) log
2023/12/13 05:38 2h11m bisect fix upstream job log (0) log
2023/11/06 10:52 1h57m bisect fix upstream job log (0) log
2023/06/09 16:32 32m bisect fix upstream job log (0) log

Sample crash report:
INFO: task syz-executor421:5016 blocked for more than 143 seconds.
      Not tainted 6.5.0-syzkaller-00453-g727dbda16b83 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor421 state:D stack:27424 pid:5016  ppid:5012   flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5380 [inline]
 __schedule+0xee1/0x59f0 kernel/sched/core.c:6709
 schedule+0xe7/0x1b0 kernel/sched/core.c:6785
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6844
 __mutex_lock_common kernel/locking/mutex.c:679 [inline]
 __mutex_lock+0x967/0x1340 kernel/locking/mutex.c:747
 blkdev_get_by_dev.part.0+0x4f0/0xb20 block/bdev.c:786
 blkdev_get_by_dev+0x75/0x80 block/bdev.c:829
 disk_scan_partitions+0x1e9/0x320 block/genhd.c:369
 blkdev_common_ioctl+0x616/0x1ce0 block/ioctl.c:553
 blkdev_ioctl+0x249/0x770 block/ioctl.c:622
 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:50 [inline]
 do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fa91c4a77b9
RSP: 002b:00007fa91c465228 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fa91c52f3e8 RCX: 00007fa91c4a77b9
RDX: 0000000000000000 RSI: 000000000000125f RDI: 0000000000000003
RBP: 00007fa91c52f3e0 R08: 00007fa91c4656c0 R09: 00007fa91c4656c0
R10: 00007fa91c4656c0 R11: 0000000000000246 R12: 00007fa91c52f3ec
R13: 00007fa91c4fc1a4 R14: 64626e2f7665642f R15: 00007ffe57388968
 </TASK>
INFO: task syz-executor421:5017 blocked for more than 143 seconds.
      Not tainted 6.5.0-syzkaller-00453-g727dbda16b83 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor421 state:D stack:28640 pid:5017  ppid:5012   flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5380 [inline]
 __schedule+0xee1/0x59f0 kernel/sched/core.c:6709
 schedule+0xe7/0x1b0 kernel/sched/core.c:6785
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6844
 __mutex_lock_common kernel/locking/mutex.c:679 [inline]
 __mutex_lock+0x967/0x1340 kernel/locking/mutex.c:747
 blkdev_put+0xb0/0x8e0 block/bdev.c:884
 blkdev_release+0x82/0xa0 block/fops.c:533
 __fput+0x3f7/0xa70 fs/file_table.c:384
 task_work_run+0x14d/0x240 kernel/task_work.c:179
 ptrace_notify+0x10c/0x130 kernel/signal.c:2376
 ptrace_report_syscall include/linux/ptrace.h:411 [inline]
 ptrace_report_syscall_exit include/linux/ptrace.h:473 [inline]
 syscall_exit_work kernel/entry/common.c:252 [inline]
 syscall_exit_to_user_mode_prepare+0x120/0x220 kernel/entry/common.c:279
 __syscall_exit_to_user_mode_work kernel/entry/common.c:284 [inline]
 syscall_exit_to_user_mode+0xd/0x60 kernel/entry/common.c:297
 do_syscall_64+0x44/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fa91c4a77b9
RSP: 002b:00007fa91c444228 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: 0000000000000000 RBX: 00007fa91c52f3f8 RCX: 00007fa91c4a77b9
RDX: 0000000000000000 RSI: 000000000000ab03 RDI: 0000000000000006
RBP: 00007fa91c52f3f0 R08: 00007ffe57388967 R09: 00007fa91c4446c0
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fa91c52f3fc
R13: 00007fa91c4fc1a4 R14: 64626e2f7665642f R15: 00007ffe57388968
 </TASK>

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/12:
 #0: ffffffff8c9a35b0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x2c/0xe20 kernel/rcu/tasks.h:522
1 lock held by rcu_tasks_trace/13:
 #0: ffffffff8c9a32b0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x2c/0xe20 kernel/rcu/tasks.h:522
1 lock held by khungtaskd/27:
 #0: ffffffff8c9a41c0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x340 kernel/locking/lockdep.c:6615
1 lock held by klogd/4456:
 #0: ffff8880b983c418 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x29/0x130 kernel/sched/core.c:558
2 locks held by getty/4764:
 #0: ffff88814bbb1098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243
 #1: ffffc900020382f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xfcb/0x1480 drivers/tty/n_tty.c:2187
1 lock held by udevd/5013:
 #0: ffff88814139c4c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x4f0/0xb20 block/bdev.c:786
1 lock held by syz-executor421/5016:
 #0: ffff88814139c4c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x4f0/0xb20 block/bdev.c:786
1 lock held by syz-executor421/5017:
 #0: ffff88814139c4c8 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_put+0xb0/0x8e0 block/bdev.c:884

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

NMI backtrace for cpu 1
CPU: 1 PID: 27 Comm: khungtaskd Not tainted 6.5.0-syzkaller-00453-g727dbda16b83 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/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/0x380 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x2ac/0x310 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+0xf29/0x11b0 kernel/hung_task.c:379
 kthread+0x33a/0x430 kernel/kthread.c:389
 ret_from_fork+0x2c/0x70 arch/x86/kernel/process.c:145
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 41 Comm: kworker/u4:3 Not tainted 6.5.0-syzkaller-00453-g727dbda16b83 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
Workqueue: events_unbound toggle_allocation_gate
RIP: 0010:pte_offset_kernel include/linux/pgtable.h:92 [inline]
RIP: 0010:__pte_map include/linux/pgtable.h:107 [inline]
RIP: 0010:__pte_offset_map+0x16c/0x3c0 mm/pgtable-generic.c:251
Code: ca be bb ff 49 83 fc 43 0f 85 50 01 00 00 e8 2b c3 bb ff 48 c1 eb 09 49 21 ef 48 b8 00 00 00 00 80 88 ff ff 81 e3 f8 0f 00 00 <48> 01 c3 49 01 df e8 09 c3 bb ff 4c 89 f8 48 83 c4 08 5b 5d 41 5c
RSP: 0018:ffffc90000d2f8a0 EFLAGS: 00000202
RAX: ffff888000000000 RBX: 0000000000000558 RCX: 0000000000000000
RDX: ffff888014af4140 RSI: ffffffff81c96255 RDI: 0000000000000007
RBP: 0000000012868067 R08: 0000000000000007 R09: 0000000000000043
R10: 0000000000000043 R11: 0000000000000000 R12: 0000000000000043
R13: ffff888012866aa8 R14: 0000000000000000 R15: 0000000012868000
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000558781a45600 CR3: 000000000c776000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 __pte_offset_map_lock+0x8e/0x250 mm/pgtable-generic.c:276
 pte_offset_map_lock include/linux/mm.h:2862 [inline]
 __get_locked_pte+0x75/0xc0 mm/memory.c:1817
 get_locked_pte include/linux/mm.h:2642 [inline]
 __text_poke+0x1be/0x8a0 arch/x86/kernel/alternative.c:1811
 text_poke arch/x86/kernel/alternative.c:1896 [inline]
 text_poke_bp_batch+0x507/0x780 arch/x86/kernel/alternative.c:2285
 text_poke_flush arch/x86/kernel/alternative.c:2398 [inline]
 text_poke_flush arch/x86/kernel/alternative.c:2395 [inline]
 text_poke_finish+0x1a/0x30 arch/x86/kernel/alternative.c:2405
 arch_jump_label_transform_apply+0x17/0x30 arch/x86/kernel/jump_label.c:146
 jump_label_update+0x32e/0x410 kernel/jump_label.c:829
 static_key_disable_cpuslocked+0x154/0x1b0 kernel/jump_label.c:235
 static_key_disable+0x1a/0x20 kernel/jump_label.c:243
 toggle_allocation_gate mm/kfence/core.c:836 [inline]
 toggle_allocation_gate+0x13f/0x250 mm/kfence/core.c:823
 process_one_work+0xaa2/0x16f0 kernel/workqueue.c:2600
 worker_thread+0x687/0x1110 kernel/workqueue.c:2751
 kthread+0x33a/0x430 kernel/kthread.c:389
 ret_from_fork+0x2c/0x70 arch/x86/kernel/process.c:145
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304
 </TASK>
INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 1.308 msecs

Crashes (32):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/29 10:11 upstream 727dbda16b83 7ba13a15 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in blkdev_get_by_dev
2023/03/02 17:45 upstream ee3f96b16468 f8902b57 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in blkdev_get_by_dev
2023/10/07 02:30 upstream b78b18fb8ee1 ea12a918 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in blkdev_get_by_dev
2023/09/23 01:50 upstream dc912ba91b7e 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in blkdev_get_by_dev
2023/09/20 00:08 upstream 2cf0f7156238 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in blkdev_get_by_dev
2023/09/13 22:52 upstream 3669558bdf35 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in blkdev_get_by_dev
2023/08/04 03:17 upstream 7bafbd4027ae 74621247 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in blkdev_get_by_dev
2023/06/22 15:40 upstream dad9774deaf1 09ffe269 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in blkdev_get_by_dev
2023/04/04 17:32 upstream 148341f0a2f5 928dd177 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in blkdev_get_by_dev
2023/03/13 04:34 upstream 134231664868 5205ef30 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in blkdev_get_by_dev
2023/01/08 11:44 upstream 9b43a525db12 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in blkdev_get_by_dev
2022/12/31 14:51 upstream c8451c141e07 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in blkdev_get_by_dev
2023/11/12 21:57 linux-next e27090b1413f 6d6dbf8a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in blkdev_get_by_dev
2024/01/28 14:23 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 0802e17d9aca cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in blkdev_get_by_dev
2023/09/29 10:25 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bf6547d8715b d265efd8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in blkdev_get_by_dev
2023/06/25 03:04 linux-next 8d2be868b42c 09ffe269 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in blkdev_get_by_dev
2023/01/02 00:41 linux-next c76083fac3ba ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in blkdev_get_by_dev
2022/12/26 23:53 linux-next c76083fac3ba 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in blkdev_get_by_dev
2023/07/26 13:11 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci e40939bbfc68 6756545c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in blkdev_get_by_dev
2023/07/08 03:38 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci e40939bbfc68 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in blkdev_get_by_dev
2023/05/10 15:46 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 14f8db1c0f9a 0fbd49f4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in blkdev_get_by_dev
2023/04/12 10:22 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 7920df21c1b7 1a1596b6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in blkdev_get_by_dev
2023/04/07 22:03 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 9a03cbd79d3a f7ba566d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in blkdev_get_by_dev
2023/04/05 16:23 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 59caa87f9dfb 8b834965 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in blkdev_get_by_dev
2023/03/21 01:05 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in blkdev_get_by_dev
2023/03/17 07:24 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 18b58603 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in blkdev_get_by_dev
2023/03/04 13:27 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 596b6b709632 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in blkdev_get_by_dev
2023/02/24 17:37 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2ebd1fbb946d ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in blkdev_get_by_dev
2023/02/20 03:29 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 bcdf85f8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in blkdev_get_by_dev
2023/02/05 01:44 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ca72d58361ee be607b78 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in blkdev_get_by_dev
2023/01/01 13:02 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in blkdev_get_by_dev
2022/12/29 23:35 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in blkdev_get_by_dev
* Struck through repros no longer work on HEAD.