Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1105396ybl; Fri, 6 Dec 2019 11:19:32 -0800 (PST) X-Google-Smtp-Source: APXvYqyWDPWYqgD6BdfBedgVOZ4DHm7qhvz0Rb1+Cbv7D3BynxSeUqqmiFBVMrmnpA08rs/Xi6Ui X-Received: by 2002:aca:815:: with SMTP id 21mr14168107oii.52.1575659972045; Fri, 06 Dec 2019 11:19:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575659972; cv=none; d=google.com; s=arc-20160816; b=HZyXy4UVhg7U8yyoaTRPQ3MJbjWfVNMxOLgVPH1146VwTQXQGksCLmLToGwrx6elmK a3OA1Okl8BQxn3Z0fyYjOnPxLw7SfItQwBa9VLhz2EuRX+8lBJwmMDVxzKJP0LCKWn6v Z4vD9uDDVbAHp1xsCIXRWlTp7sLgQjIWO7A9wwigagki6p5LaJiLQeQFquEe8aNSvod+ K85W6xcfJDacrcjU2W3EI1uGyhsOoVEXglBiQao5EhTJIrZWWkVApEYXMT4zq/88Bp31 SeNmsY7icXZsri+O0YYGBeFhJatUoxQaR4zmJvzFgpeDAORO5JNdyJmzzLR+R1TmwE1B zr7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:references:subject:cc:cc:cc :to:from:date:message-id; bh=gv9fsA6Ao/pebDnTI1hmSbmmPR6XS0w88Vxh8VJ2D7U=; b=gEexE660fw1axA0PnTdSk3EdUSaj4lAnt2i7Ul4/pwzWsZqos3pK2+m8JtAlOIkunR zMkcDjOMDKZOpKplkq1inTzNUuRc15rSUD3+LdHsWWNX7XVXG7Y0RCcrdS4m0X6j+8CG 3qQxBSo++0b5ehdpq3EPSqgnkTlr6BoAi4eGCToTyOX25yp7EbRqTZOa1YGSA1KeSM2Z xRQHP5Zin8L+9LE5ZFj9Bsh3AQ1DkbRdeI9uP/t4oOXUu4LzVmMA/C0ggMqGc/Dw5SPr TOzyW3YNXphNxSLmK/8BKdsTB0+gcDUFhbiDpSnVC0K+xT7MWYnxNdxpYWWf2bRjm1CN gsBg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c131si7879051oib.267.2019.12.06.11.19.19; Fri, 06 Dec 2019 11:19:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726511AbfLFTSv (ORCPT + 99 others); Fri, 6 Dec 2019 14:18:51 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:44119 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726298AbfLFTSt (ORCPT ); Fri, 6 Dec 2019 14:18:49 -0500 Received: by mail-pf1-f193.google.com with SMTP id d199so3804720pfd.11; Fri, 06 Dec 2019 11:18:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:to:cc:cc:cc:subject :references:in-reply-to; bh=gv9fsA6Ao/pebDnTI1hmSbmmPR6XS0w88Vxh8VJ2D7U=; b=RpTaUzRZvghYPxU0ZAERA+PqOQ5ObyBJk5E4gvl76rNbfS4L7RyCU/9y/5G7NxsXxh w0YNElLtCdza4X+tgG0RbVJMHAQHlZERO1P0mDvVWrgJF9Yy2uI+ULqmvmiXqYNgqraV i1E/VbUeyydz5WEUNrapWI/NxrqxyvgA/lc6GsqOhdh/VakTN2v4BnuxYXzNOI2vMFN+ /BFyu7OTZIxFMffR3f5x09QGtIEuES1n2QjlSvL9QpW9KyV6mwGFlLBMOargsNTIskkE JoX8eYU1Xb9txqRdsXuWkpAwGXUFyIPmhIF6bL/Fbu61GIvIDYVUadJnIIl6v+twzkVO ziiA== X-Gm-Message-State: APjAAAXVZqxZPfn671wg30zsC3OnWQk0g/9PyYJagqykgMB63+V5wPAR 1OIlzzRotTdkW7WWo4Bmqqk= X-Received: by 2002:a63:4b52:: with SMTP id k18mr5207178pgl.371.1575659928396; Fri, 06 Dec 2019 11:18:48 -0800 (PST) Received: from localhost (MIPS-TECHNO.ear1.SanJose1.Level3.net. [4.15.122.74]) by smtp.gmail.com with ESMTPSA id z26sm15634408pgu.80.2019.12.06.11.18.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Dec 2019 11:18:47 -0800 (PST) Message-ID: <5deaa997.1c69fb81.4d5ed.a377@mx.google.com> Date: Fri, 06 Dec 2019 11:18:47 -0800 From: Paul Burton To: Alexander Lobakin CC: Paul Burton CC: Ralf Baechle , James Hogan , Hassan Naveed , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , Alexander Lobakin , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, stable@vger.kernel.org CC: linux-mips@vger.kernel.org Subject: Re: [PATCH mips-fixes] MIPS: BPF: eBPF JIT: check for MIPS ISA compliance in Kconfig References: <20191206080741.12306-1-alobakin@dlink.ru> In-Reply-To: <20191206080741.12306-1-alobakin@dlink.ru> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Alexander Lobakin wrote: > It is completely wrong to check for compile-time MIPS ISA revision in > the body of bpf_int_jit_compile() as it may lead to get MIPS JIT fully > omitted by the CC while the rest system will think that the JIT is > actually present and works [1]. > We can check if the selected CPU really supports MIPS eBPF JIT at > configure time and avoid such situations when kernel can be built > without both JIT and interpreter, but with CONFIG_BPF_SYSCALL=y. > > [1] https://lore.kernel.org/linux-mips/09d713a59665d745e21d021deeaebe0a@dlink.ru/ Applied to mips-fixes. > commit 3721376d7d02 > https://git.kernel.org/mips/c/3721376d7d02 > > Fixes: 716850ab104d ("MIPS: eBPF: Initial eBPF support for MIPS32 architecture.") > Signed-off-by: Alexander Lobakin > Signed-off-by: Paul Burton Thanks, Paul [ This message was auto-generated; if you believe anything is incorrect then please email paulburton@kernel.org to report it. ]