loop_set_status: loop0 () has still dirty pages (nrpages=1) ------------[ cut here ]------------ Trying to write to read-only block-device loop0 (partno 0) WARNING: CPU: 0 PID: 9456 at block/blk-core.c:705 bio_check_ro block/blk-core.c:705 [inline] WARNING: CPU: 0 PID: 9456 at block/blk-core.c:705 submit_bio_checks+0x14db/0x18d0 block/blk-core.c:833 Modules linked in: CPU: 0 PID: 9456 Comm: syz-executor.0 Not tainted 5.10.45 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 RIP: 0010:bio_check_ro block/blk-core.c:705 [inline] RIP: 0010:submit_bio_checks+0x14db/0x18d0 block/blk-core.c:833 Code: 03 00 00 45 8b a4 24 64 05 00 00 48 89 ef 48 8d 74 24 50 e8 47 37 fe ff 48 c7 c7 e0 4d 3a 84 48 89 c6 44 89 e2 e8 f5 2d d3 01 <0f> 0b 48 b8 00 00 00 00 00 fc ff df 4c 89 fa 48 c1 ea 03 80 3c 02 RSP: 0018:ffff8880424977e8 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 1ffff11008492f03 RCX: 0000000000000000 RDX: 0000000000040000 RSI: ffffffff812943f3 RDI: ffffed1008492eef RBP: ffff888042b94100 R08: 0000000000000001 R09: ffff88806ce2facf R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000 R13: ffff88800d62bc50 R14: ffff888042b94110 R15: ffff888042b94108 FS: 00007f54fc8f4700(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f54fc8d3718 CR3: 0000000042da8000 CR4: 0000000000350ef0 Call Trace: submit_bio_noacct+0x7a/0xce0 block/blk-core.c:1045 submit_bio+0xf3/0x4e0 block/blk-core.c:1130 submit_bh_wbc.constprop.0+0x580/0x770 fs/buffer.c:3054 submit_bh fs/buffer.c:3060 [inline] __sync_dirty_buffer+0x16a/0x3f0 fs/buffer.c:3155 fat_set_state+0x22b/0x310 fs/fat/inode.c:708 fat_fill_super+0x22a2/0x36e0 fs/fat/inode.c:1884 mount_bdev+0x331/0x3f0 fs/super.c:1419 legacy_get_tree+0x105/0x220 fs/fs_context.c:592 vfs_get_tree+0x8e/0x2f0 fs/super.c:1549 do_new_mount fs/namespace.c:2881 [inline] path_mount+0x139a/0x2080 fs/namespace.c:3211 do_mount fs/namespace.c:3224 [inline] __do_sys_mount fs/namespace.c:3432 [inline] __se_sys_mount fs/namespace.c:3409 [inline] __x64_sys_mount+0x27e/0x300 fs/namespace.c:3409 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x467b2a Code: 48 c7 c2 bc ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f54fc8f3fa8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 0000000020000200 RCX: 0000000000467b2a RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f54fc8f4000 RBP: 00007f54fc8f4040 R08: 00007f54fc8f4040 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000 R13: 0000000020000100 R14: 00007f54fc8f4000 R15: 0000000020000140 irq event stamp: 1657 hardirqs last enabled at (1667): [] console_unlock+0x929/0xb30 kernel/printk/printk.c:2552 hardirqs last disabled at (1676): [] console_unlock+0x835/0xb30 kernel/printk/printk.c:2467 softirqs last enabled at (1006): [] asm_call_irq_on_stack+0x12/0x20 softirqs last disabled at (951): [] asm_call_irq_on_stack+0x12/0x20 ---[ end trace 880277442f0cef67 ]--- loop_set_status: loop0 () has still dirty pages (nrpages=3) loop_set_status: loop0 () has still dirty pages (nrpages=1) loop_set_status: loop0 () has still dirty pages (nrpages=1) loop_set_status: loop0 () has still dirty pages (nrpages=1) FAT-fs (loop4): Directory bread(block 6) failed FAT-fs (loop4): Directory bread(block 6) failed loop_set_status: loop0 () has still dirty pages (nrpages=1) loop_set_status: loop0 () has still dirty pages (nrpages=1) FAT-fs (loop7): invalid media value (0x00) FAT-fs (loop7): Can't find a valid FAT filesystem loop_set_status: loop0 () has still dirty pages (nrpages=1) blk_update_request: I/O error, dev loop0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 FAT-fs (loop0): unable to read boot sector to mark fs as dirty