Trying to write to read-only block-device sda1 (partno 1) WARNING: CPU: 1 PID: 6238 at block/blk-core.c:584 bio_check_ro block/blk-core.c:584 [inline] WARNING: CPU: 1 PID: 6238 at block/blk-core.c:584 submit_bio_checks+0x1700/0x1bf0 block/blk-core.c:697 Modules linked in: CPU: 1 PID: 6238 Comm: syz-executor.2 Not tainted 5.17.0-rc8-syzkaller-00003-g56e337f2cf13 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 RIP: 0010:bio_check_ro block/blk-core.c:584 [inline] RIP: 0010:submit_bio_checks+0x1700/0x1bf0 block/blk-core.c:697 Code: 00 00 45 0f b6 a4 24 50 05 00 00 48 8d 74 24 60 48 89 ef e8 f2 4a fe ff 48 c7 c7 40 3d 04 8a 48 89 c6 44 89 e2 e8 a2 88 3f 05 <0f> 0b e9 a0 f3 ff ff e8 94 2a b0 fd e8 af 9b 83 05 31 ff 89 c3 89 RSP: 0018:ffffc9002371ec88 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff88801a950b68 RCX: 0000000000000000 RDX: 0000000000040000 RSI: ffffffff815ff5a8 RDI: fffff520046e3d83 RBP: ffff8880195cdb80 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff815f9c3e R11: 0000000000000000 R12: 0000000000000001 R13: ffff8880195cdb90 R14: ffff8880447b9700 R15: ffff88801a950dfc FS: 0000000000000000(0000) GS:ffff88802cb00000(0063) knlGS:00000000f58a7b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f745e000 CR3: 0000000042c05000 CR4: 0000000000150ee0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __submit_bio+0xaf/0x360 block/blk-core.c:796 __submit_bio_noacct_mq block/blk-core.c:875 [inline] submit_bio_noacct block/blk-core.c:901 [inline] submit_bio_noacct+0x6c9/0x8a0 block/blk-core.c:890 submit_bio block/blk-core.c:962 [inline] submit_bio+0x1ea/0x430 block/blk-core.c:920 ext4_io_submit+0x181/0x210 fs/ext4/page-io.c:379 ext4_writepages+0x1450/0x3b90 fs/ext4/inode.c:2798 do_writepages+0x1ab/0x690 mm/page-writeback.c:2364 filemap_fdatawrite_wbc mm/filemap.c:384 [inline] filemap_fdatawrite_wbc+0x143/0x1b0 mm/filemap.c:374 __filemap_fdatawrite_range mm/filemap.c:417 [inline] file_write_and_wait_range+0x163/0x1e0 mm/filemap.c:775 ext4_sync_file+0x21f/0xfd0 fs/ext4/fsync.c:151 vfs_fsync_range+0x13a/0x220 fs/sync.c:188 generic_write_sync include/linux/fs.h:2884 [inline] ext4_buffered_write_iter+0x2b7/0x390 fs/ext4/file.c:275 ext4_file_write_iter+0x423/0x14d0 fs/ext4/file.c:677 call_write_iter include/linux/fs.h:2074 [inline] do_iter_readv_writev+0x47a/0x750 fs/read_write.c:725 do_iter_write+0x188/0x710 fs/read_write.c:851 vfs_iter_write+0x70/0xa0 fs/read_write.c:892 iter_file_splice_write+0x723/0xc70 fs/splice.c:689 do_splice_from fs/splice.c:767 [inline] direct_splice_actor+0x110/0x180 fs/splice.c:936 splice_direct_to_actor+0x34b/0x8c0 fs/splice.c:891 do_splice_direct+0x1b3/0x280 fs/splice.c:979 do_sendfile+0xaf2/0x1250 fs/read_write.c:1245 __do_compat_sys_sendfile fs/read_write.c:1331 [inline] __se_compat_sys_sendfile fs/read_write.c:1314 [inline] __ia32_compat_sys_sendfile+0x1dd/0x220 fs/read_write.c:1314 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0x65/0xf0 arch/x86/entry/common.c:178 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:203 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf6ece549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f58a75cc EFLAGS: 00000296 ORIG_RAX: 00000000000000bb RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 0000000000000005 RDX: 0000000000000000 RSI: 00000000ffffff80 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ---------------- Code disassembly (best guess): 0: 03 74 c0 01 add 0x1(%rax,%rax,8),%esi 4: 10 05 03 74 b8 01 adc %al,0x1b87403(%rip) # 0x1b8740d a: 10 06 adc %al,(%rsi) c: 03 74 b4 01 add 0x1(%rsp,%rsi,4),%esi 10: 10 07 adc %al,(%rdi) 12: 03 74 b0 01 add 0x1(%rax,%rsi,4),%esi 16: 10 08 adc %cl,(%rax) 18: 03 74 d8 01 add 0x1(%rax,%rbx,8),%esi 1c: 00 00 add %al,(%rax) 1e: 00 00 add %al,(%rax) 20: 00 51 52 add %dl,0x52(%rcx) 23: 55 push %rbp 24: 89 e5 mov %esp,%ebp 26: 0f 34 sysenter 28: cd 80 int $0x80 * 2a: 5d pop %rbp <-- trapping instruction 2b: 5a pop %rdx 2c: 59 pop %rcx 2d: c3 retq 2e: 90 nop 2f: 90 nop 30: 90 nop 31: 90 nop 32: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi 39: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi