All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Kyuwon Cho <kyuwoncho18@gmail.com>
Cc: Christoph Hellwig <hch@infradead.org>,
	Carlos Maiolino <cem@kernel.org>,
	"Darrick J. Wong" <djwong@kernel.org>,
	Aldo Ariel Panzardo <qwe.aldo@gmail.com>,
	linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] xfs: reject a hole in a remote xattr value
Date: Tue, 24 Nov 2026 22:39:48 -0800	[thread overview]
Message-ID: <awaCtCi8BIfimHRp@infradead.org> (raw)
In-Reply-To: <179523678723.1642977.7101755246592074809@gmail.com>

FYI: posting in reply to a thread is not great.  In general, please
post it separately.

On Sat, Nov 21, 2026 at 02:05:10PM +0900, Kyuwon Cho wrote:
> +++ b/fs/xfs/libxfs/xfs_attr_remote.c
> @@ -427,8 +427,11 @@ xfs_attr_rmtval_get(
>  			xfs_daddr_t	dblkno;
>  			int		dblkcnt;
>  
> -			ASSERT((map[i].br_startblock != DELAYSTARTBLOCK) &&
> -			       (map[i].br_startblock != HOLESTARTBLOCK));
> +			if (XFS_IS_CORRUPT(mp, map[i].br_startblock == DELAYSTARTBLOCK) ||
> +			    XFS_IS_CORRUPT(mp, map[i].br_startblock == HOLESTARTBLOCK)) {

Overly long lines here.

Otherwise this looks good and like a useful improvement.  Thanks a lot!


      reply	other threads:[~2026-11-25  6:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19  3:04 [BUG] xfs: a remote xattr valuelen larger than its blocks makes getxattr() read a hole and warn Kyuwon Cho
2026-11-20 16:30 ` Christoph Hellwig
2026-11-21  5:05   ` [PATCH] xfs: reject a hole in a remote xattr value Kyuwon Cho
2026-11-25  6:39     ` Christoph Hellwig [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=awaCtCi8BIfimHRp@infradead.org \
    --to=hch@infradead.org \
    --cc=cem@kernel.org \
    --cc=djwong@kernel.org \
    --cc=kyuwoncho18@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-xfs@vger.kernel.org \
    --cc=qwe.aldo@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.