Article View: linux.kernel.netdev
Article #21304Re: [PATCH iproute2-next 0/7] bpf: fix mount point parsing and drop the legacy loader
From: David Ahern
Date: Mon, 23 Nov 2026 21:00
Date: Mon, 23 Nov 2026 21:00
38 lines
9255 bytes
9255 bytes
On 11/19/26 12:02 PM, Stephen Hemminger wrote:
> While looking at OSS Scanner reports noticed a pattern of issues
> around the BPF loader. The first set related to parsing of
> mount points with fscanf("%s").
>
> The next part were issues from the legacy BPF loader which
> is no longer needed. This series rips the band-aid off
> and related parts no longer needed.
>
> There were also some bugs in error handling found
> while changing all this.
>
> Note: lib/bpf_legacy.c becomes lib/bpf_util.c. "ar rcs" does not
> drop members that are no longer built, so a stale bpf_legacy.o and
> sha1.o stay in lib/libutil.a and are picked up by the link. The
> build still succeeds, but run "make distclean" to be rid of them.
>
> The libbpf build options are gone: libbpf is now always required,
> and pkg-config is the only way it is found. Both --libbpf_force and
> --libbpf_dir are now rejected rather than silently ignored.
>
> The last patch adds a tc bpf test, there was none before. It caught
> a regression in this series that the build did not: the tc/ pin
> subdirectory quietly went missing.
>
> Since v1: squashed the four libbpf configure patches into one,
> dropped the bpf_pinning fallback fix since the loader removal
> deletes that code anyway, moved the tc-bpf(8) update next to the
> change it documents, and reworded the export removal after Jamal
> pointed out that LIBBPF_FORCE=off builds did have a working
> import/run. Dropped Toke's Reviewed-by from the mount point check:
> it now also restores the pin subdirectory, so it is not the patch
> he reviewed.
>
fixed a compile error introduced by patch 6 and applied the set to
iproute2-next
Technical Details
Message-ID:
<5a7ea9e4-cc8d-4b3d-9bf3-142d31b3fea1@kernel.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369764-linux-kernel-netdev=dewy.ruReferences:
<20261119190312.578885-1-stephen@networkplumber.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369764-linux-kernel-netdev=dewy.ru From: dsahern@kernel.org (David Ahern) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH iproute2-next 0/7] bpf: fix mount point parsing and drop the legacy loader Date: Mon, 23 Nov 2026 14:00:02 -0700 Organization: Usenet Network Message-ID: <5a7ea9e4-cc8d-4b3d-9bf3-142d31b3fea1@kernel.org> References: <20261119190312.578885-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="3984173"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:9p3MTo9xdllywFS1hDwnPCbtKGM= sha256:VFI7H20GQzNkwGE+DFohvC8CT0WVdCsVpwVFASGzGVg= sha1:y36RjDTT0dLWh9HUkxZ6zloXV2A= sha256:BKJYSRHq9vpbsTFIvtKlj5NcU1favYtqJZ3TNjDsNkg= Content-Language: en-US List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id DD9C7125DC3; Tue, 24 Nov 2026 00:00:19 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BiqCk6ev6VBd; Tue, 24 Nov 2026 00:00:16 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-369764-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 676CF125D66; Tue, 24 Nov 2026 00:00:07 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 514A7261E1; Mon, 23 Nov 2026 21:00:04 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795467604; b=RWFcWait3/MN1Q6CK0ETyW/U2uwPAh0WLSQNq3I/XCrWwGRTLP5ibFqdNLFW7hJRtqdm ylHYfjb337LtcvWIbYNILKM5bOrJw+HSu94UWZDGzeUMFgwjVU+fL6xGOUvfiPNsohsQj PEtVkOkKVV9u8P4oP4THwiDm/yQ8sPwbdbF6quNYrZZW+3wiT9hOZ/5adSTGiS39ZucA+ nWGYS2kWx8ysOKeGXcwqWxPBT+P04PcCsQFUk5BZPBmoS9j0A8LQKqODFK8jOSTBYRbDQ DV1j5bCoEDWXLZsNtMpMDIt/fQdV2+rlojG91spb/YW4GmaypUq97vkswkwAFatXENg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795467604; h=X-Original-To:Received:Received:DKIM-Signature:Message-ID:Date: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:User-Agent: Subject:Content-Language:To:References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=Q2WRLbnHYblS15W10EOQGRmEfJurtksMySvdGxKi37c=; b=LpzTF0RMMnHpt1xX7t5EPT6Y6UKYLJB4Lr8ct/ivJ+TJQ1KOzt7RxW4/ZM0cTREsa9Ks /LRVL7m0yn7yq5as5cirHkntEsCcEimw3EV/WDrPD8v7dsoHsdZRanwy7A1rChQgF+r0e 4I66twY4g/s8pxpNb2XmhYouRCN4fro7bzREVKKD5bPdkXHBijuduHQ/5R/gDSN+d9CFa 8eSjWyHpA80pVYDm3s2n7aVhwhaCD3jCXkP9WnO8jmXuHrsnCcMBSix2+pCr/kr9MFLXx Jlfvz11nz43OAKasWh5Iisq+Mqgsb6qRUwFcrYVbVFSSckPHrK5tNBenBa9KvekPJLg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=SYJw3RDD; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 299BD606A332; Mon, 23 Nov 2026 21:00:04 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=SYJw3RDD X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795467603; b=R9UI3z+ZjspoWKdF7B1PRMPD9x1BuHT9Dd7LvPeoTbLs2GR/O7TuUC86UfDee0LGojKh QEwuCNEIexSOzGsxkWnDn+YXqSXg+hbd0vzJxAWzEuRKNuvxPzAkwC/iHxoVuxTtmjEGd HwbQbdi0kGtWEKBGUQy51MNUwU44IHDny9XkYV1KnlSun5JKMMwjAtYa77f22GuTnnO55 yGsPzNuxm/3i54tmAYcf+Bxe1Ea4kn0sNGScGHg2zlzwbrOahaLtCi16mwBcS4gYixCHH 1ul3SoJNSpyoPWQJNMG3B7nCvLdMnO+ZY9VwoP6U53Q6meSpd8X+GJC3hEMh+4cnPew== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795467603; h=Received:DKIM-Signature:Message-ID:Date:MIME-Version:User-Agent: Subject:Content-Language:To:References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=Q2WRLbnHYblS15W10EOQGRmEfJurtksMySvdGxKi37c=; b=ZuLVx2vC1SUIC01/NLS+Emty+90tHdw5vK0ZwQladqpoyY0huUS4RKpOJgTccPwhgjIJ gZTP31YGPLsy8T/gNNbanuxeFAl+JpZ72M5QIZ3oQJSkeMFnz58UMaN6At/rfbpLJxawY FDBQvlNKJg4BeeycKVYdM2QYxAebKkdd8jmnKtHavU6ud3c+8iqClB4gNllh5Udx2IxGg F5VkJh+iDk4EVFwcoBaX47NEnIPHmSDvRVJkwZ6DCDJhyUHPV9sUGgipMuYxL21tWle3L F7fhxpkHWZ1Ewzhv83dorrkUh/aEr1knQZ4SrmBjSiqdJ5SKhKFyt+xpSrpWp+P28ng== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=SYJw3RDD; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 47032606A31E for <netdev@vger.kernel.org>; Mon, 23 Nov 2026 21:00:03 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1064E1F000C0; Mon, 23 Nov 2026 21:00:03 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795467603; bh=Q2WRLbnHYblS15W10EOQGRmEfJurtksMySvdGxKi37c=; h=Date:Subject:To:References:From:In-Reply-To; b=SYJw3RDDh3Q8knDxbE4dxaafazrj2npZY4nZRNC1Ak8m84nKaIgNx5BPMd8WCFjs+ Z64gBr2gTfMJp3bBYpXeBjKprhWZj4rFrZDrXiCHxhsUChuipHzzJKGXvWodazPips rYrYZPctH46maZ2Vwl44NB67BTDJKixYT2sZd76GEQ128yI/ZVXV3HPBNWxKMAuUe0 BierxzEitqeX5IlcLQjkqX4mpnZ4B9YoE4V63TG+LAYuiSu1J85WjrEyCK9RIjW4DG M8QRCtDG6jL11E96nUbDydtMVqUcWA8TGzCR2hZTTCkDwZVoTUSaNpNHYkcb9OU/dK qxRPhDmgSGI+Q== X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-User-Agent: Mozilla Thunderbird X-In-Reply-To: <20261119190312.578885-1-stephen@networkplumber.org>