Linux-XFS Archive on lore.kernel.org
 help / color / Atom feed
* [GIT PULL] splice: fix for 5.5
@ 2019-11-25 23:03 Darrick J. Wong
  2019-11-30 19:40 ` pr-tracker-bot
  0 siblings, 1 reply; 2+ messages in thread
From: Darrick J. Wong @ 2019-11-25 23:03 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: Darrick J. Wong, linux-fsdevel, linux-xfs, linux-kernel, agruenba

Hi Linus,

Please pull this single patch for 5.5 that fixes some questionable pipe
behavior in the splice code.  Specifically, whenever we perform a read
into a pipe, we now clamp the read request to the length of the pipe
buffer since there's no point in asking for more than we can handle.
We already fixed this in one place, but Andreas Gruenbacher found
another place where we could overflow, and requested a second fix.

The branch merges cleanly against this morning's HEAD and survived a few
days' worth of xfstests.  The merge was completely straightforward, so
please let me know if you run into anything weird.

--D

The following changes since commit 4f5cafb5cb8471e54afdc9054d973535614f7675:

  Linux 5.4-rc3 (2019-10-13 16:37:36 -0700)

are available in the Git repository at:

  git://git.kernel.org/pub/scm/fs/xfs/xfs-linux.git tags/vfs-5.5-merge-1

for you to fetch changes up to 3253d9d093376d62b4a56e609f15d2ec5085ac73:

  splice: only read in as much information as there is pipe buffer space (2019-10-15 08:44:32 -0700)

----------------------------------------------------------------
New code for 5.5:
- Fix another place in the splice code where a pipe could ask a
filesystem for a longer read than the pipe actually has free buffer
space.

----------------------------------------------------------------
Darrick J. Wong (1):
      splice: only read in as much information as there is pipe buffer space

 fs/splice.c | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

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

* Re: [GIT PULL] splice: fix for 5.5
  2019-11-25 23:03 [GIT PULL] splice: fix for 5.5 Darrick J. Wong
@ 2019-11-30 19:40 ` pr-tracker-bot
  0 siblings, 0 replies; 2+ messages in thread
From: pr-tracker-bot @ 2019-11-30 19:40 UTC (permalink / raw)
  To: Darrick J. Wong
  Cc: Linus Torvalds, Darrick J. Wong, linux-fsdevel, linux-xfs,
	linux-kernel, agruenba

The pull request you sent on Mon, 25 Nov 2019 15:03:26 -0800:

> git://git.kernel.org/pub/scm/fs/xfs/xfs-linux.git tags/vfs-5.5-merge-1

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/f112a2fd1f5999c6029551f901952392d900cf99

Thank you!

-- 
Deet-doot-dot, I am a bot.
https://korg.wiki.kernel.org/userdoc/prtracker

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

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-25 23:03 [GIT PULL] splice: fix for 5.5 Darrick J. Wong
2019-11-30 19:40 ` pr-tracker-bot

Linux-XFS Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-xfs/0 linux-xfs/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-xfs linux-xfs/ https://lore.kernel.org/linux-xfs \
		linux-xfs@vger.kernel.org
	public-inbox-index linux-xfs

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-xfs


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git