From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:54988 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750885AbdBTFOE (ORCPT ); Mon, 20 Feb 2017 00:14:04 -0500 Subject: Patch "vfs: fix uninitialized flags in splice_to_pipe()" has been added to the 4.9-stable tree To: mszeredi@redhat.com, gregkh@linuxfoundation.org, torvalds@linux-foundation.org Cc: , From: Date: Mon, 20 Feb 2017 06:13:24 +0100 Message-ID: <148756760415250@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org List-ID: This is a note to let you know that I've just added the patch titled vfs: fix uninitialized flags in splice_to_pipe() to the 4.9-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: vfs-fix-uninitialized-flags-in-splice_to_pipe.patch and it can be found in the queue-4.9 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >>From 5a81e6a171cdbd1fa8bc1fdd80c23d3d71816fac Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Thu, 16 Feb 2017 17:49:02 +0100 Subject: vfs: fix uninitialized flags in splice_to_pipe() From: Miklos Szeredi commit 5a81e6a171cdbd1fa8bc1fdd80c23d3d71816fac upstream. Flags (PIPE_BUF_FLAG_PACKET, PIPE_BUF_FLAG_GIFT) could remain on the unused part of the pipe ring buffer. Previously splice_to_pipe() left the flags value alone, which could result in incorrect behavior. Uninitialized flags appears to have been there from the introduction of the splice syscall. Signed-off-by: Miklos Szeredi Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- fs/splice.c | 1 + 1 file changed, 1 insertion(+) --- a/fs/splice.c +++ b/fs/splice.c @@ -203,6 +203,7 @@ ssize_t splice_to_pipe(struct pipe_inode buf->len = spd->partial[page_nr].len; buf->private = spd->partial[page_nr].private; buf->ops = spd->ops; + buf->flags = 0; pipe->nrbufs++; page_nr++; Patches currently in stable-queue which might be from mszeredi@redhat.com are queue-4.9/vfs-fix-uninitialized-flags-in-splice_to_pipe.patch queue-4.9/fuse-fix-uninitialized-flags-in-pipe_buffer.patch queue-4.9/fuse-fix-use-after-free-issue-in-fuse_dev_do_read.patch