INFO: task syz-executor2:8448 blocked for more than 140 seconds. Not tainted 5.0.0-rc5 #60 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor2 D28288 8448 7528 0x00000004 Call Trace: context_switch kernel/sched/core.c:2844 [inline] __schedule+0x817/0x1cc0 kernel/sched/core.c:3485 schedule+0x92/0x180 kernel/sched/core.c:3529 __rwsem_down_read_failed_common kernel/locking/rwsem-xadd.c:287 [inline] rwsem_down_read_failed+0x213/0x420 kernel/locking/rwsem-xadd.c:304 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:699 __get_super include/linux/spinlock.h:329 [inline] get_super+0x2e/0x50 fs/super.c:728 fsync_bdev+0x19/0xd0 fs/block_dev.c:506 invalidate_partition+0x36/0x60 block/genhd.c:1579 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:1282 loop_set_status64+0xc2/0x120 drivers/block/loop.c:1402 lo_ioctl+0x43b/0x20d0 drivers/block/loop.c:1545 __blkdev_driver_ioctl block/ioctl.c:303 [inline] blkdev_ioctl+0xee8/0x1c40 block/ioctl.c:605 block_ioctl+0xee/0x130 fs/block_dev.c:1914 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:0x457ca7 Code: Bad RIP value. RSP: 002b:00007f284c39ea18 EFLAGS: 00000202 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f284c39f6d4 RCX: 0000000000457ca7 RDX: 00007f284c39eab0 RSI: 0000000000004c04 RDI: 0000000000000006 RBP: 0000000000000001 R08: 0000000000000000 R09: 000000000000000a R10: 0000000000000075 R11: 0000000000000202 R12: 00007f284c39f6d4 R13: 0000000000000005 R14: 0000000000000006 R15: 0000000000000001 INFO: task blkid:8454 blocked for more than 140 seconds. Not tainted 5.0.0-rc5 #60 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. blkid D27984 8454 4160 0x00000004 Call Trace: context_switch kernel/sched/core.c:2844 [inline] __schedule+0x817/0x1cc0 kernel/sched/core.c:3485 schedule+0x92/0x180 kernel/sched/core.c:3529 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3587 __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:1847 blkdev_close+0x8b/0xb0 fs/block_dev.c:1896 __fput+0x2df/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:0x7f1b227a32b0 Code: Bad RIP value. RSP: 002b:00007ffc75c98bb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f1b227a32b0 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000001c1c030 R13: 0000000000000000 R14: 0000000000000003 R15: 0000000000000005 Showing all locks held in the system: 1 lock held by khungtaskd/1041: #0: 000000004193b629 (rcu_read_lock){....}, at: debug_show_all_locks+0x5f/0x27e kernel/locking/lockdep.c:4389 1 lock held by rsyslogd/7396: #0: 000000007079392a (&f->f_pos_lock){+.+.}, at: __fdget_pos+0xee/0x110 fs/file.c:795 2 locks held by getty/7486: #0: 00000000cb179559 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 0000000085f31c51 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2154 2 locks held by getty/7487: #0: 0000000073691712 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 0000000086da404f (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2154 2 locks held by getty/7488: #0: 000000006c305e55 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 00000000d83a0675 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2154 2 locks held by getty/7489: #0: 00000000809277e0 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 0000000049eb71a5 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2154 2 locks held by getty/7490: #0: 0000000000493f6a (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 000000009d4f6367 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2154 2 locks held by getty/7491: #0: 00000000401f524d (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 00000000f86df425 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2154 2 locks held by getty/7492: #0: 00000000c5d266cc (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:341 #1: 000000006a395126 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x232/0x1b70 drivers/tty/n_tty.c:2154 2 locks held by syz-executor2/8448: #0: 0000000083c2add5 (&bdev->bd_mutex){+.+.}, at: blkdev_reread_part+0x1f/0x40 block/ioctl.c:192 #1: 0000000018604c4f (&type->s_umount_key#52){++++}, at: __get_super.part.0+0x203/0x2e0 fs/super.c:699 1 lock held by syz-executor1/8450: 1 lock held by blkid/8454: #0: 0000000083c2add5 (&bdev->bd_mutex){+.+.}, at: blkdev_put+0x34/0x560 fs/block_dev.c:1847 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 1041 Comm: khungtaskd Not tainted 5.0.0-rc5 #60 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:203 [inline] watchdog+0x9df/0xee0 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 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 8450 Comm: syz-executor1 Not tainted 5.0.0-rc5 #60 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:check_memory_region_inline mm/kasan/generic.c:173 [inline] RIP: 0010:check_memory_region+0x0/0x190 mm/kasan/generic.c:191 Code: 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 f2 be f8 00 00 00 48 89 e5 e8 8f fe 59 05 5d c3 0f 1f 00 66 2e 0f 1f 84 00 00 00 00 00 <48> 85 f6 0f 84 21 01 00 00 48 b8 ff ff ff ff ff 7f ff ff 55 0f b6 RSP: 0018:ffff888051dbf4c8 EFLAGS: 00000246 RAX: 0000000000000003 RBX: ffffea000176fc40 RCX: ffffffff81898c65 RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffffea000176fc74 RBP: ffff888051dbf4d0 R08: ffff888051db2280 R09: fffff940002edf8f R10: fffff940002edf8e R11: ffffea000176fc77 R12: ffffea000176fc74 R13: ffff888051dbf5b0 R14: ffffea000176fc40 R15: 0000000000000002 FS: 00007f80a25e5700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffff600400 CR3: 00000000a62ce000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: atomic_try_cmpxchg include/asm-generic/atomic-instrumented.h:71 [inline] atomic_fetch_add_unless include/linux/atomic.h:580 [inline] atomic_add_unless include/linux/atomic.h:597 [inline] page_ref_add_unless include/linux/page_ref.h:157 [inline] get_page_unless_zero include/linux/mm.h:558 [inline] page_cache_get_speculative include/linux/pagemap.h:186 [inline] find_get_entry+0x255/0x8d0 mm/filemap.c:1487 pagecache_get_page+0x4a/0x740 mm/filemap.c:1579 find_or_create_page include/linux/pagemap.h:322 [inline] grow_dev_page fs/buffer.c:947 [inline] grow_buffers fs/buffer.c:1016 [inline] __getblk_slow fs/buffer.c:1043 [inline] __getblk_gfp+0x27e/0x960 fs/buffer.c:1320 __bread_gfp+0x2f/0x300 fs/buffer.c:1354 sb_bread include/linux/buffer_head.h:307 [inline] udf_tread+0xf1/0x140 fs/udf/misc.c:44 udf_read_tagged+0x50/0x530 fs/udf/misc.c:210 udf_check_anchor_block+0x1ef/0x680 fs/udf/super.c:1775 udf_scan_anchors+0x1cf/0x680 fs/udf/super.c:1815 udf_find_anchor fs/udf/super.c:1872 [inline] udf_load_vrs+0x67f/0xc80 fs/udf/super.c:1937 udf_fill_super+0x7d8/0x16d1 fs/udf/super.c:2132 mount_bdev+0x307/0x3c0 fs/super.c:1159 udf_mount+0x35/0x40 fs/udf/super.c:131 mount_fs+0x106/0x3ff fs/super.c:1258 vfs_kern_mount.part.0+0x6f/0x410 fs/namespace.c:959 vfs_kern_mount fs/namespace.c:949 [inline] do_new_mount fs/namespace.c:2513 [inline] do_mount+0x581/0x2d30 fs/namespace.c:2847 ksys_mount+0xdb/0x150 fs/namespace.c:3063 __do_sys_mount fs/namespace.c:3077 [inline] __se_sys_mount fs/namespace.c:3074 [inline] __x64_sys_mount+0xbe/0x150 fs/namespace.c:3074 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457e39 Code: ad b8 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 7b b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f80a25e4c78 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 0000000000457e39 RDX: 0000000020000100 RSI: 0000000020000080 RDI: 00000000200002c0 RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f80a25e56d4 R13: 00000000004c3ba5 R14: 00000000004d6c50 R15: 00000000ffffffff