mbox series

[5.10,0/3] Fix kernel crash caused by ext4/054

Message ID 20211220153659.2120506-1-tytso@mit.edu
Headers show
Series Fix kernel crash caused by ext4/054 | expand

Message

Theodore Ts'o Dec. 20, 2021, 3:36 p.m. UTC
The following commits were cherry-picked from upstream to fix a crash
in ext4/054.  There was a minor fix-up needed in the first patch,
although no other changes were needed for the 2nd and 3rd patches.

Ext4/054 will cause older LTS kernels to crash, but unfortunately
these patches will need further back-porting to apply to 5.4, never
mind older LTS kernels.  But at least here are the fixes for 5.10....

Zhang Yi (3):
  ext4: prevent partial update of the extent blocks
  ext4: check for out-of-order index extents in
    ext4_valid_extent_entries()
  ext4: check for inconsistent extents between index and leaf block

 fs/ext4/extents.c | 93 ++++++++++++++++++++++++++++++++---------------
 1 file changed, 63 insertions(+), 30 deletions(-)

Comments

Greg Kroah-Hartman Dec. 22, 2021, 12:02 p.m. UTC | #1
On Mon, Dec 20, 2021 at 10:36:56AM -0500, Theodore Ts'o wrote:
> The following commits were cherry-picked from upstream to fix a crash
> in ext4/054.  There was a minor fix-up needed in the first patch,
> although no other changes were needed for the 2nd and 3rd patches.
> 
> Ext4/054 will cause older LTS kernels to crash, but unfortunately
> these patches will need further back-porting to apply to 5.4, never
> mind older LTS kernels.  But at least here are the fixes for 5.10....
> 
> Zhang Yi (3):
>   ext4: prevent partial update of the extent blocks
>   ext4: check for out-of-order index extents in
>     ext4_valid_extent_entries()
>   ext4: check for inconsistent extents between index and leaf block
> 
>  fs/ext4/extents.c | 93 ++++++++++++++++++++++++++++++++---------------
>  1 file changed, 63 insertions(+), 30 deletions(-)
> 
> -- 
> 2.31.0
> 

I also had to apply them to 5.15.y as you do not want people to upgrade
and have a regression.

thanks,

greg k-h