On 08/02/18 05:05 PM, Vakul Garg wrote: > In case zerocopy_from_iter() fails, 'end' won't get marked. > So fallback path is fine. > > > Which codepath is calling sg_nents()? > > While testing my WIP implementation of combined dynamic memory allocation for > (aead_req || sgin || sgout || aad || iv), I was getting random kernel crashes. > To debug it I had inserted sg_nents() in my code. The KASAN then immediately > complained that sg_nents() went beyond the allocated memory for scatterlist. > This led me to find that scatterlist table end has not been marked. >
If this isn't causing KASAN issues for the existing code, it probably makes more sense to put in a future series with that WIP work then.