syzbot


WARNING in ext4_da_release_space

Status: fixed on 2023/02/24 13:51
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+c740bb18df70ad00952e@syzkaller.appspotmail.com
Fix commit: 1b8f787ef547 ext4: fix warning in 'ext4_da_release_space'
First crash: 563d, last: 440d
Cause bisection: failed (error log, bisect log)
  
Discussions (3)
Title Replies (including bot) Last reply
[PATCH -next v2] ext4: fix warning in 'ext4_da_release_space' 3 (3) 2022/11/06 06:16
[PATCH -next] ext4: fix warning in 'ext4_da_release_space' 1 (1) 2022/10/18 01:24
[syzbot] WARNING in ext4_da_release_space 0 (1) 2022/10/12 10:36

Sample crash report:
EXT4-fs (loop0): i_reserved_data_blocks=0
EXT4-fs warning (device loop0): ext4_da_release_space:1524: ext4_da_release_space: ino 18, to_free 1 with only 0 reserved data blocks
------------[ cut here ]------------
WARNING: CPU: 0 PID: 11 at fs/ext4/inode.c:1528 ext4_da_release_space+0x4f9/0x680 fs/ext4/inode.c:1524
Modules linked in:
CPU: 0 PID: 11 Comm: kworker/u4:1 Not tainted 6.1.0-rc1-syzkaller-00454-ga70385240892 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022
Workqueue: writeback wb_workfn (flush-7:0)
RIP: 0010:ext4_da_release_space+0x4f9/0x680 fs/ext4/inode.c:1528
Code: 3c 02 00 0f 85 65 01 00 00 48 8b 7d 28 41 89 d9 41 54 ba f4 05 00 00 48 c7 c1 c0 18 03 8a 48 c7 c6 e0 2a 03 8a e8 e7 ce 0f 00 <0f> 0b 48 b8 00 00 00 00 00 fc ff df 4c 89 fa 48 c1 ea 03 0f b6 04
RSP: 0018:ffffc90000107108 EFLAGS: 00010282
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: ffff88813fe7ba80 RSI: ffffffff822bcb78 RDI: fffff52000020df0
RBP: ffff888071d07108 R08: 0000000000000085 R09: 0000000000000000
R10: 0000000080000001 R11: 0000000034545845 R12: 0000000000000000
R13: ffff88807d4e0000 R14: ffff888071d07778 R15: ffff888071d076b8
FS:  0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fbd92cd9290 CR3: 00000000214cc000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 ext4_es_remove_extent+0x25c/0x510 fs/ext4/extents_status.c:1461
 mpage_release_unused_pages+0x5a7/0x740 fs/ext4/inode.c:1589
 ext4_writepages+0x1539/0x3da0 fs/ext4/inode.c:2852
 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>

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/24 08:25 upstream a70385240892 23bf86af .config strace log report syz C [disk image] [vmlinux] [mounted in repro] ci-upstream-kasan-gce-root WARNING in ext4_da_release_space
2022/10/12 10:27 upstream 493ffd6605b2 02b6492e .config strace log report syz C [disk image] [vmlinux] [mounted in repro] ci2-upstream-fs WARNING in ext4_da_release_space
2023/02/12 04:48 upstream d12aca5c0cee 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in ext4_da_release_space
2023/02/01 06:26 upstream c0b67534c95c b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in ext4_da_release_space
2022/10/26 06:25 upstream 1a2dcbdde82e 2159e4d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in ext4_da_release_space
2022/10/23 17:59 upstream d47136c28015 23bf86af .config console log report info [disk image] [vmlinux] ci2-upstream-fs WARNING in ext4_da_release_space
2022/10/18 15:54 upstream 493ffd6605b2 b31320fc .config console log report info [disk image] [vmlinux] ci2-upstream-fs WARNING in ext4_da_release_space
2022/10/12 10:12 upstream 493ffd6605b2 02b6492e .config console log report info [disk image] [vmlinux] ci2-upstream-fs WARNING in ext4_da_release_space
2023/01/07 10:09 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ae87308093bc 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in ext4_da_release_space
* Struck through repros no longer work on HEAD.