syzbot


INFO: task hung in blk_trace_ioctl (2)

Status: auto-closed as invalid on 2020/04/09 23:38
Subsystems: block trace
[Documentation on labels]
First crash: 1823d, last: 1713d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in blk_trace_ioctl trace block 3 2114d 2194d 0/28 auto-closed as invalid on 2019/06/04 08:29
upstream INFO: task hung in blk_trace_ioctl (3) trace block 2 1024d 1089d 0/28 closed as invalid on 2022/02/07 19:19
upstream INFO: task hung in blk_trace_ioctl (4) block trace C done 34 1d03h 294d 0/28 upstream: reported C repro on 2023/11/30 21:17
linux-4.19 INFO: task hung in blk_trace_ioctl 1 778d 778d 0/1 auto-obsoleted due to no activity on 2022/12/01 07:14

Sample crash report:
INFO: task syz-executor.2:19865 blocked for more than 143 seconds.
      Not tainted 5.5.0-rc5-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.2  D28552 19865   9434 0x00004004
Call Trace:
 context_switch kernel/sched/core.c:3385 [inline]
 __schedule+0x934/0x1f90 kernel/sched/core.c:4081
 schedule+0xdc/0x2b0 kernel/sched/core.c:4155
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:4214
 __mutex_lock_common kernel/locking/mutex.c:1033 [inline]
 __mutex_lock+0x7ab/0x13c0 kernel/locking/mutex.c:1103
 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1118
 blk_trace_ioctl+0xe3/0x300 kernel/trace/blktrace.c:704
 blkdev_ioctl+0x126/0x1df0 block/ioctl.c:568
 block_ioctl+0xee/0x130 fs/block_dev.c:1983
 vfs_ioctl fs/ioctl.c:47 [inline]
 file_ioctl fs/ioctl.c:545 [inline]
 do_vfs_ioctl+0x977/0x14e0 fs/ioctl.c:732
 ksys_ioctl+0xab/0xd0 fs/ioctl.c:749
 __do_sys_ioctl fs/ioctl.c:756 [inline]
 __se_sys_ioctl fs/ioctl.c:754 [inline]
 __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:754
 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45af49
Code: Bad RIP value.
RSP: 002b:00007f67956bec78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045af49
RDX: 000000000000ff00 RSI: 0000000000001276 RDI: 0000000000000003
RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f67956bf6d4
R13: 00000000004c2b0a R14: 00000000004d8f70 R15: 00000000ffffffff
INFO: task syz-executor.2:19866 blocked for more than 144 seconds.
      Not tainted 5.5.0-rc5-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.2  D29120 19866   9434 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:3385 [inline]
 __schedule+0x934/0x1f90 kernel/sched/core.c:4081
 schedule+0xdc/0x2b0 kernel/sched/core.c:4155
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:4214
 __mutex_lock_common kernel/locking/mutex.c:1033 [inline]
 __mutex_lock+0x7ab/0x13c0 kernel/locking/mutex.c:1103
 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1118
 blk_trace_ioctl+0xe3/0x300 kernel/trace/blktrace.c:704
 blkdev_ioctl+0x126/0x1df0 block/ioctl.c:568
 block_ioctl+0xee/0x130 fs/block_dev.c:1983
 vfs_ioctl fs/ioctl.c:47 [inline]
 file_ioctl fs/ioctl.c:545 [inline]
 do_vfs_ioctl+0x977/0x14e0 fs/ioctl.c:732
 ksys_ioctl+0xab/0xd0 fs/ioctl.c:749
 __do_sys_ioctl fs/ioctl.c:756 [inline]
 __se_sys_ioctl fs/ioctl.c:754 [inline]
 __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:754
 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45af49
