Re: [PATCH v2] ext4: fix off by one issue in alloc_flex_gd()

From: Theodore Ts'o
Date: Fri Oct 04 2024 - 22:41:41 EST



On Fri, 27 Sep 2024 21:33:29 +0800, libaokun@xxxxxxxxxxxxxxx wrote:
> Wesley reported an issue:
>
> ==================================================================
> EXT4-fs (dm-5): resizing filesystem from 7168 to 786432 blocks
> ------------[ cut here ]------------
> kernel BUG at fs/ext4/resize.c:324!
> CPU: 9 UID: 0 PID: 3576 Comm: resize2fs Not tainted 6.11.0+ #27
> RIP: 0010:ext4_resize_fs+0x1212/0x12d0
> Call Trace:
> __ext4_ioctl+0x4e0/0x1800
> ext4_ioctl+0x12/0x20
> __x64_sys_ioctl+0x99/0xd0
> x64_sys_call+0x1206/0x20d0
> do_syscall_64+0x72/0x110
> entry_SYSCALL_64_after_hwframe+0x76/0x7e
> ==================================================================
>
> [...]

Applied, thanks!

[1/1] ext4: fix off by one issue in alloc_flex_gd()
commit: 6121258c2b33ceac3d21f6a221452692c465df88

Best regards,
--
Theodore Ts'o <tytso@xxxxxxx>