syzbot


INFO: task hung in blkdev_ioctl

Status: auto-obsoleted due to no activity on 2023/02/05 20:33
Reported-by: syzbot+95f85a14c24d68f2fb54@syzkaller.appspotmail.com
First crash: 787d, last: 787d

Sample crash report:
wlan1: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge)
Bluetooth: hci8: command 0x040f tx timeout
Bluetooth: hci8: command 0x0419 tx timeout
ieee802154 phy0 wpan0: encryption failed: -22
ieee802154 phy1 wpan1: encryption failed: -22
INFO: task systemd-udevd:4704 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.
systemd-udevd   D25024  4704      1 0x00000104
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_preempt_disabled+0xf/0x20 kernel/sched/core.c:3619
 __mutex_lock_common kernel/locking/mutex.c:1016 [inline]
 __mutex_lock+0x5f0/0x1190 kernel/locking/mutex.c:1078
 blkdev_reread_part block/ioctl.c:192 [inline]
 blkdev_ioctl+0x7c9/0x1a80 block/ioctl.c:575
 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:0x7fc26c914017
Code: Bad RIP value.
RSP: 002b:00007ffcc6dfca38 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ffcc6dfcad0 RCX: 00007fc26c914017
RDX: 0000000000000000 RSI: 000000000000125f RDI: 000000000000000e
RBP: 00007ffcc6dfd000 R08: 0000000000000000 R09: 0000000000000010
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffcc6dfcbe0
R13: 000055a46704f010 R14: 000055a4670727a0 R15: 00007ffcc6dfcab0
INFO: task syz-executor.2:25056 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-executor.2  D28648 25056  22441 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_preempt_disabled+0xf/0x20 kernel/sched/core.c:3619
 __mutex_lock_common kernel/locking/mutex.c:1016 [inline]
 __mutex_lock+0x5f0/0x1190 kernel/locking/mutex.c:1078
 blkdev_put+0x30/0x520 fs/block_dev.c:1839
 blkdev_close+0x86/0xb0 fs/block_dev.c:1888
 __fput+0x2ce/0x890 fs/file_table.c:278
 task_work_run+0x148/0x1c0 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:193 [inline]
 exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167
 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
 do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f92f54a637b
Code: Bad RIP value.
RSP: 002b:00007ffcd4838300 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000005 RCX: 00007f92f54a637b
RDX: 0000001b2e420000 RSI: 0000001b2e42489c RDI: 0000000000000004
RBP: 00007f92f5617980 R08: 0000000000000000 R09: 000000003253460c
R10: 0006614a5a5cf5cc R11: 0000000000000293 R12: 00000000000f0c64
R13: 00007ffcd4838400 R14: 00007ffcd4838420 R15: 0000000000000032
INFO: task syz-executor.2:25070 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-executor.2  D30000 25070  22441 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
 __rwsem_down_read_failed_common kernel/locking/rwsem-xadd.c:292 [inline]
 rwsem_down_read_failed+0x20a/0x390 kernel/locking/rwsem-xadd.c:309
 call_rwsem_down_read_failed+0x14/0x30 arch/x86/lib/rwsem.S:94
 __down_read arch/x86/include/asm/rwsem.h:83 [inline]
 down_read+0x44/0x80 kernel/locking/rwsem.c:26
 __get_super.part.0+0x209/0x2e0 fs/super.c:698
 __get_super include/linux/spinlock.h:329 [inline]
 get_super+0x2b/0x50 fs/super.c:727
 fsync_bdev+0x14/0xc0 fs/block_dev.c:483
 blkdev_flushbuf block/ioctl.c:436 [inline]
 blkdev_ioctl+0x912/0x1a80 block/ioctl.c:521
 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:0x7f92f54f45a9
Code: Bad RIP value.
RSP: 002b:00007f92f3e47168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f92f5616050 RCX: 00007f92f54f45a9
RDX: 0000000000000000 RSI: 0000000000001261 RDI: 0000000000000003
RBP: 00007f92f554f580 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffcd483829f R14: 00007f92f3e47300 R15: 0000000000022000
INFO: task syz-executor.4:25064 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-executor.4  D28816 25064   8131 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
 __rwsem_down_read_failed_common kernel/locking/rwsem-xadd.c:292 [inline]
 rwsem_down_read_failed+0x20a/0x390 kernel/locking/rwsem-xadd.c:309
 call_rwsem_down_read_failed+0x14/0x30 arch/x86/lib/rwsem.S:94
 __down_read arch/x86/include/asm/rwsem.h:83 [inline]
 down_read+0x44/0x80 kernel/locking/rwsem.c:26
 __get_super.part.0+0x209/0x2e0 fs/super.c:698
 __get_super include/linux/spinlock.h:329 [inline]
 get_super+0x2b/0x50 fs/super.c:727
 fsync_bdev+0x14/0xc0 fs/block_dev.c:483
 invalidate_partition+0x74/0xb0 block/genhd.c:1592
 drop_partitions.isra.0+0x9c/0x190 block/partition-generic.c:454
 rescan_partitions+0xab/0x970 block/partition-generic.c:527
 __blkdev_reread_part+0x189/0x220 block/ioctl.c:173
 blkdev_reread_part+0x23/0x40 block/ioctl.c:193
 loop_reread_partitions drivers/block/loop.c:645 [inline]
 loop_set_status+0x103e/0x1800 drivers/block/loop.c:1330
 loop_set_status64+0xb2/0x110 drivers/block/loop.c:1450
 lo_ioctl+0x41f/0x20e0 drivers/block/loop.c:1593
 __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:0x7f127a29d367
