syz-executor5(31802): getblk(): executed=9 bh_count=0 bh_state=0 syz-executor5(31802): getblk(): executed=9 bh_count=0 bh_state=0 syz-executor5(31802): getblk(): executed=9 bh_count=0 bh_state=0 syz-executor5(31802): getblk(): executed=9 bh_count=0 bh_state=0 syz-executor5(31802): getblk(): executed=9 bh_count=0 bh_state=0 INFO: task syz-executor0:31805 blocked for more than 140 seconds. Not tainted 4.20.0-rc5-next-20181207+ #163 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor5(31802): getblk(): executed=9 bh_count=0 bh_state=0 syz-executor0 D22840 31805 5989 0x00000004 Call Trace: context_switch kernel/sched/core.c:2831 [inline] __schedule+0xa41/0x21e0 kernel/sched/core.c:3472 schedule+0xef/0x370 kernel/sched/core.c:3516 __rwsem_down_read_failed_common kernel/locking/rwsem-xadd.c:280 [inline] rwsem_down_read_failed+0x371/0x710 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.11+0x207/0x2e0 fs/super.c:789 __get_super include/linux/spinlock.h:329 [inline] get_super+0x2d/0x50 fs/super.c:818 fsync_bdev+0x17/0xc0 fs/block_dev.c:495 invalidate_partition+0x35/0x60 block/genhd.c:1579 drop_partitions.isra.14+0xe1/0x200 block/partition-generic.c:443 rescan_partitions+0x72/0x8e0 block/partition-generic.c:516 __blkdev_reread_part+0x1ad/0x230 block/ioctl.c:173 blkdev_reread_part+0x26/0x40 block/ioctl.c:193 loop_reread_partitions+0x1c/0x40 drivers/block/loop.c:634 loop_set_status+0xcd8/0x10e0 drivers/block/loop.c:1269 loop_set_status64+0xaa/0x100 drivers/block/loop.c:1389 lo_ioctl+0x904/0x22a0 drivers/block/loop.c:1515 __blkdev_driver_ioctl block/ioctl.c:303 [inline] blkdev_ioctl+0x988/0x21a0 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+0x1de/0x1790 fs/ioctl.c:696 ksys_ioctl+0xa9/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+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457659 Code: Bad RIP value. RSP: 002b:00007f69405a0c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457659 RDX: 0000000020000380 RSI: 0000000000004c04 RDI: 0000000000000005 RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f69405a16d4 R13: 00000000004c095f R14: 00000000004d1aa8 R15: 00000000ffffffff INFO: task syz-executor0:31828 blocked for more than 140 seconds. Not tainted 4.20.0-rc5-next-20181207+ #163 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor0 D24240 31828 5989 0x00000004 Call Trace: context_switch kernel/sched/core.c:2831 [inline] __schedule+0xa41/0x21e0 kernel/sched/core.c:3472 schedule+0xef/0x370 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+0xaff/0x16f0 kernel/locking/mutex.c:1072 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087 __blkdev_get+0x19b/0x13b0 fs/block_dev.c:1492 blkdev_get+0xc1/0xb50 fs/block_dev.c:1643 blkdev_open+0x1fb/0x280 fs/block_dev.c:1801 do_dentry_open+0x499/0x1250 fs/open.c:771 vfs_open+0xa0/0xd0 fs/open.c:880 do_last fs/namei.c:3418 [inline] path_openat+0x12bc/0x5150 fs/namei.c:3534 do_filp_open+0x255/0x380 fs/namei.c:3564 do_sys_open+0x568/0x780 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+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x411291 Code: ba 83 ea 41 00 44 89 ee 48 89 df 31 c0 e8 d7 ed ff ff 48 8b 4c 24 58 ba 90 ea 41 00 44 89 ee 48 89 df 31 c0 e8 c0 ed ff ff 4c <89> f9 ba 9c ea 41 00 44 89 ee 48 89 df 31 c0 e8 ab ed ff ff 31 c0 RSP: 002b:00007f694055e7a0 EFLAGS: 00000293 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 6666666666666667 RCX: 0000000000411291 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007f694055e850 RBP: 000000000072c040 R08: 000000000000000f R09: 0000000000000000 R10: 00007f694055f9d0 R11: 0000000000000293 R12: 00007f694055f6d4 R13: 00000000004c57a5 R14: 00000000004d9db8 R15: 00000000ffffffff INFO: task syz-executor5:31797 blocked for more than 140 seconds. Not tainted 4.20.0-rc5-next-20181207+ #163 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor5 D23048 31797 6141 0x00000004 Call Trace: context_switch kernel/sched/core.c:2831 [inline] __schedule+0xa41/0x21e0 kernel/sched/core.c:3472 schedule+0xef/0x370 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+0xaff/0x16f0 kernel/locking/mutex.c:1072 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1087 blkdev_put+0x34/0x540 fs/block_dev.c:1842 blkdev_close+0x8b/0xb0 fs/block_dev.c:1891 __fput+0x3bc/0xa90 fs/file_table.c:279 ____fput+0x15/0x20 fs/file_table.c:312 task_work_run+0x1e8/0x2a0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop+0x318/0x380 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+0x6be/0x820 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x411111 Code: 75 14 b8 03 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 34 19 00 00 c3 48 83 ec 08 e8 0a fc ff ff 48 89 04 24 b8 03 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 53 fc ff ff 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:00007ffd769138b0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000005 RCX: 0000000000411111 RDX: 0000000000000000 RSI: 0000000000000abf RDI: 0000000000000004 RBP: 0000000000000000 R08: 0000000029006abe R09: 0000000029006ac2 R10: 00007ffd769137e0 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000001 R14: 00000000000008c5 R15: 0000000000000005 Showing all locks held in the system: 1 lock held by khungtaskd/1023: #0: 00000000a0490104 (rcu_read_lock){....}, at: debug_show_all_locks+0xd0/0x424 kernel/locking/lockdep.c:4379 1 lock held by rsyslogd/5838: #0: 00000000c63c7379 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x1bb/0x200 fs/file.c:766 2 locks held by getty/5950: #0: 000000008e75ed06 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:341 #1: 000000001698f01d (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ee0 drivers/tty/n_tty.c:2154 2 locks held by getty/5951: #0: 00000000b795734c (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:341 #1: 000000007f7683a7 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ee0 drivers/tty/n_tty.c:2154 2 locks held by getty/5952: #0: 00000000e896c1eb (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:341 #1: 0000000014a85629 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ee0 drivers/tty/n_tty.c:2154 2 locks held by getty/5953: #0: 00000000685247a7 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:341 #1: 000000004b156a75 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ee0 drivers/tty/n_tty.c:2154 2 locks held by getty/5954: #0: 00000000cf61ea5d (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:341 #1: 00000000fcd1b723 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ee0 drivers/tty/n_tty.c:2154 2 locks held by getty/5955: #0: 0000000058f73d56 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:341 #1: 000000009449cd37 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ee0 drivers/tty/n_tty.c:2154 2 locks held by getty/5956: #0: 00000000c2268a1e (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:341 #1: 00000000ac0c1a2e (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1ee0 drivers/tty/n_tty.c:2154 2 locks held by syz-executor0/31805: #0: 00000000b6a38b75 (&bdev->bd_mutex){+.+.}, at: blkdev_reread_part+0x1e/0x40 block/ioctl.c:192 #1: 0000000014fbb791 (&fc->fs_type->s_umount_key#79){.+.+}, at: __get_super.part.11+0x207/0x2e0 fs/super.c:789 1 lock held by syz-executor0/31828: #0: 00000000b6a38b75 (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x19b/0x13b0 fs/block_dev.c:1492 1 lock held by syz-executor5/31797: #0: 00000000b6a38b75 (&bdev->bd_mutex){+.+.}, at: blkdev_put+0x34/0x540 fs/block_dev.c:1842 2 locks held by syz-executor5/31802: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 1023 Comm: khungtaskd Not tainted 4.20.0-rc5-next-20181207+ #163 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+0x244/0x39d lib/dump_stack.c:113 nmi_cpu_backtrace.cold.2+0x5c/0xa1 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0x1e8/0x22a 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+0xb51/0x1060 kernel/hung_task.c:289 kthread+0x35a/0x440 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 3727 Comm: udevd Not tainted 4.20.0-rc5-next-20181207+ #163 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__read_once_size include/linux/compiler.h:182 [inline] RIP: 0010:check_kcov_mode kernel/kcov.c:69 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x26/0x50 kernel/kcov.c:101 Code: 5d c3 66 90 55 48 89 e5 48 8b 75 08 65 48 8b 04 25 40 ee 01 00 65 8b 15 08 f6 81 7e 81 e2 00 01 1f 00 75 2b 8b 90 d8 12 00 00 <83> fa 02 75 20 48 8b 88 e0 12 00 00 8b 80 dc 12 00 00 48 8b 11 48 RSP: 0018:ffff8881c2f1f4d8 EFLAGS: 00000046 RAX: ffff8881c2f16400 RBX: 1ffff110385e3ea0 RCX: ffffffff81862347 RDX: 0000000000000000 RSI: ffffffff81862351 RDI: 0000000000000005 RBP: ffff8881c2f1f4d8 R08: ffff8881c2f16400 R09: ffffed1038732e17 R10: ffffed1038732e17 R11: ffff8881c39970bf R12: 0000000000000000 R13: ffff8881c2f1f6b0 R14: ffff8881c2996580 R15: dffffc0000000000 FS: 00007f34f6e1d7a0(0000) GS:ffff8881dad00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffff600400 CR3: 00000001c385d000 CR4: 00000000001426e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Call Trace: trace_hardirqs_off+0x81/0x310 kernel/trace/trace_preemptirq.c:37 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:126 [inline] _raw_spin_lock_irq+0x3c/0x80 kernel/locking/spinlock.c:160 spin_lock_irq include/linux/spinlock.h:354 [inline] ep_scan_ready_list+0x534/0x1120 fs/eventpoll.c:710 ep_send_events fs/eventpoll.c:1715 [inline] ep_poll+0x367/0x15d0 fs/eventpoll.c:1852 do_epoll_wait+0x1b0/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+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f34f6531943 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:00007ffc6f0ade48 EFLAGS: 00000246 ORIG_RAX: 00000000000000e8 RAX: ffffffffffffffda RBX: 0000000000000bb8 RCX: 00007f34f6531943 RDX: 0000000000000008 RSI: 00007ffc6f0adf40 RDI: 000000000000000a RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000001 R10: 0000000000000bb8 R11: 0000000000000246 R12: 0000000000000003 R13: 0000000000000000 R14: 000000000234cbd0 R15: 00000000022de250