INFO: task syz-executor.2:12618 blocked for more than 143 seconds. Not tainted 5.1.0-rc7+ #98 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.2 D30024 12618 22233 0x00000004 Call Trace: context_switch kernel/sched/core.c:2877 [inline] __schedule+0x813/0x1cc0 kernel/sched/core.c:3518 schedule+0x92/0x180 kernel/sched/core.c:3562 __rwsem_down_read_failed_common kernel/locking/rwsem-xadd.c:285 [inline] rwsem_down_read_failed+0x213/0x420 kernel/locking/rwsem-xadd.c:302 call_rwsem_down_read_failed+0x18/0x30 arch/x86/lib/rwsem.S:94 __down_read arch/x86/include/asm/rwsem.h:83 [inline] down_read+0x49/0x90 kernel/locking/rwsem.c:26 __get_super.part.0+0x203/0x2e0 fs/super.c:788 __get_super include/linux/spinlock.h:329 [inline] get_super+0x2e/0x50 fs/super.c:817 fsync_bdev+0x19/0xd0 fs/block_dev.c:526 blkdev_flushbuf block/ioctl.c:436 [inline] blkdev_ioctl+0x8f1/0x1d10 block/ioctl.c:521 block_ioctl+0xee/0x130 fs/block_dev.c:1934 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:509 [inline] do_vfs_ioctl+0xd6e/0x1390 fs/ioctl.c:696 ksys_ioctl+0xab/0xd0 fs/ioctl.c:713 __do_sys_ioctl fs/ioctl.c:720 [inline] __se_sys_ioctl fs/ioctl.c:718 [inline] __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:718 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x458da9 Code: Bad RIP value. RSP: 002b:00007f7a5bab3c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000458da9 RDX: 0000000000000000 RSI: 0000000000001261 RDI: 0000000000000003 RBP: 000000000073bfa0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f7a5bab46d4 R13: 00000000004c0169 R14: 00000000004d24e0 R15: 00000000ffffffff INFO: task syz-executor.4:12614 blocked for more than 144 seconds. Not tainted 5.1.0-rc7+ #98 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.4 D28184 12614 7736 0x00000004 Call Trace: context_switch kernel/sched/core.c:2877 [inline] __schedule+0x813/0x1cc0 kernel/sched/core.c:3518 schedule+0x92/0x180 kernel/sched/core.c:3562 __rwsem_down_read_failed_common kernel/locking/rwsem-xadd.c:285 [inline] rwsem_down_read_failed+0x213/0x420 kernel/locking/rwsem-xadd.c:302 call_rwsem_down_read_failed+0x18/0x30 arch/x86/lib/rwsem.S:94 __down_read arch/x86/include/asm/rwsem.h:83 [inline] down_read+0x49/0x90 kernel/locking/rwsem.c:26 __get_super.part.0+0x203/0x2e0 fs/super.c:788 __get_super include/linux/spinlock.h:329 [inline] get_super+0x2e/0x50 fs/super.c:817 fsync_bdev+0x19/0xd0 fs/block_dev.c:526 invalidate_partition+0x36/0x60 block/genhd.c:1581 drop_partitions block/partition-generic.c:443 [inline] rescan_partitions+0xef/0xa20 block/partition-generic.c:516 __blkdev_reread_part+0x1a2/0x230 block/ioctl.c:173 blkdev_reread_part+0x27/0x40 block/ioctl.c:193 loop_reread_partitions+0x1c/0x40 drivers/block/loop.c:633 loop_set_status+0xe57/0x1380 drivers/block/loop.c:1296 loop_set_status64+0xc2/0x120 drivers/block/loop.c:1416 lo_ioctl+0x8fc/0x2150 drivers/block/loop.c:1559 __blkdev_driver_ioctl block/ioctl.c:303 [inline] blkdev_ioctl+0x6f2/0x1d10 block/ioctl.c:605 block_ioctl+0xee/0x130 fs/block_dev.c:1934 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:509 [inline] do_vfs_ioctl+0xd6e/0x1390 fs/ioctl.c:696 ksys_ioctl+0xab/0xd0 fs/ioctl.c:713 __do_sys_ioctl fs/ioctl.c:720 [inline] __se_sys_ioctl fs/ioctl.c:718 [inline] __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:718 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x458c17 Code: Bad RIP value. RSP: 002b:00007f00e8b6b9f8 EFLAGS: 00000202 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f00e8b6c6d4 RCX: 0000000000458c17 RDX: 00007f00e8b6bab0 RSI: 0000000000004c04 RDI: 0000000000000004 RBP: 0000000000000001 R08: 0000000000000000 R09: 000000000000000a R10: 0000000000000075 R11: 0000000000000202 R12: 0000000000000003 R13: 0000000000000003 R14: 0000000000000004 R15: 00000000ffffffff INFO: task blkid:12616 blocked for more than 144 seconds. Not tainted 5.1.0-rc7+ #98 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. blkid D26824 12616 5919 0x00000004 Call Trace: context_switch kernel/sched/core.c:2877 [inline] __schedule+0x813/0x1cc0 kernel/sched/core.c:3518 schedule+0x92/0x180 kernel/sched/core.c:3562 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3620 __mutex_lock_common kernel/locking/mutex.c:1002 [inline] __mutex_lock+0x726/0x1310 kernel/locking/mutex.c:1072 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087 blkdev_put+0x34/0x560 fs/block_dev.c:1867 blkdev_close+0x8b/0xb0 fs/block_dev.c:1916 __fput+0x2e5/0x8d0 fs/file_table.c:278 ____fput+0x16/0x20 fs/file_table.c:309 task_work_run+0x14a/0x1c0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop+0x273/0x2c0 arch/x86/entry/common.c:166 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline] syscall_return_slowpath arch/x86/entry/common.c:268 [inline] do_syscall_64+0x52d/0x610 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f3e533562b0 Code: Bad RIP value. RSP: 002b:00007ffdc3762548 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 00007f3e5362ed04 RCX: 00007f3e533562b0 RDX: 00007f3e5360cdf0 RSI: 0000000000000017 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000001 R09: 00000000016f6118 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000016f6030 R13: 0000000000000000 R14: 0000000000000003 R15: 0000000000000002 Showing all locks held in the system: 3 locks held by kworker/u4:2/29: #0: 00000000a1c9811d (&rq->lock){-.-.}, at: rq_lock kernel/sched/sched.h:1168 [inline] #0: 00000000a1c9811d (&rq->lock){-.-.}, at: __schedule+0x1f8/0x1cc0 kernel/sched/core.c:3456 #1: 00000000d9ca0186 (rcu_read_lock){....}, at: trace_sched_stat_runtime include/trace/events/sched.h:428 [inline] #1: 00000000d9ca0186 (rcu_read_lock){....}, at: update_curr+0x2ce/0x8a0 kernel/sched/fair.c:842 #2: 0000000071f84839 (&base->lock){-.-.}, at: lock_timer_base+0x56/0x1b0 kernel/time/timer.c:937 1 lock held by khungtaskd/1042: #0: 00000000d9ca0186 (rcu_read_lock){....}, at: debug_show_all_locks+0x5f/0x27e kernel/locking/lockdep.c:5057 3 locks held by rs:main Q:Reg/7598: #0: 000000002c67f283 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0xee/0x110 fs/file.c:801 #1: 00000000e2170817 (sb_writers#3){.+.+}, at: file_start_write include/linux/fs.h:2825 [inline] #1: 00000000e2170817 (sb_writers#3){.+.+}, at: vfs_write+0x429/0x580 fs/read_write.c:548 #2: 000000001c6c0f9e (&sb->s_type->i_mutex_key#10){++++}, at: inode_lock include/linux/fs.h:772 [inline] #2: 000000001c6c0f9e (&sb->s_type->i_mutex_key#10){++++}, at: __generic_file_fsync+0xb5/0x200 fs/libfs.c:981 1 lock held by rsyslogd/7600: #0: 00000000174b68b3 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0xee/0x110 fs/file.c:801 2 locks held by getty/7690: #0: 00000000044098cd (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 00000000dd2b67d7 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2156 2 locks held by getty/7691: #0: 00000000dc0eeed0 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 00000000d6f1ce55 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2156 2 locks held by getty/7692: #0: 0000000010af689f (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 00000000c7686976 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2156 2 locks held by getty/7693: #0: 0000000055c36922 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 000000000b7c1e67 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2156 2 locks held by getty/7694: #0: 0000000083e49766 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 0000000046231f70 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2156 2 locks held by getty/7695: #0: 0000000059521660 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 000000001d441445 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2156 2 locks held by getty/7696: #0: 00000000c9e13dce (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 00000000f5504ca0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2156 1 lock held by syz-executor.5/19663: 1 lock held by syz-executor.0/20201: 2 locks held by syz-executor.2/12610: 1 lock held by syz-executor.2/12618: #0: 00000000b4511f89 (&type->s_umount_key#87){++++}, at: __get_super.part.0+0x203/0x2e0 fs/super.c:788 2 locks held by syz-executor.4/12614: #0: 00000000ce571abc (&bdev->bd_mutex){+.+.}, at: blkdev_reread_part+0x1f/0x40 block/ioctl.c:192 #1: 00000000b4511f89 (&type->s_umount_key#87){++++}, at: __get_super.part.0+0x203/0x2e0 fs/super.c:788 1 lock held by blkid/12616: #0: 00000000ce571abc (&bdev->bd_mutex){+.+.}, at: blkdev_put+0x34/0x560 fs/block_dev.c:1867 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 1042 Comm: khungtaskd Not tainted 5.1.0-rc7+ #98 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+0x172/0x1f0 lib/dump_stack.c:113 nmi_cpu_backtrace.cold+0x63/0xa4 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0x1be/0x236 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:204 [inline] watchdog+0x9b7/0xec0 kernel/hung_task.c:288 kthread+0x357/0x430 kernel/kthread.c:253 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352 Sending NMI from CPU 1 to CPUs 0: