Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp610828pxj; Fri, 11 Jun 2021 07:11:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzA2ki2jsVuGXMtLDWU3EHh5LT3QvPjcfBK8GcEY22FdEJGjqU4JpVOpz6IEqj3NQ1cNcCC X-Received: by 2002:a05:6402:26c7:: with SMTP id x7mr3916854edd.383.1623420706859; Fri, 11 Jun 2021 07:11:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623420706; cv=none; d=google.com; s=arc-20160816; b=0B7n2lNgxULI7Ewd5gWfVeI5Ur+cgaDQZjU0kN3CQMX22oS8NZJ7YCwRQ7m1aZ81jp feRMyvVWSbBv4/3U1XhVclb/ixJYzPiAH+2PRrVMLj3epIgzeZSkBwlrQNtPsd8QlOwu zx56xRzRddTo4sQ++e5cSwMTtCCCbN5/hTOMsergAPjHzGmtMBf+OOHirz1AsUpmqNsC kzFKkIu8hbUK4o3lLCkq3v+Pr8pN/FQItSrXFTpcdZyReHrnGpQoivTc8OXSNjHWfpjU vLaXc4U2nWypIvb6pKx72n50avaXAuU2jXmBAy0PnInjzUXTy/GyRr0NVQ5DRSPyzxtF VwVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from; bh=XiP3sgxN7snlDC3EBPlYw28IJBYfeyhdLQUE5fBPBnw=; b=vioedCV2vNJonoaYY0w3JZM0b71k93KZd4MVYTBq7+a6YUM9BrTYj7z35QryOhNRB8 DmJjw3Y0MnDrdb/yBblPv9SQz8UjcS8k+wbAZwYGdxej+Ya0obJbGlG3p7udCzI/caoe VFyOzDvNPgLOdlMG2qug9lwIjq1xA0L/Y5Pv76JuUMEz8Dg+zOl23wSitxG4WOKKSpJN ig673zTwE8Lvx730lrxpEp49c0DY7molOq6XXPkqkxgzKDt+RklD/pm7MR3MXW7o8no+ Y/QHaqGbIXuXFyfbvW+0fMSdYq9tuMKwC7+Mo65p1/ttww47DoMyMkW99Cm22AT/UVfy MV8g== ARC-Authentication-Results: i=1; mx.google.com; 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 x7si1801017edd.288.2021.06.11.07.11.22; Fri, 11 Jun 2021 07:11:46 -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; 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 S231224AbhFKOMN (ORCPT + 99 others); Fri, 11 Jun 2021 10:12:13 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:42789 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229529AbhFKOMN (ORCPT ); Fri, 11 Jun 2021 10:12:13 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4G1jR31TRzz1qt3l; Fri, 11 Jun 2021 16:10:07 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4G1jR26D3Sz1r0ws; Fri, 11 Jun 2021 16:10:06 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id blSMxjRTcGUs; Fri, 11 Jun 2021 16:10:04 +0200 (CEST) X-Auth-Info: dkbXKa2FuB4b08eUrov5kSul9UpeLtIdhCkDN2zB3p004oJgCtYlXEmO7oD1pnrg Received: from igel.home (ppp-46-244-189-84.dynamic.mnet-online.de [46.244.189.84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Fri, 11 Jun 2021 16:10:04 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 01ABD2C365F; Fri, 11 Jun 2021 16:10:03 +0200 (CEST) From: Andreas Schwab To: Jisheng Zhang Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Andrey Ryabinin , Alexander Potapenko , Andrey Konovalov , Dmitry Vyukov , =?utf-8?B?IEJqw7ZybiBUw7ZwZWw=?= , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Luke Nelson , Xi Wang , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, netdev@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [PATCH 7/9] riscv: bpf: Avoid breaking W^X References: <20210330022144.150edc6e@xhacker> <20210330022521.2a904a8c@xhacker> X-Yow: Look!! Karl Malden! Date: Fri, 11 Jun 2021 16:10:03 +0200 In-Reply-To: <20210330022521.2a904a8c@xhacker> (Jisheng Zhang's message of "Tue, 30 Mar 2021 02:25:21 +0800") Message-ID: <87o8ccqypw.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mär 30 2021, Jisheng Zhang wrote: > From: Jisheng Zhang > > We allocate Non-executable pages, then call bpf_jit_binary_lock_ro() > to enable executable permission after mapping them read-only. This is > to prepare for STRICT_MODULE_RWX in following patch. That breaks booting with . Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."