Code: Bad RIP value.
RSP: 002b:00007f1278c10ed8 EFLAGS: 00000202 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f1278c10f20 RCX: 00007f127a29d367
RDX: 00007f1278c11030 RSI: 0000000000004c04 RDI: 0000000000000005
RBP: 00007f127a2f8580 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 00007f1278c11030
R13: 00007ffd73b1f47f R14: 00007f1278c11300 R15: 0000000000022000

Showing all locks held in the system:
1 lock held by khungtaskd/1570:
 #0: 00000000fa6d2af8 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441
1 lock held by systemd-udevd/4704:
 #0: 000000008032b66d (&bdev->bd_mutex){+.+.}, at: blkdev_reread_part block/ioctl.c:192 [inline]
 #0: 000000008032b66d (&bdev->bd_mutex){+.+.}, at: blkdev_ioctl+0x7c9/0x1a80 block/ioctl.c:575
1 lock held by in:imklog/7822:
 #0: 000000005e6dd633 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767
1 lock held by syz-executor.2/25056:
 #0: 000000008032b66d (&bdev->bd_mutex){+.+.}, at: blkdev_put+0x30/0x520 fs/block_dev.c:1839
1 lock held by syz-executor.2/25059:
1 lock held by syz-executor.2/25070:
 #0: 0000000057094715 (&type->s_umount_key#72){++++}, at: __get_super.part.0+0x209/0x2e0 fs/super.c:698
2 locks held by syz-executor.4/25064:
 #0: 000000008032b66d (&bdev->bd_mutex){+.+.}, at: blkdev_reread_part+0x1b/0x40 block/ioctl.c:192
 #1: 0000000057094715 (&type->s_umount_key#72){++++}, at: __get_super.part.0+0x209/0x2e0 fs/super.c:698
1 lock held by syz-executor.4/25235:
 #0: 000000008032b66d (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x1d0/0x1480 fs/block_dev.c:1478
1 lock held by syz-executor.2/25699:
 #0: 000000008032b66d (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x1d0/0x1480 fs/block_dev.c:1478
1 lock held by syz-executor.2/25700:
 #0: 000000008032b66d (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x1d0/0x1480 fs/block_dev.c:1478
1 lock held by syz-executor.2/25701:
 #0: 000000008032b66d (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x1d0/0x1480 fs/block_dev.c:1478
1 lock held by syz-executor.2/25992:
 #0: 000000008032b66d (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x1d0/0x1480 fs/block_dev.c:1478
1 lock held by syz-executor.2/25993:
 #0: 000000008032b66d (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x1d0/0x1480 fs/block_dev.c:1478

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

NMI backtrace for cpu 0
CPU: 0 PID: 1570 Comm: khungtaskd Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/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 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 9558 Comm: kworker/u4:9 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
Workqueue: bat_events batadv_nc_worker
RIP: 0010:lock_acquire+0x46/0x3c0 kernel/locking/lockdep.c:3900
Code: 89 f4 55 48 89 fd 53 65 48 8b 1c 25 c0 df 01 00 48 8d bb 84 08 00 00 48 83 ec 18 48 89 fa 4c 89 0c 24 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 bd 02 00 00 8b
RSP: 0018:ffff88804b41fbe8 EFLAGS: 00000a03
RAX: dffffc0000000000 RBX: ffff88804bb9c440 RCX: 0000000000000002
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88804bb9ccc4
RBP: ffffffff89f85fa0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000004 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000002 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f312d071000 CR3: 00000000a15cf000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 rcu_lock_acquire include/linux/rcupdate.h:242 [inline]
 rcu_read_lock include/linux/rcupdate.h:627 [inline]
 batadv_nc_process_nc_paths.part.0+0xec/0x3d0 net/batman-adv/network-coding.c:698
 batadv_nc_process_nc_paths net/batman-adv/network-coding.c:690 [inline]
 batadv_nc_worker+0xa59/0xd50 net/batman-adv/network-coding.c:746
 process_one_work+0x864/0x1570 kernel/workqueue.c:2153
 worker_thread+0x64c/0x1130 kernel/workqueue.c:2296
 kthread+0x33f/0x460 kernel/kthread.c:259
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/08 20:33 linux-4.19.y 3f8a27f9e27b aea5da89 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 INFO: task hung in blkdev_ioctl
* Struck through repros no longer work on HEAD.