Code: Bad RIP value.
RSP: 002b:00007f679569dc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045af49
RDX: 0000000020000080 RSI: 00000000c0481273 RDI: 0000000000000003
RBP: 000000000075c070 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f679569e6d4
R13: 00000000004c2acf R14: 00000000004d8f28 R15: 00000000ffffffff
INFO: task syz-executor.3:19862 blocked for more than 146 seconds.
      Not tainted 5.5.0-rc5-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.3  D28552 19862   9436 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:3385 [inline]
 __schedule+0x934/0x1f90 kernel/sched/core.c:4081
 schedule+0xdc/0x2b0 kernel/sched/core.c:4155
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:4214
 __mutex_lock_common kernel/locking/mutex.c:1033 [inline]
 __mutex_lock+0x7ab/0x13c0 kernel/locking/mutex.c:1103
 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1118
 blk_trace_ioctl+0xe3/0x300 kernel/trace/blktrace.c:704
 blkdev_ioctl+0x126/0x1df0 block/ioctl.c:568
 block_ioctl+0xee/0x130 fs/block_dev.c:1983
 vfs_ioctl fs/ioctl.c:47 [inline]
 file_ioctl fs/ioctl.c:545 [inline]
 do_vfs_ioctl+0x977/0x14e0 fs/ioctl.c:732
 ksys_ioctl+0xab/0xd0 fs/ioctl.c:749
 __do_sys_ioctl fs/ioctl.c:756 [inline]
 __se_sys_ioctl fs/ioctl.c:754 [inline]
 __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:754
 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45af49
Code: Bad RIP value.
RSP: 002b:00007f1c07df5c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045af49
RDX: 0000000020000080 RSI: 00000000c0481273 RDI: 0000000000000003
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f1c07df66d4
R13: 00000000004c2acf R14: 00000000004d8f28 R15: 00000000ffffffff
INFO: task syz-executor.3:19868 blocked for more than 147 seconds.
      Not tainted 5.5.0-rc5-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.3  D29712 19868   9436 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:3385 [inline]
 __schedule+0x934/0x1f90 kernel/sched/core.c:4081
 schedule+0xdc/0x2b0 kernel/sched/core.c:4155
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:4214
 __mutex_lock_common kernel/locking/mutex.c:1033 [inline]
 __mutex_lock+0x7ab/0x13c0 kernel/locking/mutex.c:1103
 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1118
 blk_trace_ioctl+0xe3/0x300 kernel/trace/blktrace.c:704
 blkdev_ioctl+0x126/0x1df0 block/ioctl.c:568
 block_ioctl+0xee/0x130 fs/block_dev.c:1983
 vfs_ioctl fs/ioctl.c:47 [inline]
 file_ioctl fs/ioctl.c:545 [inline]
 do_vfs_ioctl+0x977/0x14e0 fs/ioctl.c:732
 ksys_ioctl+0xab/0xd0 fs/ioctl.c:749
 __do_sys_ioctl fs/ioctl.c:756 [inline]
 __se_sys_ioctl fs/ioctl.c:754 [inline]
 __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:754
 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45af49
Code: Bad RIP value.
RSP: 002b:00007f1c07db3c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045af49
RDX: 0000000020000080 RSI: 00000000c0481273 RDI: 0000000000000003
RBP: 000000000075c070 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f1c07db46d4
R13: 00000000004c2acf R14: 00000000004d8f28 R15: 00000000ffffffff

Showing all locks held in the system:
3 locks held by init/1:
1 lock held by khungtaskd/1067:
 #0: ffffffff899a5340 (rcu_read_lock){....}, at: debug_show_all_locks+0x5f/0x279 kernel/locking/lockdep.c:5334
2 locks held by rs:main Q:Reg/9297:
3 locks held by rsyslogd/9299:
3 locks held by cron/9339:
2 locks held by getty/9389:
 #0: ffff8880a69d8090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340
 #1: ffffc9000188b2e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x220/0x1bf0 drivers/tty/n_tty.c:2156
2 locks held by getty/9390:
 #0: ffff8880958e4090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340
 #1: ffffc9000186b2e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x220/0x1bf0 drivers/tty/n_tty.c:2156
2 locks held by getty/9391:
 #0: ffff8880a6bd3090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340
 #1: ffffc9000180b2e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x220/0x1bf0 drivers/tty/n_tty.c:2156
2 locks held by getty/9392:
 #0: ffff8880a95a5090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340
 #1: ffffc9000187b2e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x220/0x1bf0 drivers/tty/n_tty.c:2156
