From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed2-f31.google.com (mail-ed2-f31.google.com [74.125.228.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A5CC83F9A13 for ; Wed, 30 Sep 2026 07:07:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.228.95 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790752073; cv=none; b=JPm6XUNUnz9K+LSut1IH9uQiq5FF4Hrvn2WaWZqDIxdzW3HdpQ4qrBKGDRwMxqDJX4u993urBwiX0bDBKFR3TQKc/HUYa4EvbhVL7RHJF3r0ZdBfyHMYngMI/J6LkJzwH3koDYZEuarDMpk9gU+WLVr5wScrk7n52clFh9pbaV4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790752073; c=relaxed/simple; bh=rtEvlpc5RFKwgsy5Faq1Dvca+J9Y2+1PDgdNAuQ81Ko=; h=From:Date:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Oe9b8nDH5x/z/r+9mqQC991lOqpCRLwT2wzOk4iE+j2rq3KcJl38aAQYzqcQGOvNaZJpaiI64RO8ZH6f1tR9gsfkwky1wL5EjnXk5FaKAbklq+TnMtb+U0CwwcsbUUlPXad3TTs7qfDq/OwLKenUP1l4teNyH3/b8TVw1xT+80k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Szt92RVN; arc=none smtp.client-ip=74.125.228.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Szt92RVN" Received: by mail-ed2-f31.google.com with SMTP id 4fb4d7f45d1cf-6ae19319854so211925a12.3 for ; Wed, 30 Sep 2026 00:07:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790752070; x=1791356870; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:date:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=yPxo5oIesTw/2A8ukKykJpHFhPhcqo3C0UATOY1SYVs=; b=Szt92RVNxsQONHzDiByv/n6PzMGv6h4y6UjVPybFbLRgpjjr8QfsRew1uLr9hQLYxx v70iODpytwPPiZYybLrv13lZWJUfKQw07NWrpb+D7hNlOLrXmxPPFWiy1WUI9OceA/sK I25m64P9h0V38DW/pjKltS3kqj2FjuAo5ymbtKRxkG8XCSrYjUvotKHL2+yE3F9rKsjz Q3+0TLkQl8cLx+wRkjEesdTx9do2aCfAijl1cwDEibmvR8j9goP/sE1l+ksr3fFFp6AT NMdtazOwUg0Yw4UG/z79KEpHrmSYqR8lYQZNc4as5C53Cf9aSkDxPTbRJxJCL9HlEaCv Y7Bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790752070; x=1791356870; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=yPxo5oIesTw/2A8ukKykJpHFhPhcqo3C0UATOY1SYVs=; b=BUn/utE9lSzCgJjAwSBw0/YAOSeuj3x/yWqAMcz3pREggzElnt9aM+gOjmh9+c5JzL daot94wLnnaasyjMCPkXpnMktOogQhta6fhN603tzVIwa+ytPJD3I64PfIcyVJC/Hed4 /NNEWnGSv5QVxNQdlzALhLTtChUgFgfzQWfBmPhMku+w7QAVALMaNkodrgqRRIcSjszQ Y7c+6gJIUUpxCqmAVLrOkBtN0Cz/po1LvRSBFXd6ODEv+6KIT5GQPmsWMZLQIBsRHHnZ hrLe8I9xw199ERNn4+pH8bw7PzAH1O8C1GUx4Rl4EnRQe5TGmFL3Mzk7sP3MrZEjdi95 RXGQ== X-Forwarded-Encrypted: i=1; AKwUvBwNvzxPVVUhu95MzuENxx6A47Y2tMsKqP0s1da5b5VPWmB/2/HhztiyCIgiTtvUbg+IjaFslbj62i+nYD8=@vger.kernel.org X-Gm-Message-State: AFq9FYLHGpTyVmwQzQQ8IKhzXTC/Lw+gV4xNJUSgmzSyKLppjXnfTnfG 01DioWq/NWdtTg3qO9rLkNw1S0HO711eNynByQL4AeNUvjMl+q92vEeL X-Gm-Gg: AYBFou2pljELUT708YdmwPK0dryBWsVBLv5ByYrTIWgL3LfUhowhfa2rDI2YNSl6hKZ 8xWOjr0fDXYgj7Fxo/v4/EPtfnn9JkzJFmSmhT9nwfgGGMjVaRsV47gM5+b1uVF3B9nv/QXZHHP IXB5D22WUZXcy14gtyxvBfYwYxTiigwVqsh7XtIEbe37WYixKOS7b8rNe1fI24ukpcBfvUlRB4q j1IOWYQzjwYJINZSBOmmdlKxt5aDgUmRHDgTfnN/e/FKxpY4LbWrWvM2RH5anO8wptwFCfOQ9ou BlW/dBtDuP93FbMdJmzsYL//ANiEMIDyJMUppFblldxDGZpuQ7qKWiGfvuwznhoHKwDBClnCzUh Gu6P8jX6rtoU1252y2bVoP9WiCpcs+YVf6B3QKbxob3vQjIHBTgtBseGZ2Po2DqaRMJlDB19OR8 nahGiTZoNunGvXEmEaWCUxFxqXUy24lqaTQltnHZz8PaFL+LxU0aUnp0gcBw== X-Received: by 2002:a05:6402:4613:b0:6ae:160a:58a6 with SMTP id 4fb4d7f45d1cf-6ae19963b9cmr194812a12.36.1790752069491; Wed, 30 Sep 2026 00:07:49 -0700 (PDT) Received: from krava ([173.38.220.48]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6ae1558d9b5sm325750a12.17.2026.09.30.00.07.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Sep 2026 00:07:48 -0700 (PDT) From: Jiri Olsa X-Google-Original-From: Jiri Olsa Date: Wed, 30 Sep 2026 09:07:47 +0200 To: Mark Brown Cc: Kumar Kartikeya Dwivedi , Eduard Zingerman , Daniel Borkmann , Alexei Starovoitov , Andrii Nakryiko , bpf , Networking , Florent Revest , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: manual merge of the bpf-next tree with the bpf tree Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Tue, Sep 29, 2026 at 03:56:51PM +0100, Mark Brown wrote: > Hi all, > > Today's linux-next merge of the bpf-next tree got a conflict in: > > arch/x86/net/bpf_jit_comp.c > > between commit: > > 17637e1a581a2 ("bpf: Skip detached progs in trampoline images that are still in use") > > from the bpf tree and commit: > > 29fcf9ce4bbdf ("bpf, x86: Use global buffer for trampoline size generation") > > from the bpf-next tree. > > I fixed it up (see below) and can carry the fix as necessary. This lgtm, thanks jirka > is now fixed as far as linux-next is concerned, but any non trivial > conflicts should be mentioned to your upstream maintainer when your tree > is submitted for merging. You may also want to consider cooperating > with the maintainer of the conflicting tree to minimise any particularly > complex conflicts. > > diff --cc arch/x86/net/bpf_jit_comp.c > index 6bca87457e872,6c7a0578760e7..0000000000000 > --- a/arch/x86/net/bpf_jit_comp.c > +++ b/arch/x86/net/bpf_jit_comp.c > @@@ -3817,25 -4152,15 +4158,15 @@@ out > int arch_bpf_trampoline_size(const struct btf_func_model *m, u32 flags, > struct bpf_tramp_nodes *tnodes, void *func_addr) > { > - struct bpf_tramp_image im; > + struct bpf_tramp_image im = {}; > - void *image; > - int ret; > > - /* Allocate a temporary buffer for __arch_prepare_bpf_trampoline(). > - * > - * We cannot use kvmalloc here, because we need image to be in > - * module memory range. > - * Since it must be writable use execmem_alloc(EXECMEM_MODULE_DATA) > - * that returns writable memory in the module address space. > - */ > - image = execmem_alloc(EXECMEM_MODULE_DATA, PAGE_SIZE); > - if (!image) > + if (!trampoline_size_image) > return -ENOMEM; > > - ret = __arch_prepare_bpf_trampoline(&im, image, image + PAGE_SIZE, image, > - m, flags, tnodes, func_addr); > - execmem_free(image); > - return ret; > + return __arch_prepare_bpf_trampoline(&im, trampoline_size_image, > + trampoline_size_image + PAGE_SIZE, > + trampoline_size_image, m, flags, > + tnodes, func_addr); > } > > static int emit_bpf_dispatcher(u8 **pprog, int a, int b, s64 *progs, u8 *image, u8 *buf)