mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Joseph Qi <joseph.qi@linux.alibaba.com>
To: Jiale Yao <yaojiale02@163.com>
Cc: Mark Fasheh <mark@fasheh.com>, Joel Becker <jlbec@evilplan.org>,
	Heming Zhao <heming.zhao@suse.com>,
	ocfs2-devel@lists.linux.dev, linux-kernel@vger.kernel.org,
	stable@vger.kernel.org
Subject: Re: [PATCH] ocfs2: validate xattr bucket count against extent size
Date: Wed, 4 Nov 2026 15:43:13 +0800	[thread overview]
Message-ID: <f6f848f6-9fc5-4847-95f9-77efc215a61c@linux.alibaba.com> (raw)
In-Reply-To: <20261028050229.124718-1-yaojiale02@163.com>



On 10/28/26 1:02 PM, Jiale Yao wrote:
> The first xattr bucket stores the number of valid buckets in its extent.
> Lookup and iteration trust this on-disk value even when it exceeds the
> number of buckets covered by the extent record. A corrupted value can
> therefore make them read blocks beyond the extent.
> 
> Validate the count against the extent cluster count before using it.
> Reject zero as well because every xattr extent contains at least its first
> bucket.
> 

Please describe the user effect of this issue.

Thanks,
Joseph

      reply	other threads:[~2026-11-04  7:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-28  5:02 Jiale Yao
2026-11-04  7:43 ` Joseph Qi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f6f848f6-9fc5-4847-95f9-77efc215a61c@linux.alibaba.com \
    --to=joseph.qi@linux.alibaba.com \
    --cc=heming.zhao@suse.com \
    --cc=jlbec@evilplan.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mark@fasheh.com \
    --cc=ocfs2-devel@lists.linux.dev \
    --cc=stable@vger.kernel.org \
    --cc=yaojiale02@163.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®