audit: type=1804 audit(1676553090.666:168): pid=13580 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.5" name="/root/syzkaller-testdir4226076408/syzkaller.kMpU9W/139/bus" dev="sda1" ino=14404 res=1 XFS (loop0): Mounting V4 Filesystem XFS (loop0): Ending clean mount XFS (loop0): Unmounting Filesystem INFO: task syz-executor.2:11648 blocked for more than 140 seconds. Not tainted 4.19.211-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.2 D30000 11648 8145 0x00000004 Call Trace: context_switch kernel/sched/core.c:2828 [inline] __schedule+0x887/0x2040 kernel/sched/core.c:3517 schedule+0x8d/0x1b0 kernel/sched/core.c:3561 __rwsem_down_read_failed_common kernel/locking/rwsem-xadd.c:292 [inline] rwsem_down_read_failed+0x20a/0x390 kernel/locking/rwsem-xadd.c:309 call_rwsem_down_read_failed+0x14/0x30 arch/x86/lib/rwsem.S:94 __down_read arch/x86/include/asm/rwsem.h:83 [inline] down_read+0x44/0x80 kernel/locking/rwsem.c:26 __get_super.part.0+0x209/0x2e0 fs/super.c:698 __get_super include/linux/spinlock.h:329 [inline] get_super+0x2b/0x50 fs/super.c:727 fsync_bdev+0x14/0xc0 fs/block_dev.c:483 blkdev_flushbuf block/ioctl.c:436 [inline] blkdev_ioctl+0x912/0x1a80 block/ioctl.c:521 block_ioctl+0xe9/0x130 fs/block_dev.c:1906 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705 __do_sys_ioctl fs/ioctl.c:712 [inline] __se_sys_ioctl fs/ioctl.c:710 [inline] __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f546c0fa0f9 Code: Bad RIP value. RSP: 002b:00007f546a64b168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f546c21a050 RCX: 00007f546c0fa0f9 RDX: 0000000000000000 RSI: 0000000000001261 RDI: 0000000000000003 RBP: 00007f546c155ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffccb17d8df R14: 00007f546a64b300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by khungtaskd/1570: #0: 0000000085c945ba (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441 1 lock held by in:imklog/7798: #0: 00000000dfca7bd4 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767 5 locks held by agetty/8019: 1 lock held by syz-executor.2/11641: 1 lock held by syz-executor.2/11648: #0: 0000000049c0d48e (&type->s_umount_key#52){++++}, at: __get_super.part.0+0x209/0x2e0 fs/super.c:698 2 locks held by syz-executor.2/12103: #0: 000000008cabf72a (&bdev->bd_fsfreeze_mutex){+.+.}, at: mount_bdev+0x90/0x3b0 fs/super.c:1125 #1: 0000000049c0d48e (&type->s_umount_key#52){++++}, at: grab_super+0xa2/0x350 fs/super.c:383 1 lock held by syz-executor.2/12104: #0: 0000000049c0d48e (&type->s_umount_key#52){++++}, at: __get_super.part.0+0x209/0x2e0 fs/super.c:698 2 locks held by syz-executor.2/13585: 1 lock held by systemd-udevd/13602: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 1570 Comm: khungtaskd Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 nmi_cpu_backtrace.cold+0x63/0xa2 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0x1a6/0x1f0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline] watchdog+0x991/0xe60 kernel/hung_task.c:287 kthread+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 11641 Comm: syz-executor.2 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 RIP: 0010:write_comp_data+0x23/0x70 kernel/kcov.c:122 Code: 1f 84 00 00 00 00 00 49 89 f1 49 89 fa 65 48 8b 34 25 c0 df 01 00 65 8b 05 7a 59 9f 7e a9 00 01 1f 00 75 4f 8b 86 60 13 00 00 <83> f8 03 75 44 48 8b 86 68 13 00 00 8b b6 64 13 00 00 48 8b 38 48 RSP: 0018:ffff88804fe476c0 EFLAGS: 00000246 RAX: 0000000000000002 RBX: 0000000000000200 RCX: ffffffff81b063c5 RDX: 0000000000000200 RSI: ffff88804f486600 RDI: 0000000000000005 RBP: 0000000000000009 R08: 0000000000000000 R09: 0000000000000100 R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000100 R13: 0000000000000001 R14: ffffffffffffffff R15: 0000000000400000 FS: 00007f546a66c700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffc81afac20 CR3: 00000000a8e8c000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: blksize_bits include/linux/blkdev.h:1662 [inline] blkdev_max_block fs/buffer.c:883 [inline] init_page_buffers+0x1f5/0x480 fs/buffer.c:899 grow_dev_page fs/buffer.c:955 [inline] grow_buffers fs/buffer.c:1017 [inline] __getblk_slow+0x7ee/0x9e0 fs/buffer.c:1044 __getblk_gfp fs/buffer.c:1321 [inline] __bread_gfp+0x218/0x300 fs/buffer.c:1366 sb_bread include/linux/buffer_head.h:309 [inline] udf_tread+0xe8/0x130 fs/udf/misc.c:44 udf_read_tagged+0x4e/0x530 fs/udf/misc.c:219 udf_check_anchor_block+0x1b4/0x610 fs/udf/super.c:1827 udf_scan_anchors+0x1b3/0x5f0 fs/udf/super.c:1867 udf_find_anchor fs/udf/super.c:1924 [inline] udf_load_vrs+0x633/0xbf0 fs/udf/super.c:1989 udf_fill_super+0x7d1/0x17a0 fs/udf/super.c:2184 mount_bdev+0x2fc/0x3b0 fs/super.c:1158 mount_fs+0xa3/0x310 fs/super.c:1261 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961 vfs_kern_mount fs/namespace.c:951 [inline] do_new_mount fs/namespace.c:2492 [inline] do_mount+0x115c/0x2f50 fs/namespace.c:2822 ksys_mount+0xcf/0x130 fs/namespace.c:3038 __do_sys_mount fs/namespace.c:3052 [inline] __se_sys_mount fs/namespace.c:3049 [inline] __x64_sys_mount+0xba/0x150 fs/namespace.c:3049 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f546c0fa0f9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f546a66c168 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f546c219f80 RCX: 00007f546c0fa0f9 RDX: 0000000020000040 RSI: 0000000020000140 RDI: 00000000200004c0 RBP: 00007f546c155ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffccb17d8df R14: 00007f546a66c300 R15: 0000000000022000