summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorZhengYuan Huang <gality369@gmail.com>2026-05-08 11:59:13 +0300
committerAndrew Morton <akpm@linux-foundation.org>2026-05-29 07:24:48 +0300
commit4523ba0ee2e9ab6ee9c4b20b2867c3e4aa01f503 (patch)
tree740861437783aeb4fc862f89accab5d556b63d22 /scripts
parentb8ba8bbe69ad8a37e2f9bc2792c1b825f1964c91 (diff)
downloadlinux-4523ba0ee2e9ab6ee9c4b20b2867c3e4aa01f503.tar.xz
ocfs2: validate inline xattr header before inline refcount attach
[BUG] A corrupt inline xattr header can make ocfs2_xattr_inline_attach_refcount() feed an unchecked header into the refcount-attachment walk for inline xattr values. [CAUSE] The inline refcount-attach path still derived the header directly from di->i_xattr_inline_size and then passed it to code that iterates xh_count and xattr entries. [FIX] Use the shared ibody header helper before attaching refcounts to inline xattr values so corrupt header geometry is rejected with -EFSCORRUPTED instead of being traversed. Link: https://lore.kernel.org/20260508085914.61647-5-gality369@gmail.com Signed-off-by: ZhengYuan Huang <gality369@gmail.com> Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com> Cc: Changwei Ge <gechangwei@live.cn> Cc: Heming Zhao <heming.zhao@suse.com> Cc: Jia-Ju Bai <baijiaju1990@gmail.com> Cc: Joel Becker <jlbec@evilplan.org> Cc: Jun Piao <piaojun@huawei.com> Cc: Junxiao Bi <junxiao.bi@oracle.com> Cc: Mark Fasheh <mark@fasheh.com> Cc: Zixuan Fu <r33s3n6@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions