Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3861828pxf; Mon, 29 Mar 2021 13:42:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdqYjYKvOR2zS6fnllx9x0bOYq2Vu2sGpvfezXEd1X3MuzyVGEgX8iDjJV9U9T8Dqo3fh4 X-Received: by 2002:a17:907:3353:: with SMTP id yr19mr9030302ejb.8.1617050577538; Mon, 29 Mar 2021 13:42:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617050577; cv=none; d=google.com; s=arc-20160816; b=XopsWXBEYJnVeP7nq+qNYigKdWqY0uEAC+aiuF2Cz74zXaibE+1aQLUQnYXxgEkBsU mmkwn1TODh7a/AXm5bne3uXrocIRuo2FTx9Tow2iPHvPq11sf0WV6gAdL6j1wsbr5Ltn bbFOwFdo9yV0VnZP9vGbOG1Sbmczq0AGskO3rVpOgJOJrtsALHwt4XboNkiJESuBeWnb +C5+UnMzDIflRsD4nCjyM5jUjvYaI2wxHXAuhk7l18UrE0gYnLlCs8WU/mH8PuH2fsrf Pesfhviux+/XB0uU/1Fbr3Rajx1B9ua5JMuKP7qzRyXRL3J+GtbIcs7tAY77pYjTtEI5 cNeA== 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=IOY00wZMw7iQ/C8A6RUq3HCwcrBzQhlsaRdSeoRLwXs=; b=dbQrxoof1SeE0GjGzOiBPHm9HqyD3D9N7gYseoPlbGajKtgTpJFRlXp0GuhmNOd4w5 lwUPw64JaBlWIwvRiIgANjtRv8Xx+wp5yaZWXgjsesnpaQrF4quyOloPg+Fm0wx7kPeS /WOOwCEVAJb+D2VQrDcN3v/ze50Z2BzpMqa4jwjwcePbNaT3SZW8/wvYbj/K/7VronAv HkCwVg+E5CWciHxYFwRtnhqSX2x7asP2ZZXUSWqXON1uAnrdRLN0xT6sAxHHv+NPvIk+ KmOQY7m5gsLzIkB3Hp5FsgA/trMhpMvhaEbbvJYqKeFvX9T7fSrVHFuqQPRr8N6wKlQY D6kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oWb6o1aH; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lf9si8061767ejc.716.2021.03.29.13.42.35; Mon, 29 Mar 2021 13:42:57 -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=@gmail.com header.s=20161025 header.b=oWb6o1aH; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231269AbhC2Ulj (ORCPT + 99 others); Mon, 29 Mar 2021 16:41:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231310AbhC2Ul0 (ORCPT ); Mon, 29 Mar 2021 16:41:26 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 386A9C061574; Mon, 29 Mar 2021 13:41:26 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id kt15so21450671ejb.12; Mon, 29 Mar 2021 13:41:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IOY00wZMw7iQ/C8A6RUq3HCwcrBzQhlsaRdSeoRLwXs=; b=oWb6o1aHOSF0DXx/yX1KkO7igNt5jO2+W5TfD710HCbj6l6risPCncqXOwLHFW7VO8 n2WqBzfjhpbiAq9xr5ewQLs6CPp7Q8JD5j46qyEd0ryBtEmnUxAZ4pz+1sCID0ewC8ux c+kDA6hixWaNdB3u91M8vSO/Rm6ab7D5cg6vvwEqrFt6JQRCTqRZ9lKp+iyrXKg1lOzD EUimB0/jrdsRXR3RobVvOwNQtAEB3wOBlRKbEWGe1h4MUnTVdVYcpmrl64UXSU/F4xU7 2UQ47VDwAE3NgXqOvtbgiNZ6wJdOIC5qg0CPJ/OAWvtEQ51hikQWiK0OlgG0pn+IzHNH OpbQ== 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=IOY00wZMw7iQ/C8A6RUq3HCwcrBzQhlsaRdSeoRLwXs=; b=cwrst70ex3yiyLbL6fuAQy2BkTaVKrv9ZBh3pBpIhrW3TLNravKg5huzSvIGNCMSyw At+iHLVM9uVPnbWvAGVvoZLhINpZebTjd2PpRmQQXgSzJiunR9yTs/6drqMwjnFUwZp1 xllOChxDF690hL361oKPNpjwz7mHgtG5CJR79KPIe7SoFFq4lCh/6eoFYaKy/WHQ/YqR J1wIixpU3eFPSSdb61ghpz0Li9pBXdGLNyfpCKnaj3zX+OLoWmHjN+jMmQzpUlylXEWJ 440/LS3amD7FIraAPNwcpuf/dD1GTr7ccarlCgIExp5MSjv8Xe39Ud13UlHy9ByjQt24 2M8w== X-Gm-Message-State: AOAM531VE8hLMYVGqoqvDC1yDXgkZT6Fu0jw8igG+K1iIGBQCki30aYE +PhivCD5KGcf/e69T33WJHeqfAOuUVOniCRmQB4= X-Received: by 2002:a17:906:73cd:: with SMTP id n13mr29275638ejl.535.1617050484980; Mon, 29 Mar 2021 13:41:24 -0700 (PDT) MIME-Version: 1.0 References: <20210330022144.150edc6e@xhacker> <20210330022454.3d0feda2@xhacker> In-Reply-To: <20210330022454.3d0feda2@xhacker> From: Luke Nelson Date: Mon, 29 Mar 2021 13:41:13 -0700 Message-ID: Subject: Re: [PATCH 6/9] riscv: bpf: Move bpf_jit_alloc_exec() and bpf_jit_free_exec() to core 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 , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Xi Wang , linux-riscv , open list , kasan-dev@googlegroups.com, Networking , bpf Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > We will drop the executable permissions of the code pages from the > mapping at allocation time soon. Move bpf_jit_alloc_exec() and > bpf_jit_free_exec() to bpf_jit_core.c so that they can be shared by > both RV64I and RV32I. Looks good to me. Acked-by: Luke Nelson