lib/iov_iter: initialize "flags" in new pipe_buffer 78/272278/2 accepted/tizen/unified/20220315.132332 submit/tizen/20220314.051607
authorMax Kellermann <max.kellermann@ionos.com>
Mon, 21 Feb 2022 10:03:13 +0000 (11:03 +0100)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 14 Mar 2022 04:22:55 +0000 (13:22 +0900)
commit58dd39a2220b1755177af8fc4bb869a4d4f552c8
tree7ef5efd790c1408b303d7d4099a5713390c92c48
parent97cba148688fc233793ca8a533e10420fa9453cc
lib/iov_iter: initialize "flags" in new pipe_buffer

commit 9d2231c5d74e13b2a0546fee6737ee4446017903 upstream.

The functions copy_page_to_iter_pipe() and push_pipe() can both
allocate a new pipe_buffer, but the "flags" member initializer is
missing.

Fixes: 241699cd72a8 ("new iov_iter flavour: pipe-backed")
To: Alexander Viro <viro@zeniv.linux.org.uk>
To: linux-fsdevel@vger.kernel.org
To: linux-kernel@vger.kernel.org
Cc: stable@vger.kernel.org
Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[sw0312.kim: chery-pick linux-5.10.y stable commit b19ec7afa929 to resolve CVE-2022-0847]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: Ie8e16157cca8dc16f9b1f222889aa8ed15c281b9
lib/iov_iter.c