From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932682AbcLMMcg (ORCPT ); Tue, 13 Dec 2016 07:32:36 -0500 Received: from foss.arm.com ([217.140.101.70]:50132 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932297AbcLMMcf (ORCPT ); Tue, 13 Dec 2016 07:32:35 -0500 Date: Tue, 13 Dec 2016 12:31:44 +0000 From: Mark Rutland To: Laura Abbott Cc: Ard Biesheuvel , Will Deacon , Catalin Marinas , Andrey Ryabinin , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andrew Morton , Marek Szyprowski , Joonsoo Kim , linux-arm-kernel@lists.infradead.org, Alexander Potapenko , Dmitry Vyukov , kasan-dev@googlegroups.com Subject: Re: [PATCHv5 09/11] mm/kasan: Switch to using __pa_symbol and lm_alias Message-ID: <20161213123144.GB24607@leverpostej> References: <1481068257-6367-1-git-send-email-labbott@redhat.com> <1481068257-6367-10-git-send-email-labbott@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1481068257-6367-10-git-send-email-labbott@redhat.com> 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 Tue, Dec 06, 2016 at 03:50:55PM -0800, Laura Abbott wrote: > > __pa_symbol is the correct API to find the physical address of symbols. > Switch to it to allow for debugging APIs to work correctly. Other > functions such as p*d_populate may call __pa internally. Ensure that the > address passed is in the linear region by calling lm_alias. > > Reviewed-by: Mark Rutland > Tested-by: Mark Rutland > Signed-off-by: Laura Abbott > --- > v5: Add missing lm_alias call > --- > mm/kasan/kasan_init.c | 15 ++++++++------- > 1 file changed, 8 insertions(+), 7 deletions(-) > > diff --git a/mm/kasan/kasan_init.c b/mm/kasan/kasan_init.c > index 3f9a41c..922f459 100644 > --- a/mm/kasan/kasan_init.c > +++ b/mm/kasan/kasan_init.c > @@ -16,6 +16,7 @@ > #include > #include > #include > +#include Nit: include ordering. Regardless, my tags above still stand! Thanks, Mark.