Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752066AbdDDG21 (ORCPT ); Tue, 4 Apr 2017 02:28:27 -0400 Received: from mail-pg0-f54.google.com ([74.125.83.54]:35663 "EHLO mail-pg0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751005AbdDDG2Z (ORCPT ); Tue, 4 Apr 2017 02:28:25 -0400 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 To: Will Deacon From: Stephen Boyd In-Reply-To: <20170323142239.GL29752@arm.com> Cc: James Morse , Catalin Marinas , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Laura Abbott , Mark Rutland References: <20170217011959.26754-1-stephen.boyd@linaro.org> <58A6D7D7.1030704@arm.com> <148734678579.30076.8827985106565313944@sboyd-linaro> <58AACE92.4040608@arm.com> <148798674891.16996.12830433270375215535@sboyd-linaro> <20170323142239.GL29752@arm.com> Message-ID: <149128730233.11428.502726622958797119@sboyd-linaro> User-Agent: alot/0.6.0dev Subject: Re: [PATCH v2] arm64: print a fault message when attempting to write RO memory Date: Mon, 03 Apr 2017 23:28:22 -0700 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id v346SVq2010847 Content-Length: 1013 Lines: 20 Quoting Will Deacon (2017-03-23 07:22:39) > On Fri, Feb 24, 2017 at 05:39:08PM -0800, Stephen Boyd wrote: > > Quoting James Morse (2017-02-20 03:10:10) > > > > > > You're right the user-address side of things will get caught in do_page_fault(). > > > I was trying to badly-explain 'is_permission_fault(esr)' isn't as general > > > purpose as its name and prototype suggest, it only gives the results that the > > > PAN checks expect when called with a user address. > > > > Ok. I'd rather not change the function in this patch because I'm only > > moving the code around to use it higher up in the file. But if you > > prefer I can combine the code movement with the addition of a new 'addr' > > argument to this function and rework things based on that. > > Are you planning to send a v3 of this? > Sorry for the late reply. I was hoping that James would indicate preference one way or the other. I suppose no reply means "yes" here, so I'll go ahead and fold everything together into one patch and resend.