mbox series

[0/4] ext4: avoid OOB when system.data xattr changes underneath the filesystem

Message ID 20240821152324.3621860-1-cascardo@igalia.com
Headers show
Series ext4: avoid OOB when system.data xattr changes underneath the filesystem | expand

Message

Thadeu Lima de Souza Cascardo Aug. 21, 2024, 3:23 p.m. UTC
This patchset changes some of the error paths involving dir entries lookups
and recheck that xattrs are valid after an inode is potentially reread from
disk.

Thadeu Lima de Souza Cascardo (4):
  ext4: ext4_search_dir should return a proper error
  ext4: return error on ext4_find_inline_entry
  ext4: explicitly exit when ext4_find_inline_entry returns an error
  ext4: avoid OOB when system.data xattr changes underneath the
    filesystem

 fs/ext4/inline.c | 35 +++++++++++++++++++++++++----------
 fs/ext4/namei.c  | 14 ++++++++------
 2 files changed, 33 insertions(+), 16 deletions(-)

Comments

Theodore Ts'o Sept. 5, 2024, 2:53 p.m. UTC | #1
On Wed, 21 Aug 2024 12:23:20 -0300, Thadeu Lima de Souza Cascardo wrote:
> This patchset changes some of the error paths involving dir entries lookups
> and recheck that xattrs are valid after an inode is potentially reread from
> disk.
> 
> Thadeu Lima de Souza Cascardo (4):
>   ext4: ext4_search_dir should return a proper error
>   ext4: return error on ext4_find_inline_entry
>   ext4: explicitly exit when ext4_find_inline_entry returns an error
>   ext4: avoid OOB when system.data xattr changes underneath the
>     filesystem
> 
> [...]

Applied, thanks!

[1/4] ext4: ext4_search_dir should return a proper error
      commit: cd69f8f9de280e331c9e6ff689ced0a688a9ce8f
[2/4] ext4: return error on ext4_find_inline_entry
      commit: 4d231b91a944f3cab355fce65af5871fb5d7735b
[3/4] ext4: explicitly exit when ext4_find_inline_entry returns an error
      commit: 51e14e78b5fb3e6f839393cd2d34386ee7b69af3
[4/4] ext4: avoid OOB when system.data xattr changes underneath the filesystem
      commit: c6b72f5d82b1017bad80f9ebf502832fc321d796

Best regards,