Chuck Lever 89a3c9f5b9 SUNRPC: Properly set the @subbuf parameter of xdr_buf_subsegment()
@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>
2020-06-26 08:45:23 -04:00
..
2020-06-11 12:22:41 -07:00
2019-07-18 14:32:33 -07:00
2018-12-19 13:52:46 -05:00
2020-03-16 12:04:33 -04:00
2020-03-16 12:04:33 -04:00
2020-06-11 12:22:41 -07:00
2020-06-11 10:33:13 -07:00
2020-06-11 13:33:48 -04:00
2020-06-11 10:33:13 -07:00