2 locks held by getty/9393:
 #0: ffff8880a83f7090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340
 #1: ffffc900018ab2e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x220/0x1bf0 drivers/tty/n_tty.c:2156
2 locks held by getty/9394:
 #0: ffff88809fe1d090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340
 #1: ffffc9000189b2e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x220/0x1bf0 drivers/tty/n_tty.c:2156
2 locks held by getty/9395:
 #0: ffff8880a730b090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340
 #1: ffffc900017eb2e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x220/0x1bf0 drivers/tty/n_tty.c:2156
3 locks held by syz-fuzzer/9410:
3 locks held by syz-fuzzer/9411:
3 locks held by syz-fuzzer/9418:
3 locks held by kworker/u4:5/11407:
 #0: ffff88821b78e528 ((wq_completion)netns){+.+.}, at: __write_once_size include/linux/compiler.h:226 [inline]
 #0: ffff88821b78e528 ((wq_completion)netns){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
 #0: ffff88821b78e528 ((wq_completion)netns){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:855 [inline]
 #0: ffff88821b78e528 ((wq_completion)netns){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:40 [inline]
 #0: ffff88821b78e528 ((wq_completion)netns){+.+.}, at: set_work_data kernel/workqueue.c:615 [inline]
 #0: ffff88821b78e528 ((wq_completion)netns){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:642 [inline]
 #0: ffff88821b78e528 ((wq_completion)netns){+.+.}, at: process_one_work+0x88b/0x1740 kernel/workqueue.c:2235
 #1: ffffc90007c7fdc0 (net_cleanup_work){+.+.}, at: process_one_work+0x8c1/0x1740 kernel/workqueue.c:2239
 #2: ffffffff8a4c9888 (pernet_ops_rwsem){++++}, at: cleanup_net+0xae/0xaf0 net/core/net_namespace.c:559
5 locks held by syz-executor.2/19858:
1 lock held by syz-executor.2/19865:
 #0: ffff8880a043d738 (&q->blk_trace_mutex){+.+.}, at: blk_trace_ioctl+0xe3/0x300 kernel/trace/blktrace.c:704
1 lock held by syz-executor.2/19866:
 #0: ffff8880a043d738 (&q->blk_trace_mutex){+.+.}, at: blk_trace_ioctl+0xe3/0x300 kernel/trace/blktrace.c:704
1 lock held by syz-executor.3/19862:
 #0: ffff8880a043d738 (&q->blk_trace_mutex){+.+.}, at: blk_trace_ioctl+0xe3/0x300 kernel/trace/blktrace.c:704
1 lock held by syz-executor.3/19868:
 #0: ffff8880a043d738 (&q->blk_trace_mutex){+.+.}, at: blk_trace_ioctl+0xe3/0x300 kernel/trace/blktrace.c:704

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

NMI backtrace for cpu 1
CPU: 1 PID: 1067 Comm: khungtaskd Not tainted 5.5.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x197/0x210 lib/dump_stack.c:118
 nmi_cpu_backtrace.cold+0x70/0xb2 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x23b/0x28b lib/nmi_backtrace.c:62
 arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:205 [inline]
 watchdog+0xb11/0x10c0 kernel/hung_task.c:289
 kthread+0x361/0x430 kernel/kthread.c:255
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 9418 Comm: syz-fuzzer Not tainted 5.5.0-rc5-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:debug_lockdep_rcu_enabled.part.0+0x2a/0x60 kernel/rcu/update.c:252
Code: 48 b8 00 00 00 00 00 fc ff df 55 48 89 e5 53 65 48 8b 1c 25 c0 1e 02 00 48 8d bb 94 08 00 00 48 89 fa 48 c1 ea 03 0f b6 14 02 <48> 89 f8 83 e0 07 83 c0 03 38 d0 7c 04 84 d2 75 10 8b 93 94 08 00
RSP: 0000:ffffc90001e670e8 EFLAGS: 00000803
RAX: dffffc0000000000 RBX: ffff88808aeca100 RCX: 1ffffffff14f7736
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff88808aeca994
RBP: ffffc90001e670f0 R08: 1ffffffff14f70f8 R09: fffffbfff14f70f9
R10: fffffbfff14f70f8 R11: ffffffff8a7b87c7 R12: ffffffff899a5340
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000002
FS:  000000c00007c090(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000045af1f CR3: 00000000a0a36000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 debug_lockdep_rcu_enabled+0x71/0xa0 kernel/rcu/update.c:251
 trace_lock_acquire include/trace/events/lock.h:13 [inline]
 lock_acquire+0x330/0x410 kernel/locking/lockdep.c:4484
 rcu_lock_acquire include/linux/rcupdate.h:208 [inline]
 rcu_read_lock include/linux/rcupdate.h:617 [inline]
 list_lru_count_one+0x66/0x370 mm/list_lru.c:191
 list_lru_shrink_count include/linux/list_lru.h:123 [inline]
 super_cache_count+0x14c/0x2e0 fs/super.c:147
 do_shrink_slab+0x109/0xad0 mm/vmscan.c:444
 shrink_slab mm/vmscan.c:687 [inline]
 shrink_slab+0x19a/0x680 mm/vmscan.c:660
 shrink_node_memcgs mm/vmscan.c:2687 [inline]
 shrink_node+0x46a/0x1ad0 mm/vmscan.c:2791
 shrink_zones mm/vmscan.c:2996 [inline]
 do_try_to_free_pages+0x3ba/0x14f0 mm/vmscan.c:3049
 try_to_free_pages+0x2dc/0x970 mm/vmscan.c:3288
 __perform_reclaim mm/page_alloc.c:4124 [inline]
 __alloc_pages_direct_reclaim mm/page_alloc.c:4145 [inline]
 __alloc_pages_slowpath+0x983/0x2920 mm/page_alloc.c:4562
 __alloc_pages_nodemask+0x646/0x910 mm/page_alloc.c:4776
 alloc_pages_current+0x107/0x210 mm/mempolicy.c:2207
 alloc_pages include/linux/gfp.h:532 [inline]
 __page_cache_alloc+0x29d/0x490 mm/filemap.c:981
 pagecache_get_page+0x27e/0x9e0 mm/filemap.c:1671
 filemap_fault+0x9b1/0x3180 mm/filemap.c:2510
 ext4_filemap_fault+0x86/0xb2 fs/ext4/inode.c:5977
 __do_fault+0x111/0x540 mm/memory.c:3240
 do_read_fault mm/memory.c:3637 [inline]
 do_fault mm/memory.c:3766 [inline]
 handle_pte_fault mm/memory.c:3997 [inline]
 __handle_mm_fault+0x2a96/0x3cc0 mm/memory.c:4127
 handle_mm_fault+0x3b2/0xa50 mm/memory.c:4164
 do_user_addr_fault arch/x86/mm/fault.c:1441 [inline]
 __do_page_fault+0x536/0xd80 arch/x86/mm/fault.c:1506
 do_page_fault+0x38/0x590 arch/x86/mm/fault.c:1530
 page_fault+0x39/0x40 arch/x86/entry/entry_64.S:1203
RIP: 0033:0x40dd4b
Code: Bad RIP value.
RSP: 002b:000000c000211458 EFLAGS: 00010202
RAX: 62ec2bab2d79d004 RBX: 000000000000000f RCX: 0000000000000004
RDX: 000000c0000df890 RSI: 000000000089cda0 RDI: 0000000000000001
RBP: 000000c000211490 R08: 0000000000000009 R09: 0000000000006a80
R10: 000000c019222000 R11: 0000000000001000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000aac138 R15: 0000000000000000

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/01/10 23:38 upstream e69ec487b2c7 4de4e9f0 .config console log report ci-upstream-kasan-gce
2019/12/11 01:12 upstream 6794862a16ef 5a5826a1 .config console log report ci-upstream-kasan-gce
2019/09/22 22:38 upstream f7c3bf8fa7e5 d96e88f3 .config console log report ci-upstream-kasan-gce-selinux-root
2019/12/26 20:50 linux-next 7ddd09fc4b74 be5c2c81 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.