Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1006700pxf; Thu, 1 Apr 2021 21:17:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEqiPYZvUQ8QgVcbc3Q7U1CkZKWdYytqlvLDTazNJYLbUQwliRIioP5ktYZ//3sIzuMPQX X-Received: by 2002:a17:906:368c:: with SMTP id a12mr12490991ejc.389.1617337030146; Thu, 01 Apr 2021 21:17:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617337030; cv=none; d=google.com; s=arc-20160816; b=0p1aJSS5wBh3xJmp+Uf64B7kMjJ/Gl1NCcK5aQQ/e1XUmw1IseMtbSTj9gAX9EzWgo YlfJiCDW3tMrPrkPrLUVQx5EPNaSvoM/sVDJZPCcXttku9KzRh+eN04S9btD7liL/DT4 7IP+QDU+5thvDFPrVAs00ZekCe3Mm44SF4er43BCJfFSPidou3VNIeGlW1PINmKxRVJ3 h7zphDG+P9S6W1mdMxft5OVMbF/hOGFXJm0Eq4JsQ38BG+dEF2Vo/9mXJw6FKQBhhbGz KbKAaKX4wlwAJ5ch4+UzOWcic4mFA+a66D7CphaH+XWoNIYR+PtMCu5e737m12KCoTyu ejtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=aTF4DSgy0PHbD8hdS+0qJlLOgVDSXpSKNN+yUg9A0Hs=; b=f9QlX891TuwdIJQI2yVgi+7L3hau8mKz1+ICaghRctUuXqM3F28yigT0EAu0LeWBBB ScDnXjdF+RoTioI6ZV9uZoU0Zm7EIZZq8Sytfk3TTohWO7ghU8nhH8eJI9cOeI2DS7NS n5bzKAtib+bcYLPxUg0mMW3cmOtuyneMxETyiCA0sHzVBDDoeAkqz1x//ATHOD3a478T 3yDSIguDPRWseSXTPFxV1hxbnu+MJYM1rzs6kOTdsTFV5qKhi4jv9/T/Dg1qEeUQBZ+9 kO0XeqKfVz/vwhzUWZN1eqLq5uyiQ+SyG9W97/YJim/f8RB8MiexuTq8KChwcNfEfoWt D1iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=IOwAv1pJ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bs1si5879970edb.64.2021.04.01.21.16.47; Thu, 01 Apr 2021 21:17:10 -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=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=IOwAv1pJ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229663AbhDBEOi (ORCPT + 99 others); Fri, 2 Apr 2021 00:14:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229518AbhDBEOh (ORCPT ); Fri, 2 Apr 2021 00:14:37 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C009C0613E6 for ; Thu, 1 Apr 2021 21:14:35 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id x13so3658531wrs.9 for ; Thu, 01 Apr 2021 21:14:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=aTF4DSgy0PHbD8hdS+0qJlLOgVDSXpSKNN+yUg9A0Hs=; b=IOwAv1pJyRJV4gn9mjCUoyrx9uKAxA+FBfNG9Mf4HIXV+pvQHAitUv7k5D3+aOt41l GgTI/wiTUT5w5zeKpjSfD/MrilhGKYx/6q2TpM7IabcdfcmJOlAjTqWunt61zo7wi708 CGGDUhtD+1zL/KGi9MTQdV0YcKnKiDUn+wcriEoGsN9rH9BZ++dDSV4jof7EyvkIkNXI NNcdilvjzbV3PJxlQf0UEA3QYia9hqMrQl8WTpV0itVsIDOcez06rZ9/cRYZ9Rk3UFNu hg9I/2eIGjJ47UU7VT2oRMh14v1ZJQaKH9Zi8YWoZZCH+xi5ybGoghfYn4cHqMlRz8z1 1dmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=aTF4DSgy0PHbD8hdS+0qJlLOgVDSXpSKNN+yUg9A0Hs=; b=SWHTpI27ycMg/8stsPUx841EmAPiNCaNJ4KPpdTQay5WHk15x0rZ/iZc3BSGORLYji LJ1xB3qsCqHtirtbGO64BMFyt2gNiaSDJt2ZflxZzoiPXgHO5trC2UGIvUnsFUgDJ8An oeYxJs+Sw4BxuPSXAFlFZtQrH0xRQ9ZtVIYopWF+9dO7YFtUb0km5xowc2C9fXzsVekw ySEzh0OJdQ82nhLtz+wsD2dzzkZz+ArJN79Xtc7ZmjosP/yMhuhPNTmb4JdY1A/Drp8H 53jOtxW/csVZ0xkFaV+Q46kaNnaW9EsObmtTV1PP7Y7FY7rSHsv/Jy0L1DD/pAEUwheA UVQg== X-Gm-Message-State: AOAM5333aLctSVbFyJTJ/1qis8gz4D3azzO8/X5WN+IODk7aTqRt/bL9 s308M9gerqwiGOxfIBuDD2Db74QiXz2Igh9nYPOMTA== X-Received: by 2002:a05:6000:c7:: with SMTP id q7mr13176764wrx.356.1617336873672; Thu, 01 Apr 2021 21:14:33 -0700 (PDT) MIME-Version: 1.0 References: <20210401002442.2fe56b88@xhacker> <20210401002949.2d501560@xhacker> In-Reply-To: <20210401002949.2d501560@xhacker> From: Anup Patel Date: Fri, 2 Apr 2021 09:44:22 +0530 Message-ID: Subject: Re: [PATCH v2 9/9] riscv: Set ARCH_HAS_STRICT_MODULE_RWX if MMU To: Jisheng Zhang Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Andrey Ryabinin , Alexander Potapenko , Andrey Konovalov , Dmitry Vyukov , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Song Liu , Yonghong Song , John Fastabend , KP Singh , Luke Nelson , Xi Wang , linux-riscv , "linux-kernel@vger.kernel.org List" , kasan-dev@googlegroups.com, netdev@vger.kernel.org, bpf@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 31, 2021 at 10:05 PM Jisheng Zhang wrote: > > From: Jisheng Zhang > > Now we can set ARCH_HAS_STRICT_MODULE_RWX for MMU riscv platforms, this > is good from security perspective. > > Signed-off-by: Jisheng Zhang Looks good to me. Reviewed-by: Anup Patel Regards, Anup > --- > arch/riscv/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig > index 87d7b52f278f..9716be3674a2 100644 > --- a/arch/riscv/Kconfig > +++ b/arch/riscv/Kconfig > @@ -28,6 +28,7 @@ config RISCV > select ARCH_HAS_SET_DIRECT_MAP > select ARCH_HAS_SET_MEMORY > select ARCH_HAS_STRICT_KERNEL_RWX if MMU > + select ARCH_HAS_STRICT_MODULE_RWX if MMU > select ARCH_OPTIONAL_KERNEL_RWX if ARCH_HAS_STRICT_KERNEL_RWX > select ARCH_OPTIONAL_KERNEL_RWX_DEFAULT > select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT if MMU > -- > 2.31.0 > > > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv