From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH v3 3/9] hexagon: use generic strncpy/strnlen from_user Date: Thu, 22 Jul 2021 15:00:22 +0200 Message-ID: <20210722130022.GC26225@lst.de> References: <20210722124814.778059-1-arnd@kernel.org> <20210722124814.778059-4-arnd@kernel.org> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <20210722124814.778059-4-arnd@kernel.org> List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Arnd Bergmann Cc: linux-arch@vger.kernel.org, Arnd Bergmann , "James E.J. Bottomley" , Al Viro , Anton Ivanov , Brian Cain , Chris Zankel , Christian Borntraeger , Christoph Hellwig , Guo Ren , Heiko Carstens , Helge Deller , Jeff Dike , Linus Walleij , Max Filippov , Michal Simek , Richard Weinberger , Thomas Bogendoerfer , Vasily Gorbik , Vineet Gupta , Yoshinori On Thu, Jul 22, 2021 at 02:48:08PM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > Remove the hexagon implementation of strncpy/strnlen and instead use > the generic version. The hexagon version reads the data twice for > strncpy() by doing an extra strnlen(), and it apparently lacks a check > for user_addr_max(). > > Signed-off-by: Arnd Bergmann Looks good, Reviewed-by: Christoph Hellwig