------------[ cut here ]------------
generic_make_request: Trying to write to read-only block-device loop7 (partno 0)
WARNING: CPU: 0 PID: 16212 at block/blk-core.c:2183 bio_check_ro block/blk-core.c:2183 [inline]
WARNING: CPU: 0 PID: 16212 at block/blk-core.c:2183 generic_make_request_checks+0x17d9/0x22e0 block/blk-core.c:2288
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 16212 Comm: syz-executor.4 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 panic+0x26a/0x50e kernel/panic.c:186
 __warn.cold+0x20/0x5a kernel/panic.c:541
 report_bug+0x262/0x2b0 lib/bug.c:183
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 fixup_bug arch/x86/kernel/traps.c:173 [inline]
 do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:bio_check_ro block/blk-core.c:2183 [inline]
RIP: 0010:generic_make_request_checks+0x17d9/0x22e0 block/blk-core.c:2288
Code: ca 0a 00 00 45 8b b6 1c 05 00 00 48 8d 74 24 68 48 89 ef e8 b9 14 06 00 48 c7 c7 00 29 b2 88 48 89 c6 44 89 f2 e8 4c 94 91 04 <0f> 0b 48 b8 00 00 00 00 00 fc ff df 4c 89 ea 48 c1 ea 03 80 3c 02
RSP: 0018:ffff88804b0d72d0 EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffff8880ae8d1080 RCX: 0000000000000000
RDX: 000000000001f166 RSI: ffffffff814dff01 RDI: ffffed100961ae4c
RBP: ffff8880a57b2280 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff8880a57b22b0
R13: ffff8880a57b2288 R14: 0000000000000000 R15: 0000000000000000
 generic_make_request+0x23f/0xdf0 block/blk-core.c:2412
 submit_bio+0xb1/0x430 block/blk-core.c:2576
 submit_bh_wbc+0x5a7/0x760 fs/buffer.c:3090
 __block_write_full_page+0x71a/0xf60 fs/buffer.c:1777
 block_write_full_page+0x1f3/0x260 fs/buffer.c:2951
 __writepage+0x5e/0xe0 mm/page-writeback.c:2305
 write_cache_pages+0x802/0x12d0 mm/page-writeback.c:2240
 generic_writepages mm/page-writeback.c:2329 [inline]
 generic_writepages+0xdb/0x150 mm/page-writeback.c:2318
 do_writepages+0xe5/0x290 mm/page-writeback.c:2344
 __filemap_fdatawrite_range+0x27d/0x350 mm/filemap.c:446
 __filemap_fdatawrite mm/filemap.c:454 [inline]
 filemap_fdatawrite mm/filemap.c:459 [inline]
 filemap_write_and_wait mm/filemap.c:640 [inline]
 filemap_write_and_wait+0x42/0xd0 mm/filemap.c:635
 __sync_blockdev fs/block_dev.c:463 [inline]
 sync_blockdev fs/block_dev.c:472 [inline]
 set_blocksize+0x1cd/0x3f0 fs/block_dev.c:133
 loop_set_fd drivers/block/loop.c:1007 [inline]
 lo_ioctl+0x105a/0x20e0 drivers/block/loop.c:1576
 __blkdev_driver_ioctl block/ioctl.c:303 [inline]
 blkdev_ioctl+0x5cb/0x1a80 block/ioctl.c:601
 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:0x7fbd028fe0f9
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:00007fbd00e70168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fbd02a1df80 RCX: 00007fbd028fe0f9
RDX: 0000000000000005 RSI: 0000000000004c00 RDI: 0000000000000004
RBP: 00007fbd02959ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd232b6a8f R14: 00007fbd00e70300 R15: 0000000000022000
Kernel Offset: disabled
Rebooting in 86400 seconds..