All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ding Feng <dingf3ng@gmail.com>
To: Matteo Croce <technoboy85@gmail.com>
Cc: Christian Brauner <brauner@kernel.org>,
	Alexander Viro <viro@zeniv.linux.org.uk>,
	linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] fs: fix overflow check in rw_verify_area()
Date: Fri, 20 Nov 2026 13:14:57 +0800	[thread overview]
Message-ID: <20261120051457.47753-1-dingf3ng@gmail.com> (raw)
In-Reply-To: <CAFnufp1LcTCLtCrd=iLxD7DPaOouov=BW=Scj_yXJ+Pn96RKLQ@mail.gmail.com>

Hi Matteo,

On Wed, 24 Dec 2025 at 00:28, Matteo Croce wrote:
> Following a discussion on the coreutils mailing list[1] I think that
> this should be fixed differently.
> I'll be back with a v2.

This is still present in v7.4-rc3 (65e4fd942). On a 100-byte tmpfs
file, a read that starts below LLONG_MAX but would end past it fails
instead of returning 0 at end of file:

  preadv2(fd, 200 bytes, pos = LLONG_MAX - 50) = -1 EINVAL
  preadv2(fd,  50 bytes, pos = LLONG_MAX - 50) = 0

sendfile() with *offset near LLONG_MAX fails the same way.

Are you still planning a v2?

Thanks,
Ding Feng

  parent reply	other threads:[~2026-11-20  5:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-19 12:52 [PATCH] fs: fix overflow check in rw_verify_area() Matteo Croce
2025-12-20 12:45 ` Matteo Croce
2025-12-23 23:28   ` Matteo Croce
2025-12-24 13:01     ` Christian Brauner
2026-11-20  5:14     ` Ding Feng [this message]
2026-11-20 15:14       ` Matteo Croce
2025-12-24 12:59 ` Christian Brauner

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=20261120051457.47753-1-dingf3ng@gmail.com \
    --to=dingf3ng@gmail.com \
    --cc=brauner@kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=technoboy85@gmail.com \
    --cc=viro@zeniv.linux.org.uk \
    /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.