mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v7 0/2] ocfs2: validate xattr entry bounds
@ 2026-07-05  2:53 Cen Zhang
  2026-07-05  2:53 ` [PATCH v7 1/2] ocfs2: validate inline xattrs during inode block validation Cen Zhang
  2026-07-05  2:53 ` [PATCH v7 2/2] ocfs2: validate external xattr entries when reading metadata Cen Zhang
  0 siblings, 2 replies; 5+ messages in thread
From: Cen Zhang @ 2026-07-05  2:53 UTC (permalink / raw)
  To: Joseph Qi, Mark Fasheh, Joel Becker; +Cc: ocfs2-devel, linux-kernel, zzzccc427

Hi,

This series validates OCFS2 xattr entry name/value bounds when xattr
metadata is read and validated, before getxattr() or listxattr() can
walk out-of-range entry arrays or offsets from corrupted metadata.

Patch 1 validates inline xattrs from ocfs2_validate_inode_block().
Patch 2 validates non-indexed xattr blocks from ocfs2_validate_xattr_block()
and indexed xattr buckets after bucket ECC validation.

Cen Zhang (2):
  ocfs2: validate inline xattrs during inode block validation
  ocfs2: validate external xattr entries when reading metadata

 fs/ocfs2/inode.c |   4 +
 fs/ocfs2/xattr.c | 215 ++++++++++++++++++++++++++++++++++++++++++++---
 fs/ocfs2/xattr.h |   2 +
 3 files changed, 208 insertions(+), 13 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-07-06  6:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-05  2:53 [PATCH v7 0/2] ocfs2: validate xattr entry bounds Cen Zhang
2026-07-05  2:53 ` [PATCH v7 1/2] ocfs2: validate inline xattrs during inode block validation Cen Zhang
2026-07-06  6:24   ` Joseph Qi
2026-07-05  2:53 ` [PATCH v7 2/2] ocfs2: validate external xattr entries when reading metadata Cen Zhang
2026-07-06  6:24   ` Joseph Qi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®