[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180802164633.GA66257@sharrissfo-mbp.dhcp.thefacebook.com>
Date: Thu, 2 Aug 2018 09:46:33 -0700
From: Dave Watson <davejwatson@...com>
To: Vakul Garg <vakul.garg@....com>
CC: <netdev@...r.kernel.org>, <borisp@...lanox.com>,
<aviadye@...lanox.com>, <davem@...emloft.net>
Subject: Re: [PATCH net-next] net/tls: Mark the end in scatterlist table
On 08/02/18 08:43 PM, Vakul Garg wrote:
> Function zerocopy_from_iter() unmarks the 'end' in input sgtable while
> adding new entries in it. The last entry in sgtable remained unmarked.
> This results in KASAN error report on using apis like sg_nents(). Before
> returning, the function needs to mark the 'end' in the last entry it
> adds.
>
> Signed-off-by: Vakul Garg <vakul.garg@....com>
Looks good to me, it looks like the fallback path should unmark the
end appropriately.
Which codepath is calling sg_nents()?
Acked-by: Dave Watson <davejwatson@...com>
Powered by blists - more mailing lists