------------[ cut here ]------------ Trying to write to read-only block-device loop0 (partno 0) WARNING: CPU: 0 PID: 8771 at block/blk-core.c:688 bio_check_ro block/blk-core.c:688 [inline] WARNING: CPU: 0 PID: 8771 at block/blk-core.c:688 submit_bio_checks+0x163a/0x1ac0 block/blk-core.c:801 Modules linked in: CPU: 0 PID: 8771 Comm: syz-executor695 Not tainted 5.14.0-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:688 [inline] RIP: 0010:submit_bio_checks+0x163a/0x1ac0 block/blk-core.c:801 Code: 00 00 45 0f b6 a4 24 88 05 00 00 48 8d 74 24 60 48 89 ef e8 a8 21 fe ff 48 c7 c7 20 f8 e1 89 48 89 c6 44 89 e2 e8 13 9a 2e 05 <0f> 0b e9 86 f3 ff ff e8 5a 37 b3 fd e8 a5 23 71 05 31 ff 89 c3 89 RSP: 0018:ffffc900023471b0 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff888146718000 RCX: 0000000000000000 RDX: ffff888074c00000 RSI: ffffffff815dc9b8 RDI: fffff52000468e28 RBP: ffff88801c874140 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff815d675e R11: 0000000000000000 R12: 0000000000000000 R13: ffff88801c874150 R14: ffff88801a5a4680 R15: ffff888146718574 FS: 0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005562909336b0 CR3: 000000001ff4b000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: submit_bio_noacct+0x81/0xf20 block/blk-core.c:1016 submit_bio+0x1ea/0x470 block/blk-core.c:1093 submit_bh_wbc+0x5eb/0x7f0 fs/buffer.c:3050 __block_write_full_page+0x879/0x1360 fs/buffer.c:1805 block_write_full_page+0x14d/0x190 fs/buffer.c:2976 __writepage+0x60/0x180 mm/page-writeback.c:2320 write_cache_pages+0x754/0x11c0 mm/page-writeback.c:2255 generic_writepages mm/page-writeback.c:2346 [inline] generic_writepages+0xe2/0x150 mm/page-writeback.c:2335 do_writepages+0x1ab/0x7b0 mm/page-writeback.c:2364 filemap_fdatawrite_wbc mm/filemap.c:400 [inline] filemap_fdatawrite_wbc+0x1d6/0x2f0 mm/filemap.c:390 __filemap_fdatawrite_range mm/filemap.c:433 [inline] filemap_write_and_wait_range mm/filemap.c:704 [inline] filemap_write_and_wait_range+0xe1/0x1a0 mm/filemap.c:698 filemap_write_and_wait include/linux/fs.h:2865 [inline] __sync_blockdev fs/block_dev.c:529 [inline] sync_blockdev fs/block_dev.c:538 [inline] blkdev_put+0x753/0x9e0 fs/block_dev.c:1349 blkdev_close+0x8c/0xb0 fs/block_dev.c:1403 __fput+0x288/0x9f0 fs/file_table.c:280 task_work_run+0xdd/0x1a0 kernel/task_work.c:164 exit_task_work include/linux/task_work.h:32 [inline] do_exit+0xbae/0x2a30 kernel/exit.c:825 do_group_exit+0x125/0x310 kernel/exit.c:922 get_signal+0x47f/0x2160 kernel/signal.c:2868 arch_do_signal_or_restart+0x2a9/0x1c40 arch/x86/kernel/signal.c:865 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop kernel/entry/common.c:172 [inline] exit_to_user_mode_prepare+0x17d/0x290 kernel/entry/common.c:209 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:302 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x44da49 Code: Unable to access opcode bytes at RIP 0x44da1f. RSP: 002b:00007fea1d3a3308 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: 0000000000000001 RBX: 00000000004cf4f8 RCX: 000000000044da49 RDX: 00000000000f4240 RSI: 0000000000000081 RDI: 00000000004cf4fc RBP: 00000000004cf4f0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000246 R12: 00000000004cf4fc R13: 000000000049e484 R14: 6f6f6c2f7665642f R15: 0000000000022000