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: 1382d, last: 1259d
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>
* Struck through repros no longer work on HEAD.