Files
twx-linux/net
Chuck Lever 653db17384 SUNRPC: Properly set the @subbuf parameter of xdr_buf_subsegment()
commit 89a3c9f5b9 upstream.

@subbuf is an output parameter of xdr_buf_subsegment(). A survey of
call sites shows that @subbuf is always uninitialized before
xdr_buf_segment() is invoked by callers.

There are some execution paths through xdr_buf_subsegment() that do
not set all of the fields in @subbuf, leaving some pointer fields
containing garbage addresses. Subsequent processing of that buffer
then results in a page fault.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-06-30 15:38:09 -04:00
..
…
…
…
…
…
…
2020-06-30 15:38:00 -04:00
…
…
…
…
…
2020-05-20 08:17:12 +02:00
…
2019-12-05 15:38:15 +01:00
…
…
2020-01-17 19:45:49 +01:00
…
…
…
2020-01-17 19:45:49 +01:00