From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751659AbcGRFGI (ORCPT ); Mon, 18 Jul 2016 01:06:08 -0400 Received: from ozlabs.org ([103.22.144.67]:35734 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751451AbcGRFGF (ORCPT ); Mon, 18 Jul 2016 01:06:05 -0400 Date: Mon, 18 Jul 2016 15:06:02 +1000 From: Stephen Rothwell To: Kees Cook Cc: Catalin Marinas , Linux-Next , LKML , Yang Shi Subject: Re: linux-next: manual merge of the kspp tree with the arm64 tree Message-ID: <20160718150602.1c8f1896@canb.auug.org.au> In-Reply-To: References: <20160718125944.19ebe679@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Kees, On Sun, 17 Jul 2016 21:49:40 -0700 Kees Cook wrote: > > If I'm reading correctly, this second fixup is wrong. It should read; > > kasan_check_read(from, n); > check_object_size(from, n, true); > return __arch_copy_to_user(to, from, n); > > (i.e. fix double space between "return" and "__arch_copy..." in both > chunks and add check_object_size() calls after the kasan calls in both > chunks. Yep, sorry. I will fix it up tomorrow. -- Cheers, Stephen Rothwell