<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/include/linux/sunrpc/xdr.h, branch linux-4.13.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.13.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.13.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2017-05-15T15:42:26Z</updated>
<entry>
<title>sunrpc: remove kxdrproc_t</title>
<updated>2017-05-15T15:42:26Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2017-05-08T17:56:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=35f297e5370bd511a171f7de0c5a31ee661f2e7e'/>
<id>urn:sha1:35f297e5370bd511a171f7de0c5a31ee661f2e7e</id>
<content type='text'>
Remove the now unused typedef.

Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
</content>
</entry>
<entry>
<title>sunrpc: properly type argument to kxdrdproc_t</title>
<updated>2017-05-15T15:42:12Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2017-05-08T12:58:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=73c8dc133afb0cbe72a9234894ea72c2a0e71a73'/>
<id>urn:sha1:73c8dc133afb0cbe72a9234894ea72c2a0e71a73</id>
<content type='text'>
Pass struct rpc_request as the first argument instead of an untyped blob.

Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Reviewed-by: Jeff Layton &lt;jlayton@redhat.com&gt;
Acked-by: Trond Myklebust &lt;trond.myklebust@primarydata.com&gt;
</content>
</entry>
<entry>
<title>sunrpc: properly type argument to kxdreproc_t</title>
<updated>2017-05-15T15:42:07Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2017-05-08T07:31:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c512f36b581862df20acef050c3e1a875166bd6f'/>
<id>urn:sha1:c512f36b581862df20acef050c3e1a875166bd6f</id>
<content type='text'>
Pass struct rpc_request as the first argument instead of an untyped blob,
and mark the data object as const.

Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Reviewed-by: Jeff Layton &lt;jlayton@redhat.com&gt;
</content>
</entry>
<entry>
<title>SUNRPC: Add a helper function xdr_stream_decode_string_dup()</title>
<updated>2017-02-21T21:56:16Z</updated>
<author>
<name>Trond Myklebust</name>
</author>
<published>2017-02-19T21:08:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5c741d4f2215371ae17e3dbdf3d46da850662e13'/>
<id>urn:sha1:5c741d4f2215371ae17e3dbdf3d46da850662e13</id>
<content type='text'>
Create a helper function that decodes a xdr string object, allocates a memory
buffer and then store it as a NUL terminated string.

Signed-off-by: Trond Myklebust &lt;trond.myklebust@primarydata.com&gt;
Reviewed-by: Chuck Lever &lt;chuck.lever@oracle.com&gt;
Signed-off-by: Anna Schumaker &lt;Anna.Schumaker@Netapp.com&gt;
</content>
</entry>
<entry>
<title>SUNRPC: Add generic helpers for xdr_stream encode/decode</title>
<updated>2017-02-21T21:56:16Z</updated>
<author>
<name>Trond Myklebust</name>
</author>
<published>2017-02-19T21:08:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0ae060ca2bdfe11181094699b0f76437ec210b17'/>
<id>urn:sha1:0ae060ca2bdfe11181094699b0f76437ec210b17</id>
<content type='text'>
Add some generic helpers for encoding/decoding opaque structures and
basic u32/u64.

Signed-off-by: Trond Myklebust &lt;trond.myklebust@primarydata.com&gt;
Reviewed-by: Chuck Lever &lt;chuck.lever@oracle.com&gt;
Signed-off-by: Anna Schumaker &lt;Anna.Schumaker@Netapp.com&gt;
</content>
</entry>
<entry>
<title>SUNRPC: Refactor rpc_xdr_buf_init()</title>
<updated>2016-09-19T17:08:37Z</updated>
<author>
<name>Chuck Lever</name>
</author>
<published>2016-09-15T14:55:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b9c5bc03be6aae41990efd09f83cf70a89ac9f4b'/>
<id>urn:sha1:b9c5bc03be6aae41990efd09f83cf70a89ac9f4b</id>
<content type='text'>
Clean up: there is some XDR initialization logic that is common
to the forward channel and backchannel. Move it to an XDR header
so it can be shared.

rpc_rqst::rq_buffer points to a buffer containing big-endian data.
Update its annotation as part of the clean up.

Signed-off-by: Chuck Lever &lt;chuck.lever@oracle.com&gt;
Signed-off-by: Anna Schumaker &lt;Anna.Schumaker@Netapp.com&gt;
</content>
</entry>
<entry>
<title>rpc: define xdr_restrict_buflen</title>
<updated>2014-05-30T21:32:01Z</updated>
<author>
<name>J. Bruce Fields</name>
</author>
<published>2014-03-06T18:22:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=db3f58a95beea6752d90fed03f9f198d282a3913'/>
<id>urn:sha1:db3f58a95beea6752d90fed03f9f198d282a3913</id>
<content type='text'>
With this xdr_reserve_space can help us enforce various limits.

Signed-off-by: J. Bruce Fields &lt;bfields@redhat.com&gt;
</content>
</entry>
<entry>
<title>nfsd4: allow encoding across page boundaries</title>
<updated>2014-05-30T21:31:54Z</updated>
<author>
<name>J. Bruce Fields</name>
</author>
<published>2013-08-26T20:04:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2825a7f90753012babe7ee292f4a1eadd3706f92'/>
<id>urn:sha1:2825a7f90753012babe7ee292f4a1eadd3706f92</id>
<content type='text'>
After this we can handle for example getattr of very large ACLs.

Read, readdir, readlink are still special cases with their own limits.

Also we can't handle a new operation starting close to the end of a
page.

Signed-off-by: J. Bruce Fields &lt;bfields@redhat.com&gt;
</content>
</entry>
<entry>
<title>rpc: xdr_truncate_encode</title>
<updated>2014-05-30T21:31:47Z</updated>
<author>
<name>J. Bruce Fields</name>
</author>
<published>2014-02-25T22:44:21Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3e19ce762b537dd9aeefdd0849ba5f2f01ff83cf'/>
<id>urn:sha1:3e19ce762b537dd9aeefdd0849ba5f2f01ff83cf</id>
<content type='text'>
This will be used in the server side in a few cases:
	- when certain operations (read, readdir, readlink) fail after
	  encoding a partial response.
	- when we run out of space after encoding a partial response.
	- in readlink, where we initially reserve PAGE_SIZE bytes for
	  data, then truncate to the actual size.

Signed-off-by: J. Bruce Fields &lt;bfields@redhat.com&gt;
</content>
</entry>
<entry>
<title>sunrpc: trim off trailing checksum before returning decrypted or integrity authenticated buffer</title>
<updated>2013-02-08T20:19:10Z</updated>
<author>
<name>Jeff Layton</name>
</author>
<published>2013-02-06T13:28:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4c190e2f913f038c9c91ee63b59cd037260ba353'/>
<id>urn:sha1:4c190e2f913f038c9c91ee63b59cd037260ba353</id>
<content type='text'>
When GSSAPI integrity signatures are in use, or when we're using GSSAPI
privacy with the v2 token format, there is a trailing checksum on the
xdr_buf that is returned.

It's checked during the authentication stage, and afterward nothing
cares about it. Ordinarily, it's not a problem since the XDR code
generally ignores it, but it will be when we try to compute a checksum
over the buffer to help prevent XID collisions in the duplicate reply
cache.

Fix the code to trim off the checksums after verifying them. Note that
in unwrap_integ_data, we must avoid trying to reverify the checksum if
the request was deferred since it will no longer be present when it's
revisited.

Signed-off-by: Jeff Layton &lt;jlayton@redhat.com&gt;
</content>
</entry>
</feed>
