loop0: detected capacity change from 0 to 519 ------------[ cut here ]------------ Trying to write to read-only block-device loop0 (partno 0) WARNING: CPU: 0 PID: 8406 at block/blk-core.c:704 bio_check_ro block/blk-core.c:704 [inline] WARNING: CPU: 0 PID: 8406 at block/blk-core.c:704 submit_bio_checks+0x165c/0x1aa0 block/blk-core.c:817 Modules linked in: CPU: 0 PID: 8406 Comm: syz-executor384 Not tainted 5.12.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:bio_check_ro block/blk-core.c:704 [inline] RIP: 0010:submit_bio_checks+0x165c/0x1aa0 block/blk-core.c:817 Code: 00 00 45 0f b6 a4 24 e0 05 00 00 48 8d 74 24 60 48 89 ef e8 c6 3e fe ff 48 c7 c7 20 09 c0 89 48 89 c6 44 89 e2 e8 a0 0b 0f 05 <0f> 0b e9 36 f3 ff ff e8 18 14 c1 fd 0f 0b e9 bf f1 ff ff e8 0c 14 RSP: 0018:ffffc900016bf0d8 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff88814393e158 RCX: 0000000000000000 RDX: ffff888014b70000 RSI: ffffffff815c4cb5 RDI: fffff520002d7e0d RBP: ffff88801181cb40 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff815bda4e R11: 0000000000000000 R12: 0000000000000000 R13: ffff88801181cb50 R14: ffff8881427f4500 R15: ffff88814393e664 FS: 0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000562de50a1160 CR3: 0000000013dcb000 CR4: 0000000000350ee0 Call Trace: submit_bio_noacct+0x81/0xf20 block/blk-core.c:1032 submit_bio+0x263/0x5e0 block/blk-core.c:1118 submit_bh_wbc+0x5eb/0x7f0 fs/buffer.c:3055 __block_write_full_page+0x86c/0x1340 fs/buffer.c:1810 block_write_full_page+0x14d/0x190 fs/buffer.c:2981 __writepage+0x60/0x180 mm/page-writeback.c:2311 write_cache_pages+0x759/0x11a0 mm/page-writeback.c:2246 generic_writepages mm/page-writeback.c:2337 [inline] generic_writepages+0xe2/0x150 mm/page-writeback.c:2326 do_writepages+0xec/0x290 mm/page-writeback.c:2352 __filemap_fdatawrite_range+0x2a5/0x390 mm/filemap.c:424 filemap_write_and_wait_range mm/filemap.c:657 [inline] filemap_write_and_wait_range+0xe1/0x1c0 mm/filemap.c:651 filemap_write_and_wait include/linux/fs.h:2753 [inline] __sync_blockdev fs/block_dev.c:526 [inline] sync_blockdev fs/block_dev.c:535 [inline] __blkdev_put+0x6b7/0x800 fs/block_dev.c:1576 blkdev_put+0x92/0x580 fs/block_dev.c:1645 blkdev_close+0x8c/0xb0 fs/block_dev.c:1653 __fput+0x288/0x920 fs/file_table.c:280 task_work_run+0xdd/0x1a0 kernel/task_work.c:140 exit_task_work include/linux/task_work.h:30 [inline] do_exit+0xbfc/0x2a60 kernel/exit.c:825 do_group_exit+0x125/0x310 kernel/exit.c:922 get_signal+0x47f/0x2150 kernel/signal.c:2781 arch_do_signal_or_restart+0x2a8/0x1eb0 arch/x86/kernel/signal.c:789 handle_signal_work kernel/entry/common.c:147 [inline] exit_to_user_mode_loop kernel/entry/common.c:171 [inline] exit_to_user_mode_prepare+0x148/0x250 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:301 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x44afb9 Code: Unable to access opcode bytes at RIP 0x44af8f. RSP: 002b:00007f60d0e9e2f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00000000004cc4e0 RCX: 000000000044afb9 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00000000004cc4e8 RBP: 00000000004cc4ec R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000049c004 R13: 6f6f6c2f7665642f R14: f821000000006cf9 R15: 00000000004cc4e8