Re: [PATCH] sunrpc: don't pass on-stack memory to sg_set_buf

2016-10-25 Thread Trond Myklebust
> On Oct 25, 2016, at 15:59, Fields Bruce James wrote: > > On Tue, Oct 25, 2016 at 07:34:43PM +0000, Trond Myklebust wrote: >> >>> On Oct 25, 2016, at 14:45, J. Bruce Fields wrote: >>> >>> From: "J. Bruce Fields" >>> >>

Re: [PATCH] sunrpc: don't pass on-stack memory to sg_set_buf

2016-10-25 Thread Trond Myklebust
> On Oct 25, 2016, at 14:45, J. Bruce Fields wrote: > > From: "J. Bruce Fields" > > 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 o