bisecting fixing commit since a6ed68d6468bd5a3da78a103344ded1435fed57a building syzkaller on 46869e3ee2274fbf353cb2c7d6cf36ed19e52b45 testing commit a6ed68d6468bd5a3da78a103344ded1435fed57a with gcc (GCC) 8.1.0 kernel signature: 0e9dfcefc55dc9809bd384d93f4eae84aa58c1ad all runs: crashed: WARNING in generic_make_request_checks testing current HEAD bf8d1cd4386535004c4afe7f03d37f9864c9940e testing commit bf8d1cd4386535004c4afe7f03d37f9864c9940e with gcc (GCC) 8.1.0 kernel signature: 8cb13daecd9ea9ae1357309d403e371d35817d65 all runs: crashed: WARNING in generic_make_request_checks revisions tested: 2, total time: 19m29.738113383s (build: 11m56.78402422s, test: 6m48.008406943s) the crash still happens on HEAD commit msg: Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi crash: WARNING in generic_make_request_checks ------------[ cut here ]------------ generic_make_request: Trying to write to read-only block-device loop0 (partno 0) WARNING: CPU: 1 PID: 7672 at block/blk-core.c:803 bio_check_ro block/blk-core.c:800 [inline] WARNING: CPU: 1 PID: 7672 at block/blk-core.c:803 generic_make_request_checks+0x1610/0x1d70 block/blk-core.c:904 Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 7672 Comm: syz-executor.4 Not tainted 5.5.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x12d/0x187 lib/dump_stack.c:118 panic+0x22a/0x4e3 kernel/panic.c:221 __warn.cold.10+0x25/0x2a kernel/panic.c:582 report_bug+0x1b0/0x270 lib/bug.c:195 fixup_bug arch/x86/kernel/traps.c:174 [inline] do_error_trap+0x11b/0x200 arch/x86/kernel/traps.c:267 do_invalid_op+0x36/0x40 arch/x86/kernel/traps.c:286 invalid_op+0x23/0x30 arch/x86/entry/entry_64.S:1027 RIP: 0010:bio_check_ro block/blk-core.c:800 [inline] RIP: 0010:generic_make_request_checks+0x1610/0x1d70 block/blk-core.c:904 Code: 48 8d b5 78 ff ff ff 48 89 df 89 95 48 ff ff ff e8 a5 22 05 00 8b 95 48 ff ff ff 48 c7 c7 40 7a 61 87 48 89 c6 e8 d8 1a 41 fe <0f> 0b 48 b8 00 00 00 00 00 fc ff df 4c 89 fa 48 c1 ea 03 80 3c 02 RSP: 0018:ffff888080c7f378 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff8880a1451a00 RCX: 0000000000000000 RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffffff89fff8a0 RBP: ffff888080c7f470 R08: ffffed1015da6621 R09: ffffed1015da6621 R10: ffffed1015da6620 R11: ffff8880aed33107 R12: ffff8880a3fb90b8 R13: ffff8880a1451a28 R14: ffff8880a1451a10 R15: ffff8880a1451a08 generic_make_request+0x89/0x9f0 block/blk-core.c:1023 submit_bio+0xe6/0x5c0 block/blk-core.c:1195 submit_bh_wbc+0x5c0/0x7b0 fs/buffer.c:3135 __block_write_full_page+0x624/0xce0 fs/buffer.c:1807 block_write_full_page+0x1b1/0x240 fs/buffer.c:2993 blkdev_writepage+0x13/0x20 fs/block_dev.c:609 __writepage+0x5a/0xd0 mm/page-writeback.c:2303 write_cache_pages+0x5f3/0xec0 mm/page-writeback.c:2238 generic_writepages+0xca/0x130 mm/page-writeback.c:2329 blkdev_writepages+0x9/0x10 fs/block_dev.c:2060 do_writepages+0xca/0x240 mm/page-writeback.c:2344 __filemap_fdatawrite_range+0x25f/0x330 mm/filemap.c:421 __filemap_fdatawrite mm/filemap.c:429 [inline] filemap_fdatawrite mm/filemap.c:434 [inline] filemap_write_and_wait+0xae/0x150 mm/filemap.c:640 __sync_blockdev fs/block_dev.c:491 [inline] sync_blockdev fs/block_dev.c:500 [inline] __blkdev_put+0x1bf/0x700 fs/block_dev.c:1889 blkdev_put+0x73/0x480 fs/block_dev.c:1958 blkdev_close+0x88/0xd0 fs/block_dev.c:1965 __fput+0x25a/0x770 fs/file_table.c:280 ____fput+0x9/0x10 fs/file_table.c:313 task_work_run+0x108/0x180 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop+0x24e/0x2e0 arch/x86/entry/common.c:164 prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline] syscall_return_slowpath arch/x86/entry/common.c:278 [inline] do_syscall_32_irqs_on arch/x86/entry/common.c:352 [inline] do_fast_syscall_32+0x93b/0xb68 arch/x86/entry/common.c:408 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 RIP: 0023:0xf7f5aa09 Code: 00 00 00 89 d3 eb dd b8 80 96 98 00 eb c7 8b 04 24 c3 8b 1c 24 c3 8b 34 24 c3 8b 3c 24 c3 90 90 90 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 002b:000000000847fbec EFLAGS: 00000212 ORIG_RAX: 0000000000000006 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 0000000000000000 RDX: 0000000000000005 RSI: 000000000816b680 RDI: 000000000000f4f3 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Kernel Offset: disabled Rebooting in 86400 seconds..