Re: [syzbot] WARNING in submit_bio_noacct
From: syzbot
Date: Fri Mar 04 2022 - 01:00:46 EST
syzbot has found a reproducer for the following issue on:
HEAD commit: 91265a6da44d Add linux-next specific files for 20220303
git tree: linux-next
console output: https://syzkaller.appspot.com/x/log.txt?x=10c23e1a700000
kernel config: https://syzkaller.appspot.com/x/.config?x=617f79440a35673a
dashboard link: https://syzkaller.appspot.com/bug?extid=7fdd158f9797accbebfc
compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16f7f36e700000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=105cbfb9700000
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+7fdd158f9797accbebfc@xxxxxxxxxxxxxxxxxxxxxxxxx
------------[ cut here ]------------
Trying to write to read-only block-device sda1 (partno 1)
WARNING: CPU: 1 PID: 2927 at block/blk-core.c:581 bio_check_ro block/blk-core.c:581 [inline]
WARNING: CPU: 1 PID: 2927 at block/blk-core.c:581 submit_bio_noacct+0x16f3/0x1be0 block/blk-core.c:810
Modules linked in:
CPU: 1 PID: 2927 Comm: jbd2/sda1-8 Not tainted 5.17.0-rc6-next-20220303-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:581 [inline]
RIP: 0010:submit_bio_noacct+0x16f3/0x1be0 block/blk-core.c:810
Code: 00 00 45 0f b6 a4 24 50 05 00 00 48 8d 74 24 60 48 89 ef e8 cf 1f fe ff 48 c7 c7 e0 93 24 8a 48 89 c6 44 89 e2 e8 c9 6e 41 05 <0f> 0b e9 91 f3 ff ff e8 41 96 a1 fd e8 6c bf 85 05 31 ff 89 c3 89
RSP: 0018:ffffc9000c25f900 EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffff88801bdaa250 RCX: 0000000000000000
RDX: ffff88807f5a9d40 RSI: ffffffff81602878 RDI: fffff5200184bf12
RBP: ffff88801f184000 R08: 0000000000000000 R09: 0000000000000001
R10: ffffffff815fd23e R11: 0000000000000000 R12: 0000000000000001
R13: ffff88801f184010 R14: ffff888018355080 R15: 1ffff9200184bf28
FS: 0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200066d0 CR3: 000000002432e000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
submit_bio block/blk-core.c:941 [inline]
submit_bio+0x1a0/0x350 block/blk-core.c:905
submit_bh_wbc+0x4e9/0x6b0 fs/buffer.c:3090
jbd2_journal_commit_transaction+0x1fd9/0x6d80 fs/jbd2/commit.c:762
kjournald2+0x1d0/0x930 fs/jbd2/journal.c:213
kthread+0x2e9/0x3a0 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
</TASK>