From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752153AbdFAQxA (ORCPT ); Thu, 1 Jun 2017 12:53:00 -0400 Received: from foss.arm.com ([217.140.101.70]:58886 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752078AbdFAQw4 (ORCPT ); Thu, 1 Jun 2017 12:52:56 -0400 Date: Thu, 1 Jun 2017 17:52:06 +0100 From: Mark Rutland To: Dmitry Vyukov Cc: Andrey Ryabinin , Andrew Morton , Catalin Marinas , Will Deacon , LKML , kasan-dev , "linux-mm@kvack.org" , Alexander Potapenko , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 3/4] arm64/kasan: don't allocate extra shadow memory Message-ID: <20170601165205.GA8191@leverpostej> References: <20170601162338.23540-1-aryabinin@virtuozzo.com> <20170601162338.23540-3-aryabinin@virtuozzo.com> <20170601163442.GC17711@leverpostej> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 01, 2017 at 06:45:32PM +0200, Dmitry Vyukov wrote: > On Thu, Jun 1, 2017 at 6:34 PM, Mark Rutland wrote: > > On Thu, Jun 01, 2017 at 07:23:37PM +0300, Andrey Ryabinin wrote: > >> We used to read several bytes of the shadow memory in advance. > >> Therefore additional shadow memory mapped to prevent crash if > >> speculative load would happen near the end of the mapped shadow memory. > >> > >> Now we don't have such speculative loads, so we no longer need to map > >> additional shadow memory. > > > > I see that patch 1 fixed up the Linux helpers for outline > > instrumentation. > > > > Just to check, is it also true that the inline instrumentation never > > performs unaligned accesses to the shadow memory? > > Inline instrumentation generally accesses only a single byte. Sorry to be a little pedantic, but does that mean we'll never access the additional shadow, or does that mean it's very unlikely that we will? I'm guessing/hoping it's the former! Thanks, Mark.