From: Dave Watson <davejwat...@fb.com>
Date: Fri, 19 Jan 2018 12:30:13 -0800

> The scatterlist is reused by both sendmsg and sendfile.
> If a sendmsg of smaller number of pages is followed by a sendfile
> of larger number of pages, the scatterlist may be too short, resulting
> in a crash in gcm_encrypt.
> 
> Add sg_unmark_end to make the list the correct length.
> 
> tls_sw_sendmsg already calls sg_unmark_end correctly when it allocates
> memory in alloc_sg, or in zerocopy_from_iter.
> 
> Signed-off-by: Dave Watson <davejwat...@fb.com>

Applied, thanks Dave.

Reply via email to