syz-executor0(14541): getblk(): executed=9 bh_count=0 bh_state=0 syz-executor0(14541): getblk(): executed=9 bh_count=0 bh_state=0 syz-executor0(14541): getblk(): executed=9 bh_count=0 bh_state=0 syz-executor0(14541): getblk(): executed=9 bh_count=0 bh_state=0 syz-executor0(14541): getblk(): executed=9 bh_count=0 bh_state=0 INFO: task syz-executor0:14537 blocked for more than 140 seconds. Not tainted 4.20.0-rc7-next-20181224 #1 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor0 D26408 14537 8028 0x00000004 Call Trace: context_switch kernel/sched/core.c:2831 [inline] __schedule+0x897/0x1e60 kernel/sched/core.c:3472 schedule+0xfe/0x350 kernel/sched/core.c:3516 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3574 __mutex_lock_common kernel/locking/mutex.c:1002 [inline] __mutex_lock+0xa3b/0x1670 kernel/locking/mutex.c:1072 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087 blkdev_put+0x34/0x560 fs/block_dev.c:1842 blkdev_close+0x8b/0xb0 fs/block_dev.c:1891 __fput+0x3cd/0xaa0 fs/file_table.c:279 ____fput+0x16/0x20 fs/file_table.c:312 task_work_run+0x1f4/0x2b0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop+0x32a/0x3b0 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+0x696/0x800 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x411c91 Code: 2e 0f 1f 84 00 00 00 00 00 31 c0 c3 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 31 c0 c3 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 48 07 b0 20 41 00 31 c0 c3 66 0f 1f 44 00 00 41 54 55 53 80 bf d4 RSP: 002b:00007fff05aa22e0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000006 RCX: 0000000000411c91 RDX: 0000000000000000 RSI: 00000000007409e0 RDI: 0000000000000005 RBP: 0000000000000000 R08: 00000000007409d8 R09: 0000000000000000 R10: 00007fff05aa2200 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000001 R14: 00000000000000f7 R15: 0000000000000000 INFO: task syz-executor0:14549 blocked for more than 140 seconds. Not tainted 4.20.0-rc7-next-20181224 #1 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor0 D26104 14549 8028 0x00000004 Call Trace: context_switch kernel/sched/core.c:2831 [inline] __schedule+0x897/0x1e60 kernel/sched/core.c:3472 schedule+0xfe/0x350 kernel/sched/core.c:3516 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3574 __mutex_lock_common kernel/locking/mutex.c:1002 [inline] __mutex_lock+0xa3b/0x1670 kernel/locking/mutex.c:1072 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087 __blkdev_get+0x19b/0x1400 fs/block_dev.c:1492 blkdev_get+0xc1/0xae0 fs/block_dev.c:1643 blkdev_open+0x205/0x290 fs/block_dev.c:1801 do_dentry_open+0x495/0x1230 fs/open.c:771 vfs_open+0xa0/0xd0 fs/open.c:880 do_last fs/namei.c:3418 [inline] path_openat+0x144f/0x5660 fs/namei.c:3534 do_filp_open+0x26f/0x370 fs/namei.c:3564 do_sys_open+0x59a/0x7c0 fs/open.c:1063 __do_sys_open fs/open.c:1081 [inline] __se_sys_open fs/open.c:1076 [inline] __x64_sys_open+0x7e/0xc0 fs/open.c:1076 do_syscall_64+0x1a3/0x800 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x411e71 Code: 48 c7 03 90 1c 41 00 31 c0 48 83 c4 08 5b 5d c3 66 0f 1f 84 00 00 00 00 00 48 c7 03 b0 20 41 00 eb e5 0f 1f 80 00 00 00 00 bf <69> 30 44 00 b9 08 00 00 00 48 89 ee f3 a6 74 1f bf 71 30 44 00 b9 RSP: 002b:00007f3be3709a80 EFLAGS: 00000293 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 0000000020000068 RCX: 0000000000411e71 RDX: 00007f3be3709afa RSI: 0000000000000002 RDI: 00007f3be3709af0 RBP: 0000000000000001 R08: 0000000000000000 R09: 000000000000000a R10: 0000000000000075 R11: 0000000000000293 R12: 0000000000000007 R13: 0000000000000001 R14: 00000000004db4a0 R15: 00000000ffffffff INFO: task syz-executor3:14540 blocked for more than 140 seconds. Not tainted 4.20.0-rc7-next-20181224 #1 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor3 D25096 14540 8035 0x00000004 Call Trace: context_switch kernel/sched/core.c:2831 [inline] __schedule+0x897/0x1e60 kernel/sched/core.c:3472 schedule+0xfe/0x350 kernel/sched/core.c:3516 __rwsem_down_read_failed_common kernel/locking/rwsem-xadd.c:280 [inline] rwsem_down_read_failed+0x360/0x6d0 kernel/locking/rwsem-xadd.c:297 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+0x9b/0x120 kernel/locking/rwsem.c:26 __get_super.part.0+0x203/0x2e0 fs/super.c:789 __get_super include/linux/spinlock.h:329 [inline] get_super+0x2e/0x50 fs/super.c:818 fsync_bdev+0x19/0xd0 fs/block_dev.c:495 invalidate_partition+0x36/0x60 block/genhd.c:1579 drop_partitions.isra.0+0xf7/0x220 block/partition-generic.c:443 rescan_partitions+0x72/0x970 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+0xcf7/0x1100 drivers/block/loop.c:1268 loop_set_status64+0xc2/0x120 drivers/block/loop.c:1388 lo_ioctl+0x518/0x2190 drivers/block/loop.c:1514 __blkdev_driver_ioctl block/ioctl.c:303 [inline] blkdev_ioctl+0x10e0/0x2120 block/ioctl.c:605 block_ioctl+0xee/0x130 fs/block_dev.c:1909 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:509 [inline] do_vfs_ioctl+0x107b/0x17d0 fs/ioctl.c:696 syz-executor0(14541): getblk(): executed=9 bh_count=0 bh_state=0 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+0x1a3/0x800 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457ec9 Code: 6d b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 3b b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f9b2327fc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457ec9 RDX: 0000000020000380 RSI: 0000000000004c04 RDI: 000000000000000a RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f9b232806d4 R13: 00000000004c1290 R14: 00000000004d2c80 R15: 00000000ffffffff INFO: task syz-executor3:14587 blocked for more than 140 seconds. Not tainted 4.20.0-rc7-next-20181224 #1 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor3 D25792 14587 8035 0x00000004 Call Trace: context_switch kernel/sched/core.c:2831 [inline] __schedule+0x897/0x1e60 kernel/sched/core.c:3472 schedule+0xfe/0x350 kernel/sched/core.c:3516 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3574 __mutex_lock_common kernel/locking/mutex.c:1002 [inline] __mutex_lock+0xa3b/0x1670 kernel/locking/mutex.c:1072 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087 __blkdev_get+0x19b/0x1400 fs/block_dev.c:1492 blkdev_get+0xc1/0xae0 fs/block_dev.c:1643 blkdev_open+0x205/0x290 fs/block_dev.c:1801 do_dentry_open+0x495/0x1230 fs/open.c:771 vfs_open+0xa0/0xd0 fs/open.c:880 do_last fs/namei.c:3418 [inline] path_openat+0x144f/0x5660 fs/namei.c:3534 do_filp_open+0x26f/0x370 fs/namei.c:3564 do_sys_open+0x59a/0x7c0 fs/open.c:1063 __do_sys_open fs/open.c:1081 [inline] __se_sys_open fs/open.c:1076 [inline] __x64_sys_open+0x7e/0xc0 fs/open.c:1076 do_syscall_64+0x1a3/0x800 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x411e71 Code: e8 04 e2 ff ff 48 8d 4c 24 20 45 89 e1 41 b8 08 00 00 00 ba 0e ef 41 00 48 89 de 48 89 ef e8 76 fc ff ff 48 8d 4c 24 30 45 89 41 b8 08 00 00 00 ba a8 ef 41 00 48 89 de 48 89 ef e8 58 fc ff RSP: 002b:00007f9b2323d7a0 EFLAGS: 00000293 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 6666666666666667 RCX: 0000000000411e71 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007f9b2323d850 RBP: 000000000073c040 R08: 000000000000000f R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 00007f9b2323e6d4 R13: 00000000004c668b R14: 00000000004db650 R15: 00000000ffffffff Showing all locks held in the system: 1 lock held by khungtaskd/1041: #0: 000000006a1b1555 (rcu_read_lock){....}, at: debug_show_all_locks+0xc6/0x41d kernel/locking/lockdep.c:4389 1 lock held by udevd/3856: 1 lock held by rsyslogd/7879: #0: 000000008492f363 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x1b3/0x1f0 fs/file.c:795 2 locks held by getty/7991: #0: 00000000bd241e83 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 00000000064a9a79 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154 2 locks held by getty/7992: #0: 00000000b114d5e9 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 00000000bd678f9d (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154 2 locks held by getty/7993: #0: 0000000049cc390d (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 0000000035a1b985 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154 2 locks held by getty/7994: #0: 00000000487d7f68 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 000000004a982fc7 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154 2 locks held by getty/7995: #0: 0000000071337bf7 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 00000000e1ea7c2f (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154 2 locks held by getty/7996: #0: 0000000007b69977 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 000000006fb49c32 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154 2 locks held by getty/7997: #0: 000000006f90607f (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 000000007d85ffea (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154 1 lock held by syz-executor0/14537: #0: 00000000a13bd05e (&bdev->bd_mutex){+.+.}, at: blkdev_put+0x34/0x560 fs/block_dev.c:1842 1 lock held by syz-executor0/14541: 1 lock held by syz-executor0/14549: #0: 00000000a13bd05e (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x19b/0x1400 fs/block_dev.c:1492 2 locks held by syz-executor3/14540: #0: 00000000a13bd05e (&bdev->bd_mutex){+.+.}, at: blkdev_reread_part+0x1f/0x40 block/ioctl.c:192 #1: 000000001bc442b5 (&fc->fs_type->s_umount_key#54){++++}, at: __get_super.part.0+0x203/0x2e0 fs/super.c:789 1 lock held by syz-executor3/14587: #0: 00000000a13bd05e (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x19b/0x1400 fs/block_dev.c:1492 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 1041 Comm: khungtaskd Not tainted 4.20.0-rc7-next-20181224 #1 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+0x1db/0x2d0 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:203 [inline] watchdog+0xbbb/0x1170 kernel/hung_task.c:287 kthread+0x357/0x430 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352 Sending NMI from CPU 0 to CPUs 1: INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 1.107 msecs NMI backtrace for cpu 1 CPU: 1 PID: 3856 Comm: udevd Not tainted 4.20.0-rc7-next-20181224 #1 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:lock_is_held_type+0xe8/0x210 kernel/locking/lockdep.c:3878 Code: 0f 1f 44 00 00 65 4c 8b 2c 25 40 ee 01 00 49 8d bd 7c 08 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 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 c5 00 00 00 41 RSP: 0018:ffff888097ddf500 EFLAGS: 00000807 RAX: dffffc0000000000 RBX: 0000000000000282 RCX: 1ffffffff14b7857 RDX: 0000000000000000 RSI: 00000000ffffffff RDI: ffff888097dd487c RBP: ffff888097ddf520 R08: ffffffff81e89479 R09: ffffffff8a9a705d R10: ffff888097ddf8b0 R11: 0000000000000001 R12: ffffffff8999f540 R13: ffff888097dd4000 R14: 000000000000038c R15: ffffffff81e89479 FS: 00007f21a124a7a0(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000f507d0 CR3: 00000000983b9000 CR4: 00000000001426e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_is_held include/linux/lockdep.h:337 [inline] ___might_sleep+0x285/0x310 kernel/sched/core.c:6113 __might_sleep+0x95/0x190 kernel/sched/core.c:6101 __mutex_lock_common kernel/locking/mutex.c:908 [inline] __mutex_lock+0x100/0x1670 kernel/locking/mutex.c:1072 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087 ep_scan_ready_list+0xd79/0x10d0 fs/eventpoll.c:690 ep_send_events fs/eventpoll.c:1715 [inline] ep_poll+0x2d0/0x1640 fs/eventpoll.c:1852 do_epoll_wait+0x1b3/0x200 fs/eventpoll.c:2216 __do_sys_epoll_wait fs/eventpoll.c:2226 [inline] __se_sys_epoll_wait fs/eventpoll.c:2223 [inline] __x64_sys_epoll_wait+0x97/0xf0 fs/eventpoll.c:2223 do_syscall_64+0x1a3/0x800 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f21a095e943 Code: 00 31 d2 48 29 c2 64 89 11 48 83 c8 ff eb ea 90 90 90 90 90 90 90 90 83 3d b5 dc 2a 00 00 75 13 49 89 ca b8 e8 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 34 c3 48 83 ec 08 e8 3b c4 00 00 48 89 04 24 RSP: 002b:00007ffe2a2cd508 EFLAGS: 00000246 ORIG_RAX: 00000000000000e8 RAX: ffffffffffffffda RBX: 0000000000000bb8 RCX: 00007f21a095e943 RDX: 0000000000000008 RSI: 00007ffe2a2cd600 RDI: 000000000000000a RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000001 R10: 0000000000000bb8 R11: 0000000000000246 R12: 0000000000000003 R13: 0000000000000000 R14: 0000000002591bd0 R15: 0000000002580250