From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 99AC1C433EF for ; Fri, 29 Apr 2022 11:14:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=v9PuZpoN+ibtg4iAyDlW4w+YrmAP0k4ga2JXgOZVsK8=; b=f2Uje6+9yO0VbP NQDvTJzyVnLlflW0bqZXc4PNTgJQ3GbbY0wPS/VaNYNGAzHe02F85nlu7j5v77myqHkAQfUSwPODB u1OH7FPjRGxVsaSXYMgV5WNoxFwxOB6g30eVJnFz4t7bf+h8ooVQUQXan9V48+RnxBJO837qyVBDS 3v1jV7+gD32bXwq/v4swyloOpGQiM6XfNliix9JKvVUzLrnZJXtLJuOjZTYdE30syBYuC4P8vblW0 21nwJj5UIJ9jJ2NRCkK7JDgpM7VoflixzCv4FfUvf+zGdLsAKMMKq/juRfXd/HFLD4Djt/5RsYTDn kmfSKwDUv6B7gTnzalPw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nkOZF-00Avhi-Di; Fri, 29 Apr 2022 11:13:45 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nkOZD-00Avhb-P2 for linux-arm-kernel@bombadil.infradead.org; Fri, 29 Apr 2022 11:13:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=wngx08weWCsGmrxDEzleetcbBBNl+025DlLgISUAOGs=; b=dQr3UDV5puAox9JOzqPeNILDHr Bmblwr9zthFLj9d5KYh+qi+eAMMaSAz3qdpNvMnFy/n9c1UrWiTYOIQpgWZnuQSfk+bQNmEv+LfKs mDBfH/QS5ylxcpTTIPr1sLCwyLVh8MyQLOF+g/0UZfwY/oEuXKx2LStP3PQCFCWAolzhTHqOvdHoE 6KUiE0kGwciGYsyDy2YSHwgnLRQpFU2HjsRF9ToeyJmCuP3yVTXCPikU8w1Mkk1udmkJY3WELYn1k 3Az12L1ZiM4tN8HyPfIh5uZ5KmNcSKNVtY5+XAHMmlhGzJImw/gt7pjxTJXYQaLdVtZVeuVeTUupP QcXgwJvQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nkOZB-00CLRn-FC; Fri, 29 Apr 2022 11:13:41 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id A24593002B1; Fri, 29 Apr 2022 13:13:40 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 8369520295B05; Fri, 29 Apr 2022 13:13:40 +0200 (CEST) Date: Fri, 29 Apr 2022 13:13:40 +0200 From: Peter Zijlstra To: Chen Zhongjin Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, jthierry@redhat.com, catalin.marinas@arm.com, will@kernel.org, masahiroy@kernel.org, jpoimboe@redhat.com, ycote@redhat.com, herbert@gondor.apana.org.au, mark.rutland@arm.com, davem@davemloft.net, ardb@kernel.org, maz@kernel.org, tglx@linutronix.de, luc.vanoostenryck@gmail.com Subject: Re: [RFC PATCH v4 25/37] arm64: bpf: Skip validation of ___bpf_prog_run Message-ID: References: <20220429094355.122389-1-chenzhongjin@huawei.com> <20220429094355.122389-26-chenzhongjin@huawei.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220429094355.122389-26-chenzhongjin@huawei.com> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Apr 29, 2022 at 05:43:43PM +0800, Chen Zhongjin wrote: > There is a jump table encoded in ___bpf_prog_run and objtool-arm64 > can't deal with it now. Skip validate it for arm64. But, but, but, an earlier patch did -fno-jump-tables! > > Signed-off-by: Chen Zhongjin > --- > kernel/bpf/core.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/kernel/bpf/core.c b/kernel/bpf/core.c > index 13e9dbeeedf3..d702f1d83176 100644 > --- a/kernel/bpf/core.c > +++ b/kernel/bpf/core.c > @@ -2022,6 +2022,9 @@ static u64 ___bpf_prog_run(u64 *regs, const struct bpf_insn *insn) > BUG_ON(1); > return 0; > } > +#ifdef CONFIG_ARM64 > +STACK_FRAME_NON_STANDARD(___bpf_prog_run); > +#endif > > #define PROG_NAME(stack_size) __bpf_prog_run##stack_size > #define DEFINE_BPF_PROG_RUN(stack_size) \ > -- > 2.17.1 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel