------------[ cut here ]------------ Trying to write to read-only block-device loop0 (partno 0) WARNING: CPU: 1 PID: 8381 at block/blk-core.c:706 bio_check_ro block/blk-core.c:704 [inline] WARNING: CPU: 1 PID: 8381 at block/blk-core.c:706 submit_bio_checks+0x110b/0x1600 block/blk-core.c:817 Modules linked in: CPU: 1 PID: 8381 Comm: syz-executor987 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+0x110b/0x1600 block/blk-core.c:817 Code: 03 48 b9 00 00 00 00 00 fc ff df 8a 04 08 84 c0 0f 85 e8 04 00 00 0f b6 13 48 c7 c7 e0 3b 0f 8a 4c 89 f6 31 c0 e8 f5 e4 88 fd <0f> 0b 4c 8b 6c 24 10 49 be 00 00 00 00 00 fc ff df e9 bd f2 ff ff RSP: 0018:ffffc9000166f3c0 EFLAGS: 00010246 RAX: 11bd8c14abd8f300 RBX: ffff888016af4ae0 RCX: ffff88801e700000 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffc9000166f480 R08: ffffffff8160b632 R09: ffffed10173a5fe8 R10: ffffed10173a5fe8 R11: 0000000000000000 R12: ffff888022727788 R13: ffff888022727780 R14: ffffc9000166f420 R15: 1ffff110044e4ef1 FS: 0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055cc83c47160 CR3: 000000000c48e000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: submit_bio_noacct+0x36/0x1020 block/blk-core.c:1032 submit_bio+0x1a4/0x640 block/blk-core.c:1118 __block_write_full_page+0x8fb/0x10a0 fs/buffer.c:1810 __writepage+0x60/0x120 mm/page-writeback.c:2311 write_cache_pages+0x8b7/0xdc0 mm/page-writeback.c:2246 generic_writepages+0x8f/0xd0 mm/page-writeback.c:2337 do_writepages+0xda/0x1f0 mm/page-writeback.c:2352 __filemap_fdatawrite_range+0x2a4/0x350 mm/filemap.c:424 filemap_write_and_wait_range+0xca/0x160 mm/filemap.c:657 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+0x103/0x670 fs/block_dev.c:1576 blkdev_put+0x2cd/0x440 fs/block_dev.c:1645 blkdev_close+0x7a/0xa0 fs/block_dev.c:1653 __fput+0x352/0x7b0 fs/file_table.c:280 task_work_run+0x146/0x1c0 kernel/task_work.c:140 exit_task_work include/linux/task_work.h:30 [inline] do_exit+0x6b2/0x2290 kernel/exit.c:825 do_group_exit+0x168/0x2d0 kernel/exit.c:922 get_signal+0x186f/0x2030 kernel/signal.c:2781 arch_do_signal_or_restart+0x41/0x620 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+0xac/0x1e0 kernel/entry/common.c:208 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline] syscall_exit_to_user_mode+0x26/0x70 kernel/entry/common.c:301 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x44a6a9 Code: Unable to access opcode bytes at RIP 0x44a67f. RSP: 002b:00007f35af3802f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00000000004cb4f0 RCX: 000000000044a6a9 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00000000004cb4f8 RBP: 00000000004cb4fc R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000049b004 R13: 6f6f6c2f7665642f R14: f821000000006cf9 R15: 00000000004cb4f8