Skip to content

ext4: fix use-after-free in ext4_xattr_set_entry

Baokun Li linux-ext4 lkml 3 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 10 repliesApplied
  2. v24 patches 2 repliesSuperseded
  3. v11 patch 2 repliesSuperseded

Changes in v3 from the cover letter

Rename macro to EXT4_INODE_HAS_XATTR_SPACE.

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/4ext4: add EXT4_INODE_HAS_XATTR_SPACE macro in xattr.hfs/ext4/xattr.h+13 -02 replies
2/4ext4: fix use-after-free in ext4_xattr_set_entryfs/ext4/xattr.c+4 -22 replies
3/4ext4: correct max_inline_xattr_value_size computingfs/ext4/inline.c+3 -02 replies
4/4ext4: correct the misjudgment in ext4_iget_extra_inodefs/ext4/inode.c+1 -22 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchRitesh Harjani (IBM)Jan Kara
1/4R-b R-b
2/4R-b R-b
3/4R-b R-b
4/4R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/4] ext4: fix use-after-free in ext4_xattr_set_entry

This series adds a macro for whether there is space for xattr in ext4 inode, and fixes some problems with this macro.

V1->V2:
Split the patch to make the logic clearer. Rename macro to EXT4_INODE_HAVE_XATTR_SPACE.
V2->V3:
Rename macro to EXT4_INODE_HAS_XATTR_SPACE.

Baokun Li (4):
ext4: add EXT4_INODE_HAS_XATTR_SPACE macro in xattr.h
ext4: fix use-after-free in ext4_xattr_set_entry
ext4: correct max_inline_xattr_value_size computing
ext4: correct the misjudgment in ext4_iget_extra_inode

 fs/ext4/inline.c |  3 +++
 fs/ext4/inode.c  |  3 +--
 fs/ext4/xattr.c  |  6 ++++--
 fs/ext4/xattr.h  | 13 +++++++++++++
 4 files changed, 21 insertions(+), 4 deletions(-)
Signature · 1 line
2.31.1