syzbot


INFO: task hung in blkdev_common_ioctl (2)

Status: upstream: reported C repro on 2024/05/05 13:20
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+ea8662f69d178a712dc0@syzkaller.appspotmail.com
First crash: 200d, last: 32d
Fix bisection: failed (error log, bisect log)
  
Bug presence (3)
Date Name Commit Repro Result
2024/08/08 linux-5.15.y (ToT) 7e89efd3ae1c C [report] INFO: task hung in blkdev_common_ioctl
2024/05/07 upstream (ToT) dccb07f2914c C [report] INFO: task hung in blkdev_common_ioctl
2024/08/08 upstream (ToT) 6a0e38264012 C Didn't crash
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 INFO: task hung in blkdev_common_ioctl 1 564d 564d 0/3 auto-obsoleted due to no activity on 2023/08/23 09:04
linux-6.1 INFO: task hung in blkdev_common_ioctl (2) 3 232d 316d 0/3 auto-obsoleted due to no activity on 2024/07/12 01:42
linux-6.1 INFO: task hung in blkdev_common_ioctl 3 569d 620d 0/3 auto-obsoleted due to no activity on 2023/08/23 09:07
upstream INFO: task can't die in blkdev_common_ioctl block C 382 31d 964d 0/28 closed as dup on 2022/04/02 11:26
Last patch testing requests (2)
Created Duration User Patch Repo Result
2024/10/20 03:13 14m retest repro linux-5.15.y report log
2024/10/06 02:14 15m retest repro linux-5.15.y report log

Sample crash report:
INFO: task syz-executor183:4005 blocked for more than 143 seconds.
      Not tainted 5.15.159-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor183 state:D stack:    0 pid: 4005 ppid:  3989 flags:0x00000005
Call trace:
 __switch_to+0x308/0x5e8 arch/arm64/kernel/process.c:518
 context_switch kernel/sched/core.c:5030 [inline]
 __schedule+0xf10/0x1e48 kernel/sched/core.c:6376
 schedule+0x11c/0x1c8 kernel/sched/core.c:6459
 rwsem_down_write_slowpath+0xd94/0x17e0 kernel/locking/rwsem.c:1165
 __down_write_common kernel/locking/rwsem.c:1292 [inline]
 __down_write kernel/locking/rwsem.c:1301 [inline]
 down_write+0xe8/0x12c kernel/locking/rwsem.c:1552
 filemap_invalidate_lock include/linux/fs.h:834 [inline]
 blk_ioctl_zeroout block/ioctl.c:183 [inline]
 blkdev_common_ioctl+0x1cbc/0x2764 block/ioctl.c:487
 blkdev_ioctl+0x350/0xbd0 block/ioctl.c:598
 block_ioctl+0xa8/0x114 block/fops.c:493
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl fs/ioctl.c:860 [inline]
 __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:860
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
INFO: task syz-executor183:4007 blocked for more than 143 seconds.
      Not tainted 5.15.159-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor183 state:D stack:    0 pid: 4007 ppid:  3993 flags:0x0000000d
Call trace:
 __switch_to+0x308/0x5e8 arch/arm64/kernel/process.c:518
 context_switch kernel/sched/core.c:5030 [inline]
 __schedule+0xf10/0x1e48 kernel/sched/core.c:6376
 schedule+0x11c/0x1c8 kernel/sched/core.c:6459
 rwsem_down_write_slowpath+0xd94/0x17e0 kernel/locking/rwsem.c:1165
 __down_write_common kernel/locking/rwsem.c:1292 [inline]
 __down_write kernel/locking/rwsem.c:1301 [inline]
 down_write+0xe8/0x12c kernel/locking/rwsem.c:1552
 filemap_invalidate_lock include/linux/fs.h:834 [inline]
 blk_ioctl_zeroout block/ioctl.c:183 [inline]
 blkdev_common_ioctl+0x1cbc/0x2764 block/ioctl.c:487
 blkdev_ioctl+0x350/0xbd0 block/ioctl.c:598
 block_ioctl+0xa8/0x114 block/fops.c:493
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl fs/ioctl.c:860 [inline]
 __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:860
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584

Showing all locks held in the system:
1 lock held by khungtaskd/27:
 #0: ffff800014b214a0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:311
1 lock held by klogd/3578:
2 locks held by getty/3726:
 #0: ffff0000d26ce098 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x40/0x50 drivers/tty/tty_ldsem.c:340
 #1: ffff80001a32e2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x414/0x1204 drivers/tty/n_tty.c:2158
2 locks held by syz-executor183/3995:
1 lock held by syz-executor183/4005:
 #0: ffff0000c04b7350 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:834 [inline]
 #0: ffff0000c04b7350 (mapping.invalidate_lock#2){++++}-{3:3}, at: blk_ioctl_zeroout block/ioctl.c:183 [inline]
 #0: ffff0000c04b7350 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_common_ioctl+0x1cbc/0x2764 block/ioctl.c:487
1 lock held by syz-executor183/4007:
 #0: ffff0000c04b7350 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:834 [inline]
 #0: ffff0000c04b7350 (mapping.invalidate_lock#2){++++}-{3:3}, at: blk_ioctl_zeroout block/ioctl.c:183 [inline]
 #0: ffff0000c04b7350 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_common_ioctl+0x1cbc/0x2764 block/ioctl.c:487
1 lock held by syz-executor183/4008:
 #0: ffff0000c04b7350 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:834 [inline]
 #0: ffff0000c04b7350 (mapping.invalidate_lock#2){++++}-{3:3}, at: blk_ioctl_zeroout block/ioctl.c:183 [inline]
 #0: ffff0000c04b7350 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_common_ioctl+0x1cbc/0x2764 block/ioctl.c:487
1 lock held by syz-executor183/4015:
 #0: ffff0000c04b7350 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:834 [inline]
 #0: ffff0000c04b7350 (mapping.invalidate_lock#2){++++}-{3:3}, at: blk_ioctl_zeroout block/ioctl.c:183 [inline]
 #0: ffff0000c04b7350 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_common_ioctl+0x1cbc/0x2764 block/ioctl.c:487

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


Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/20 09:17 linux-5.15.y 83655231580b c0f1611a .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in blkdev_common_ioctl
2024/05/05 13:20 linux-5.15.y 284087d4f7d5 610f2a54 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in blkdev_common_ioctl
* Struck through repros no longer work on HEAD.