Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp815342ybz; Wed, 22 Apr 2020 08:28:59 -0700 (PDT) X-Google-Smtp-Source: APiQypJBLgyMUrBIZ2yuFKizeVSgbsKQPrpmaMyHUCnxEyXFZapvfexFa+yG7cgbaWtOrj74bggo X-Received: by 2002:aa7:dd53:: with SMTP id o19mr22937337edw.180.1587569338859; Wed, 22 Apr 2020 08:28:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587569338; cv=none; d=google.com; s=arc-20160816; b=JZIypK3OZasn3vie7TE9BTfW1qe94MT593eZ0+Sf5VpWrhUYvUxNJ12W96qq49rF40 pcvccO1izJWiip4DRVwOR/wpSmKX8oo3wTEtqRc1OphEF7FLigsaaP3aaXyJr4snoVeG 5Km7yRgoN06gHDA4Kf9jq6qIRtjTdTYIiOZzXWxFv9F7H90e9fiVDMbNlOZ3BZHQcmi3 6LNDti84Foa8lPG2/0XO2pqTom1gR34K5YI62PvllTApXZYnRyUKzPlN1Kd0IPCCg+Fu B3CylVR+d9eeTduHag9/J/2RVy/Chl+kLaKStEet7EjnDYJFl9oV7WfGaqL+8Bujbqjc WtYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=khM/oYeL6FpjA2p2DJX3lGBKv4utkbxO4SDUwrtR0ek=; b=ZeWmUZ88aJZKNgwLig+JAOhtqeCn0mVjhtM+U36jl/3TFpHVHnW+Rp5TJLj+zZjtY+ Uo1zSbGqw+gCnzMuoXxINxPweJaTKwhwvrJQLv9QqIOS0fmA36Pq8VWi6QIZUa6jF0yD Eg/Lw2M/U46WwN/RomvYh9CXigJ/Vf7lcPBC5hJ9Te3sLxGUAG9E5oOwhoap5mmRS9hK eDHhuaZaX/cH54AnGt8Yf90YdfF7kDlumlcqEf5mWS+z/eZNbPt4TtBcmfImkxcun+m1 aV3yGRSKY+4ALbG0ks5+/aYo/rbq7AQ3AHfhR6es+gDnD/9d4o819NpypXj9SEU8j1Im wo4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2nktKRWL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z6si3412228edm.108.2020.04.22.08.28.35; Wed, 22 Apr 2020 08:28:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2nktKRWL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726361AbgDVP1C (ORCPT + 99 others); Wed, 22 Apr 2020 11:27:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:46632 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726006AbgDVP1B (ORCPT ); Wed, 22 Apr 2020 11:27:01 -0400 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7D2752074B; Wed, 22 Apr 2020 15:26:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587569221; bh=iFj8MYiWc1vTLbtxX79bjqZqrGedGEOkRoAIX7PaOm0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=2nktKRWLprljtpWMUuVD9MoVOINAjjG5gwTPDM2UKS/8aCjWrkckWAnkD9y9wDRgc 6J8ImMMDeDpVDhF9TCJd9YN1hRSv9TJfa+8vlyUuYPv8ZVvyDtAk6ne9AncLpJy0JT +0Oxe0JPM8bURH6ch8grpO4+XAURnv6fcSu5F6FE= Date: Wed, 22 Apr 2020 16:26:56 +0100 From: Will Deacon To: Mark Rutland Cc: Phong Tran , steve.capper@arm.com, steven.price@arm.com, keescook@chromium.org, greg@kroah.com, akpm@linux-foundation.org, alexios.zavras@intel.com, broonie@kernel.org, kernel-hardening@lists.openwall.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, tglx@linutronix.de Subject: Re: [PATCH v2] arm64: add check_wx_pages debugfs for CHECK_WX Message-ID: <20200422152656.GF676@willie-the-truck> References: <20200307093926.27145-1-tranmanphong@gmail.com> <20200421173557.10817-1-tranmanphong@gmail.com> <20200422143526.GD54796@lakrids.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200422143526.GD54796@lakrids.cambridge.arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 22, 2020 at 03:35:27PM +0100, Mark Rutland wrote: > On Wed, Apr 22, 2020 at 12:35:58AM +0700, Phong Tran wrote: > > follow the suggestion from > > https://github.com/KSPP/linux/issues/35 > > > > Signed-off-by: Phong Tran > > --- > > Change since v1: > > - Update the Kconfig help text > > - Don't check the return value of debugfs_create_file() > > - Tested on QEMU aarch64 > > As on v1, I think that this should be generic across all architectures > with CONFIG_DEBUG_WX. Adding this only on arm64 under > CONFIG_PTDUMP_DEBUGFS (which does not generally imply a WX check) > doesn't seem right. > > Maybe we need a new ARCH_HAS_CHECK_WX config to make that simpler, but > that seems simple to me. Agreed. When I asked about respinning, I assumed this would be done in generic code as you requested on the first version. Phong -- do you think you can take a look at that, please? > Thanks, > Marm. Wow, employee of the month! Will