syz-executor0(8035): getblk(): executed=9 bh_count=0 bh_state=0 syz-executor0(8035): getblk(): executed=9 bh_count=0 bh_state=0 syz-executor0(8035): getblk(): executed=9 bh_count=0 bh_state=0 syz-executor0(8035): getblk(): executed=9 bh_count=0 bh_state=0 syz-executor0(8035): getblk(): executed=9 bh_count=0 bh_state=0 INFO: task syz-executor4:8036 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-executor4 D24840 8036 7427 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(8035): 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: Bad RIP value. RSP: 002b:00007f6b086bcc78 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: 00007f6b086bd6d4 R13: 00000000004c1290 R14: 00000000004d2c80 R15: 00000000ffffffff INFO: task blkid:8038 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. blkid D23112 8038 7386 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:0x7fb4a1d692b0 Code: Bad RIP value. RSP: 002b:00007fff13049098 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 00007fb4a20411ee RCX: 00007fb4a1d692b0 RDX: 00007fb4a201fdf0 RSI: 0000000000000017 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000f1e170 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000f1e030 R13: 0000000000000000 R14: 0000000000000003 R15: 0000000000000003 Showing all locks held in the system: 1 lock held by khungtaskd/1040: #0: 000000006ec65c8e (rcu_read_lock){....}, at: debug_show_all_locks+0xc6/0x41d kernel/locking/lockdep.c:4389 1 lock held by rsyslogd/7288: #0: 00000000309e5d33 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x1b3/0x1f0 fs/file.c:795 2 locks held by getty/7379: #0: 000000003af2c487 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 000000000d9b0d88 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154 2 locks held by getty/7380: #0: 00000000d418d886 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 000000003e9f0306 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154 2 locks held by getty/7381: #0: 00000000d0618525 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 000000004f0b7a4f (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154 2 locks held by getty/7382: #0: 00000000546bf29c (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 00000000c9c0143c (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154 2 locks held by getty/7383: #0: 000000007c00e5e0 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 00000000eba8b080 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154 2 locks held by getty/7384: #0: 00000000d12a9941 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 00000000255ea868 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154 2 locks held by getty/7385: #0: 0000000091accfae (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 00000000cb80941a (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x30a/0x1eb0 drivers/tty/n_tty.c:2154 2 locks held by syz-executor4/8036: #0: 000000001e7cfa45 (&bdev->bd_mutex){+.+.}, at: blkdev_reread_part+0x1f/0x40 block/ioctl.c:192 #1: 0000000088896ec4 (&fc->fs_type->s_umount_key#55){.+.+}, at: __get_super.part.0+0x203/0x2e0 fs/super.c:789 1 lock held by syz-executor4/8091: #0: 000000001e7cfa45 (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x19b/0x1400 fs/block_dev.c:1492 1 lock held by syz-executor0/8033: #0: 000000001e7cfa45 (&bdev->bd_mutex){+.+.}, at: blkdev_put+0x34/0x560 fs/block_dev.c:1842 2 locks held by syz-executor0/8035: 1 lock held by syz-executor0/8089: #0: 000000001e7cfa45 (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x19b/0x1400 fs/block_dev.c:1492 1 lock held by blkid/8038: #0: 000000001e7cfa45 (&bdev->bd_mutex){+.+.}, at: blkdev_put+0x34/0x560 fs/block_dev.c:1842 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 1040 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: NMI backtrace for cpu 1 CPU: 1 PID: 8035 Comm: syz-executor0 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:debug_lockdep_rcu_enabled.part.0+0x41/0x60 kernel/rcu/update.c:248 Code: 00 48 8d bb 7c 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 7c 08 00 00 <31> c0 5b 5d 85 d2 0f 94 c0 c3 e8 50 c1 5a 00 eb e9 0f 1f 40 00 66 RSP: 0018:ffff888053e57340 EFLAGS: 00000246 RAX: 0000000000000007 RBX: ffff88805300c380 RCX: 1ffffffff14b7857 RDX: 0000000000000000 RSI: ffffffff81a001b2 RDI: ffff88805300cbfc RBP: ffff888053e57348 R08: ffff88805300c380 R09: ffffed100a7cae80 R10: ffffed100a7cae7f R11: 0000000000000003 R12: ffffea00022d6708 R13: ffff888053e57588 R14: ffffea00022d6700 R15: dffffc0000000000 FS: 00007febf8fee700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffff600400 CR3: 000000008d296000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: debug_lockdep_rcu_enabled+0x71/0xa0 kernel/rcu/update.c:248 xa_entry include/linux/xarray.h:902 [inline] xas_reload include/linux/xarray.h:1250 [inline] find_get_entry+0x91a/0x1090 mm/filemap.c:1501 pagecache_get_page+0xe5/0x1070 mm/filemap.c:1582 find_get_page_flags include/linux/pagemap.h:279 [inline] __find_get_block_slow fs/buffer.c:205 [inline] __find_get_block fs/buffer.c:1325 [inline] __find_get_block+0x615/0xf20 fs/buffer.c:1319 __getblk_slow fs/buffer.c:1058 [inline] __getblk_gfp+0x3c5/0x1130 fs/buffer.c:1351 __bread_gfp+0x2f/0x300 fs/buffer.c:1385 sb_bread include/linux/buffer_head.h:307 [inline] bfs_fill_super+0x6cd/0xe40 fs/bfs/inode.c:383 mount_bdev+0x307/0x3c0 fs/super.c:1344 bfs_mount+0x35/0x40 fs/bfs/inode.c:459 legacy_get_tree+0x10a/0x220 fs/fs_context.c:641 vfs_get_tree+0x1b0/0x610 fs/super.c:1496 do_new_mount fs/namespace.c:2748 [inline] do_mount+0x1613/0x2040 fs/namespace.c:3070 ksys_mount+0xdb/0x150 fs/namespace.c:3286 __do_sys_mount fs/namespace.c:3300 [inline] __se_sys_mount fs/namespace.c:3297 [inline] __x64_sys_mount+0xbe/0x150 fs/namespace.c:3297 do_syscall_64+0x1a3/0x800 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45a93a Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 ed 8c fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 ca 8c fb ff c3 66 0f 1f 84 00 00 00 00 00 RSP: 002b:00007febf8feda88 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007febf8fedb30 RCX: 000000000045a93a RDX: 00007febf8fedad0 RSI: 0000000020000b40 RDI: 00007febf8fedaf0 RBP: 0000000020000b40 R08: 00007febf8fedb30 R09: 00007febf8fedad0 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000006 R13: 0000000000000000 R14: 00000000004db2d8 R15: 00000000ffffffff