syzbot


kernel BUG in jbd2_journal_get_create_access (2)

Status: upstream: reported on 2022/11/16 10:53
Reported-by: syzbot+1db57b8a1f746d42a177@syzkaller.appspotmail.com
First crash: 21d, last: 21d
similar bugs (4):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in jbd2_journal_get_create_access 1 323d 319d 0/24 auto-closed as invalid on 2022/05/14 14:52
android-54 kernel BUG in jbd2_journal_get_create_access 1 352d 352d 0/2 auto-closed as invalid on 2022/04/15 14:31
android-54 kernel BUG in jbd2_journal_get_create_access (2) 1 209d 209d 0/2 auto-obsoleted due to no activity on 2022/09/05 10:27
android-5-10 kernel BUG in jbd2_journal_get_create_access syz error 1 25d 25d 0/2 premoderation: reported syz repro on 2022/11/08 03:52

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/jbd2/transaction.c:1290!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 20729 Comm: kworker/u4:2 Not tainted 6.1.0-rc4-syzkaller-00308-gf5020a08b2b3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Workqueue: writeback wb_workfn (flush-8:0)
RIP: 0010:jbd2_journal_get_create_access+0x36c/0x560 fs/jbd2/transaction.c:1290
Code: 85 01 02 00 00 8b 45 4c bf 02 00 00 00 89 c6 89 44 24 08 e8 26 9f 4c ff 8b 44 24 08 83 f8 02 0f 84 06 fe ff ff e8 44 a2 4c ff <0f> 0b e8 3d a2 4c ff 48 89 ea 48 b8 00 00 00 00 00 fc ff df 48 c1
RSP: 0018:ffffc900036d6db8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff88814b1b6000 RCX: 0000000000000000
RDX: ffff8880569fe100 RSI: ffffffff822f322c RDI: 0000000000000005
RBP: ffff888045901870 R08: 0000000000000005 R09: 0000000000000002
R10: 0000000000000003 R11: 0000000000000000 R12: ffff88804727e6e0
R13: 0000000000000000 R14: ffff88804e841c80 R15: ffff888045901878
FS:  0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020091000 CR3: 00000000322c0000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __ext4_journal_get_create_access+0x50/0x1f0 fs/ext4/ext4_jbd2.c:323
 ext4_ext_grow_indepth fs/ext4/extents.c:1339 [inline]
 ext4_ext_create_new_leaf fs/ext4/extents.c:1435 [inline]
 ext4_ext_insert_extent+0x12ab/0x4130 fs/ext4/extents.c:2102
 ext4_ext_map_blocks+0x1541/0x6270 fs/ext4/extents.c:4308
 ext4_map_blocks+0x775/0x18d0 fs/ext4/inode.c:645
 mpage_map_one_extent fs/ext4/inode.c:2413 [inline]
 mpage_map_and_submit_extent fs/ext4/inode.c:2466 [inline]
 ext4_writepages+0x1e55/0x3da0 fs/ext4/inode.c:2834
 do_writepages+0x1ab/0x690 mm/page-writeback.c:2469
 __writeback_single_inode+0x159/0x1440 fs/fs-writeback.c:1587
 writeback_sb_inodes+0x54d/0xf90 fs/fs-writeback.c:1870
 wb_writeback+0x2c5/0xd70 fs/fs-writeback.c:2044
 wb_do_writeback fs/fs-writeback.c:2187 [inline]
 wb_workfn+0x2dc/0x12f0 fs/fs-writeback.c:2227
 process_one_work+0x9bf/0x1710 kernel/workqueue.c:2289
 worker_thread+0x665/0x1080 kernel/workqueue.c:2436
 kthread+0x2e4/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:jbd2_journal_get_create_access+0x36c/0x560 fs/jbd2/transaction.c:1290
Code: 85 01 02 00 00 8b 45 4c bf 02 00 00 00 89 c6 89 44 24 08 e8 26 9f 4c ff 8b 44 24 08 83 f8 02 0f 84 06 fe ff ff e8 44 a2 4c ff <0f> 0b e8 3d a2 4c ff 48 89 ea 48 b8 00 00 00 00 00 fc ff df 48 c1
RSP: 0018:ffffc900036d6db8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff88814b1b6000 RCX: 0000000000000000
RDX: ffff8880569fe100 RSI: ffffffff822f322c RDI: 0000000000000005
RBP: ffff888045901870 R08: 0000000000000005 R09: 0000000000000002
R10: 0000000000000003 R11: 0000000000000000 R12: ffff88804727e6e0
R13: 0000000000000000 R14: ffff88804e841c80 R15: ffff888045901878
FS:  0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020091000 CR3: 00000000322c0000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-selinux-root 2022/11/12 00:32 upstream f5020a08b2b3 3ead01ad .config log report info kernel BUG in jbd2_journal_get_create_access
* Struck through repros no longer work on HEAD.