diff options
author | J. Bruce Fields <bfields@redhat.com> | 2016-10-18 16:30:09 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2016-10-26 15:49:48 -0400 |
commit | 2876a34466ce382a76b9ffb34757bb48928ac743 (patch) | |
tree | 3ef99967d3cf3c5dc577432b73b3e4b03d43df5b /samples/blackfin/gptimers-example.c | |
parent | 0cc11a61b80a1ab1d12f1597b27b8b45ef8bac4a (diff) | |
download | blackbird-obmc-linux-2876a34466ce382a76b9ffb34757bb48928ac743.tar.gz blackbird-obmc-linux-2876a34466ce382a76b9ffb34757bb48928ac743.zip |
sunrpc: don't pass on-stack memory to sg_set_buf
As of ac4e97abce9b "scatterlist: sg_set_buf() argument must be in linear
mapping", sg_set_buf hits a BUG when make_checksum_v2->xdr_process_buf,
among other callers, passes it memory on the stack.
We only need a scatterlist to pass this to the crypto code, and it seems
like overkill to require kmalloc'd memory just to encrypt a few bytes,
but for now this seems the best fix.
Many of these callers are in the NFS write paths, so we allocate with
GFP_NOFS. It might be possible to do without allocations here entirely,
but that would probably be a bigger project.
Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'samples/blackfin/gptimers-example.c')
0 files changed, 0 insertions, 0 deletions