syz-executor0(7777): getblk(): executed=9 bh_count=0 bh_state=0 syz-executor0(7777): getblk(): executed=9 bh_count=0 bh_state=0 syz-executor0(7777): getblk(): executed=9 bh_count=0 bh_state=0 syz-executor0(7777): getblk(): executed=9 bh_count=0 bh_state=0 syz-executor0(7777): getblk(): executed=9 bh_count=0 bh_state=0 INFO: task syz-executor0:7776 blocked for more than 140 seconds. Not tainted 4.20.0-rc1-next-20181109+ #110 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor0 D23048 7776 6038 0x00000004 Call Trace: context_switch kernel/sched/core.c:2831 [inline] __schedule+0x8cf/0x21d0 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:1818 blkdev_close+0x8b/0xb0 fs/block_dev.c:1867 __fput+0x3bc/0xa70 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:0x411021 Code: 4c 89 f6 48 89 c7 48 89 ca 48 89 4c 24 10 4c 89 54 24 08 e8 b1 a3 ff ff 48 8b 4c 24 10 41 c6 04 0f 00 4c 8b 7c 24 28 4c 8b 54 <24> 08 45 0f b6 37 e9 db fc ff ff 0f 1f 40 00 41 80 f8 29 74 7f ba RSP: 002b:00007ffc9374a940 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000005 RCX: 0000000000411021 RDX: 0000000000000000 RSI: ffffffff87cba5d4 RDI: 0000000000000004 RBP: 0000000000000000 R08: ffffffff8139bdc9 R09: 00000000756d66b3 R10: 00007ffc9374a870 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000001 R14: 0000000000000009 R15: 0000000000000000 INFO: task syz-executor5:7783 blocked for more than 140 seconds. Not tainted 4.20.0-rc1-next-20181109+ #110 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor5 D23144 7783 6222 0x00000004 Call Trace: context_switch kernel/sched/core.c:2831 [inline] __schedule+0x8cf/0x21d0 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:471 invalidate_partition+0x35/0x60 block/genhd.c:1570 drop_partitions.isra.14+0xe1/0x200 block/partition-generic.c:445 rescan_partitions+0x72/0x8e0 block/partition-generic.c:518 __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:633 loop_set_status+0xcd8/0x10e0 drivers/block/loop.c:1268 loop_set_status64+0xaa/0x100 drivers/block/loop.c:1388 lo_ioctl+0x904/0x22a0 drivers/block/loop.c:1514 __blkdev_driver_ioctl block/ioctl.c:303 [inline] blkdev_ioctl+0x98e/0x21b0 block/ioctl.c:605 block_ioctl+0xee/0x130 fs/block_dev.c:1885 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:509 [inline] do_vfs_ioctl+0x1de/0x1790 fs/ioctl.c:696 syz-executor0(7777): getblk(): executed=9 bh_count=0 bh_state=0 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:0x457569 Code: Bad RIP value. RSP: 002b:00007f3510af5c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457569 RDX: 0000000020000380 RSI: 0000000000004c04 RDI: 0000000000000004 RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f3510af66d4 R13: 00000000004c07a8 R14: 00000000004d10e8 R15: 00000000ffffffff INFO: task blkid:7795 blocked for more than 140 seconds. Not tainted 4.20.0-rc1-next-20181109+ #110 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. blkid D23120 7795 6006 0x00000004 Call Trace: context_switch kernel/sched/core.c:2831 [inline] __schedule+0x8cf/0x21d0 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:1468 blkdev_get+0xc1/0xb50 fs/block_dev.c:1619 blkdev_open+0x1fb/0x280 fs/block_dev.c:1777 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/0x700 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:0x7f41d5562120 Code: Bad RIP value. RSP: 002b:00007ffdd94552d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f41d5562120 RDX: 00007ffdd9456f41 RSI: 0000000000000000 RDI: 00007ffdd9456f41 RBP: 0000000000000000 R08: 0000000000000078 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000b0a030 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000005 Showing all locks held in the system: 1 lock held by khungtaskd/1010: #0: 0000000055f44ca9 (rcu_read_lock){....}, at: debug_show_all_locks+0xd0/0x424 kernel/locking/lockdep.c:4379 1 lock held by rsyslogd/5909: #0: 000000002a432a9b (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x1bb/0x200 fs/file.c:766 2 locks held by getty/5999: #0: 000000009d32545f (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353 #1: 00000000da6d253e (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1e80 drivers/tty/n_tty.c:2154 2 locks held by getty/6000: #0: 00000000442fe9b4 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353 #1: 0000000066badecb (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1e80 drivers/tty/n_tty.c:2154 2 locks held by getty/6001: #0: 000000009ee71bde (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353 #1: 00000000dabe5541 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1e80 drivers/tty/n_tty.c:2154 2 locks held by getty/6002: #0: 00000000c0b6f3c5 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353 #1: 000000001f08fd2f (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1e80 drivers/tty/n_tty.c:2154 2 locks held by getty/6003: #0: 00000000e2f86068 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353 #1: 000000002b0b00ac (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1e80 drivers/tty/n_tty.c:2154 2 locks held by getty/6004: #0: 00000000b0c1640b (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353 #1: 00000000fa8b9ff9 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1e80 drivers/tty/n_tty.c:2154 2 locks held by getty/6005: #0: 00000000dfe252eb (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:353 #1: 00000000a229ec70 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x335/0x1e80 drivers/tty/n_tty.c:2154 1 lock held by syz-executor0/7776: #0: 00000000367972ae (&bdev->bd_mutex){+.+.}, at: blkdev_put+0x34/0x540 fs/block_dev.c:1818 2 locks held by syz-executor0/7777: 2 locks held by syz-executor5/7783: #0: 00000000367972ae (&bdev->bd_mutex){+.+.}, at: blkdev_reread_part+0x1e/0x40 block/ioctl.c:192 #1: 00000000632a5a56 (&fc->fs_type->s_umount_key#46){++++}, at: __get_super.part.11+0x207/0x2e0 fs/super.c:789 1 lock held by blkid/7795: #0: 00000000367972ae (&bdev->bd_mutex){+.+.}, at: __blkdev_get+0x19b/0x13b0 fs/block_dev.c:1468 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 1010 Comm: khungtaskd Not tainted 4.20.0-rc1-next-20181109+ #110 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:144 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:205 [inline] watchdog+0xb4c/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 1 to CPUs 0: INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 1.184 msecs NMI backtrace for cpu 0 CPU: 0 PID: 7777 Comm: syz-executor0 Not tainted 4.20.0-rc1-next-20181109+ #110 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:check_memory_region+0x21/0x1b0 mm/kasan/kasan.c:266 Code: 2e 0f 1f 84 00 00 00 00 00 48 85 f6 0f 84 3c 01 00 00 48 b8 ff ff ff ff ff 7f ff ff 55 0f b6 d2 48 39 c7 48 89 e5 41 55 41 54 <53> 0f 86 11 01 00 00 4c 8d 5c 37 ff 48 89 fb 49 b9 00 00 00 00 00 RSP: 0018:ffff880193ef7240 EFLAGS: 00000212 RAX: ffff7fffffffffff RBX: ffffea0006c39074 RCX: ffffffff81e1e081 RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffea0006c39074 RBP: ffff880193ef7250 R08: ffff8801943cc240 R09: ffffed003b5c5b67 R10: 0000000000000002 R11: ffff8801dae2db3b R12: 0000000000000001 R13: ffffea0006c39040 R14: dffffc0000000000 R15: ffff880193ef7380 FS: 00007f40c6425700(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffff600400 CR3: 00000001bc85b000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kasan_check_read+0x11/0x20 mm/kasan/kasan.c:272 atomic_read include/asm-generic/atomic-instrumented.h:26 [inline] page_ref_count include/linux/page_ref.h:67 [inline] put_page_testzero include/linux/mm.h:519 [inline] put_page include/linux/mm.h:962 [inline] grow_dev_page fs/buffer.c:995 [inline] grow_buffers fs/buffer.c:1029 [inline] __getblk_slow fs/buffer.c:1062 [inline] __getblk_gfp+0xa91/0x1030 fs/buffer.c:1351 __bread_gfp+0x2d/0x310 fs/buffer.c:1385 sb_bread include/linux/buffer_head.h:307 [inline] fat__get_entry+0x5a6/0xa40 fs/fat/dir.c:101 fat_get_entry fs/fat/dir.c:129 [inline] fat_get_short_entry+0x13c/0x2c0 fs/fat/dir.c:878 fat_subdirs+0x142/0x290 fs/fat/dir.c:944 fat_read_root fs/fat/inode.c:1417 [inline] fat_fill_super+0x2a9f/0x4310 fs/fat/inode.c:1852 msdos_fill_super+0x2e/0x40 fs/fat/namei_msdos.c:653 mount_bdev+0x314/0x3e0 fs/super.c:1356 msdos_mount+0x3c/0x50 fs/fat/namei_msdos.c:660 legacy_get_tree+0x12f/0x260 fs/fs_context.c:714 vfs_get_tree+0x1cb/0x5c0 fs/super.c:1795 do_new_mount fs/namespace.c:2716 [inline] do_mount+0x82a/0x1ff0 fs/namespace.c:3042 ksys_mount+0x12d/0x140 fs/namespace.c:3258 __do_sys_mount fs/namespace.c:3272 [inline] __se_sys_mount fs/namespace.c:3269 [inline] __x64_sys_mount+0xbe/0x150 fs/namespace.c:3269 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459fda Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 7d 89 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 5a 89 fb ff c3 66 0f 1f 84 00 00 00 00 00 RSP: 002b:00007f40c6424a88 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f40c6424b30 RCX: 0000000000459fda RDX: 00007f40c6424ad0 RSI: 0000000020000280 RDI: 00007f40c6424af0 RBP: 0000000020000280 R08: 00007f40c6424b30 R09: 00007f40c6424ad0 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000003 R13: 0000000000000000 R14: 00000000004d8c90 R15: 00000000ffffffff