Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp343767imk; Sat, 2 Jul 2022 20:28:57 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tUFO+UoZhgIyRF8o9ppmoyIMzNPhxP1M7RySzUm5GfUzIrf9S6Q9HfZlz/BYH6I2EA6VvE X-Received: by 2002:a17:90b:1d0e:b0:1ef:1a2c:c628 with SMTP id on14-20020a17090b1d0e00b001ef1a2cc628mr26619130pjb.52.1656818937041; Sat, 02 Jul 2022 20:28:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656818937; cv=none; d=google.com; s=arc-20160816; b=yqZuys3YG43d9kk8ZBEF4RzE7c6WN4wmiOgV3HAaFnG1zhnOrC1Qc3sd9Smre5oKvS eaTJUdBoo0PS9CWWa28eXugiWW52Z6yEOt+U5e4tnF4ZqECdmFJyT+B5E15Kso2AW/Ds VjxzKGZPYmt8wzgM8h36smH5MPeWIFmeq9LFuWUc0F+3st8k4n9P5aMvgHOYpTjs10Tv wtZNW//etvzpfd+ygmMD2PcccNObhuxYeMXDKMIpSosrEZ+cHxN8fB5kosPVd2YZtM3p UrUXCf/o/v7sxvRG9Cuhc9csZLiT0alRkhntMsb4lcC8u0IsjXgd7b6mhYsyFT0e/PHa wMiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature:dkim-signature; bh=x4WmoTt24eWzRTJZhIalJOXB7pNwqPYQ1FuSYn8+d9A=; b=pCqcncboOH2cFNxG6fmVswShUWw1fTc5EuJFtu0ZhfFokVFURk5EndPvWrEPIUXBVW M1ctLhni1V6sWQfZ29QVUxnIgvVI+XDD6VUNt+bYiNGE6o6b4Aw2t/BV+1bkctsxbNbt 307sp5AgTilzEyILw/Ab+egzlPs0AeJE2V9a6f7cMVX033rUQcSYtXyIx1lAXLcSglN1 cw8rk1nNVJa9mGJz8/BB4UQXoiFku6n/4cgNXXRJoxmiAdF3iulZcc79oCxm/wo5FH1X BlhgkGyO2reR5c+P3BC9KDb9/9lxFaWlR89pITR9Gu/+5FvO2QGJ1LHOMQdcv3+cmBrQ zN1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@anarazel.de header.s=fm2 header.b=bAwRgReF; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=DxxqsIdc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l5-20020a17090a72c500b001ecf568112bsi16808895pjk.139.2022.07.02.20.28.44; Sat, 02 Jul 2022 20:28:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@anarazel.de header.s=fm2 header.b=bAwRgReF; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=DxxqsIdc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230261AbiGCDPD (ORCPT + 99 others); Sat, 2 Jul 2022 23:15:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229486AbiGCDPA (ORCPT ); Sat, 2 Jul 2022 23:15:00 -0400 Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 081749FC9; Sat, 2 Jul 2022 20:15:00 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 6327A3200911; Sat, 2 Jul 2022 23:14:58 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Sat, 02 Jul 2022 23:14:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; t=1656818097; x=1656904497; bh=x4WmoTt24e WzRTJZhIalJOXB7pNwqPYQ1FuSYn8+d9A=; b=bAwRgReFe7CbA2xFUNt0WHDFIo RD2r3TjrEX/BqQlKWw3DivtRSoQA2n894kRaiFtMIshuV/2oTm33EPDGjKIWEHQu OAm1zzpnL+ZmkvrpS6l0eFfcJIBs7jwmmA9hf0EWsDTmnaE7nalElBLMiR9qtHBv OhheINrFlHACMKEYxGXyFENJeDjx0Z7zqaLIZTNu4/SlKgDvSfCmGUMPCp2uH4LX Bg7XpaCQJYmzFrF4eWJRbophog+WMvJdNZ0y1nk+uioz9xb4pTRhKAMt74luxZYs 0x/xzsBKT14WPoEoO4HVsU3n/MJ3DcAmevMmSdJysq3f5QgfhO6gbzcoJcDQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1656818097; x=1656904497; bh=x4WmoTt24eWzRTJZhIalJOXB7pNw qPYQ1FuSYn8+d9A=; b=DxxqsIdcYFR6din0XJSoCh4JegE1uD3zK7zuNiewzjEG CBnChItw8ZKYJzyK0LpRR2LSPSQhRNscgVFz/3mR5wOxmTXJGbO76OUcbOFx8pjn F88mHuJ8xGbHW57t8JPVWC27ShTd2fL6B/IgkupJQDNm7jtWvHTynyWrNSfFEbyu a3htzRFQrXaIwXzAMqZfUyztY+k8zYTI58akxaclUagULRZDAWhnb3QSAZj8rASO go9nxdStAQANEXD5Hl9W+PrIpEs5v1YqLfKW/zfy+SkkUj5kyROfhqUoIkMED8cg 4zxDkjcoWDhJLFOmJVcz+PK0btVjchswvHR/jOLWhg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudehiedgjedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughr vghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrf grthhtvghrnhepvdfffeevhfetveffgeeiteefhfdtvdffjeevhfeuteegleduheetvedu ieettddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh eprghnughrvghssegrnhgrrhgriigvlhdruggv X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 2 Jul 2022 23:14:57 -0400 (EDT) Date: Sat, 2 Jul 2022 20:14:56 -0700 From: Andres Freund To: Alexei Starovoitov Cc: Song Liu , bpf , Network Development , LKML , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Kernel Team , Peter Zijlstra , X86 ML , Ilya Leoshkevich , Song Liu Subject: Re: [PATCH v9 bpf-next 9/9] bpf, x86_64: use bpf_jit_binary_pack_alloc Message-ID: <20220703031456.rsj4ruqmcr34mnsd@alap3.anarazel.de> References: <20220204185742.271030-1-song@kernel.org> <20220204185742.271030-10-song@kernel.org> <20220703030210.pmjft7qc2eajzi6c@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 2022-07-02 20:03:56 -0700, Alexei Starovoitov wrote: > On Sat, Jul 2, 2022 at 8:02 PM Andres Freund wrote: > > On 2022-02-04 10:57:42 -0800, Song Liu wrote: > > > From: Song Liu > > > > > > Use bpf_jit_binary_pack_alloc in x86_64 jit. The jit engine first writes > > > the program to the rw buffer. When the jit is done, the program is copied > > > to the final location with bpf_jit_binary_pack_finalize. > > > > > > Note that we need to do bpf_tail_call_direct_fixup after finalize. > > > Therefore, the text_live = false logic in __bpf_arch_text_poke is no > > > longer needed. > > > > I think this broke bpf_jit_enable = 2. > > Good. We need to remove that knob. > It's been wrong for a long time. Fine with me - I've never used it before trying to verify I am not breaking tools/bpf/bpf_jit_disasm... And yea, it does look like it bpf_jit_dump() was called too early before that commit as well, just not as consequentially so. Greetings, Andres Freund