INFO: task blkid:14388 blocked for more than 120 seconds. Not tainted 4.16.0+ #17 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. blkid D20008 14388 5421 0x80000006 Call Trace: context_switch kernel/sched/core.c:2848 [inline] __schedule+0x807/0x1e40 kernel/sched/core.c:3490 schedule+0xef/0x430 kernel/sched/core.c:3549 io_schedule+0x1c/0x70 kernel/sched/core.c:5169 wait_on_page_bit_common mm/filemap.c:1099 [inline] __lock_page+0x587/0x750 mm/filemap.c:1272 lock_page include/linux/pagemap.h:483 [inline] truncate_inode_pages_range+0x12c8/0x25a0 mm/truncate.c:448 truncate_inode_pages+0x24/0x30 mm/truncate.c:478 kill_bdev+0xd6/0x110 fs/block_dev.c:86 __blkdev_put+0x20f/0x830 fs/block_dev.c:1784 blkdev_put+0x98/0x540 fs/block_dev.c:1852 blkdev_close+0x8b/0xb0 fs/block_dev.c:1859 __fput+0x34d/0x890 fs/file_table.c:209 ____fput+0x15/0x20 fs/file_table.c:243 task_work_run+0x1e4/0x290 kernel/task_work.c:113 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0x1aee/0x2730 kernel/exit.c:865 do_group_exit+0x16f/0x430 kernel/exit.c:968 get_signal+0x886/0x1960 kernel/signal.c:2469 do_signal+0x98/0x2040 arch/x86/kernel/signal.c:810 exit_to_usermode_loop+0x28a/0x310 arch/x86/entry/common.c:162 prepare_exit_to_usermode arch/x86/entry/common.c:196 [inline] syscall_return_slowpath arch/x86/entry/common.c:265 [inline] do_syscall_64+0x792/0x9d0 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x7faea87fe310 RSP: 002b:00007ffd8f6e4fb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: fffffffffffffffc RBX: 0000000000000000 RCX: 00007faea87fe310 RDX: 0000000000000400 RSI: 0000000001decc58 RDI: 0000000000000003 RBP: 0000000001decc30 R08: 0000000000000028 R09: 0000000001680000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000001dec030 R13: 0000000000000400 R14: 0000000001dec080 R15: 0000000001decc48 Showing all locks held in the system: 2 locks held by khungtaskd/888: #0: 000000003406f76c (rcu_read_lock){....}, at: check_hung_uninterruptible_tasks kernel/hung_task.c:175 [inline] #0: 000000003406f76c (rcu_read_lock){....}, at: watchdog+0x1ff/0xf60 kernel/hung_task.c:249 #1: 000000008cafdf14 (tasklist_lock){.+.+}, at: debug_show_all_locks+0xde/0x34a kernel/locking/lockdep.c:4470 2 locks held by getty/4394: #0: 00000000a447b96b (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000b0c48ace (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131 2 locks held by getty/4395: #0: 000000006ed0f743 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000a404a1a1 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131 2 locks held by getty/4396: #0: 0000000030e63ac6 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000626c17f9 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131 2 locks held by getty/4397: #0: 0000000090538ac4 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 000000000276f627 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131 2 locks held by getty/4398: #0: 00000000dd8f3a97 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000f7164e24 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131 2 locks held by getty/4399: #0: 00000000efdfee03 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000a6162f88 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131 2 locks held by getty/4400: #0: 0000000078c0ddf0 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x37/0x40 drivers/tty/tty_ldsem.c:365 #1: 00000000753fed71 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x321/0x1cc0 drivers/tty/n_tty.c:2131 1 lock held by blkid/14388: #0: 00000000ed5a4697 (&bdev->bd_mutex){+.+.}, at: __blkdev_put+0xc2/0x830 fs/block_dev.c:1777 1 lock held by syz-executor1/19285: #0: 00000000ed5a4697 (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x193/0x13a0 fs/block_dev.c:1460 1 lock held by syz-executor1/19322: #0: 00000000ed5a4697 (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x193/0x13a0 fs/block_dev.c:1460 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 888 Comm: khungtaskd Not tainted 4.16.0+ #17 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+0x1b9/0x294 lib/dump_stack.c:113 nmi_cpu_backtrace.cold.4+0x19/0xce lib/nmi_backtrace.c:103 nmi_trigger_cpumask_backtrace+0x151/0x192 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:138 [inline] check_hung_task kernel/hung_task.c:132 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:190 [inline] watchdog+0xc10/0xf60 kernel/hung_task.c:249 kthread+0x345/0x410 kernel/kthread.c:238 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:411 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 skipped: idling at native_safe_halt+0x6/0x10 arch/x86/include/asm/irqflags.h:54