Article View: linux.kernel.netdev
Article #228Re: [PATCH v2 net-next 0/9] neighbour: Add IPv4/IPv6-specific wrappers for neigh_lookup() and friends.
From: Jakub Kicinski
Date: Wed, 07 Oct 2026 16:35
Date: Wed, 07 Oct 2026 16:35
18 lines
6169 bytes
6169 bytes
On Sat, 3 Oct 2026 21:23:13 +0000 Kuniyuki Iwashima wrote: > syzbot reported that ip6_finish_output2() could pass tbl and dev > from different netns to neigh_create(). > > When namespacifying neigh_table, I chose to resolve neigh_table > in callers to minimise changes, but it turned out to be error-prone. > > This series adds IPv4/IPv6-specific helpers for neigh_lookup() > and neigh_create() that always fetch the netns from dev to fix > the problem. > > Along the way, the confusing and now mostly redundant helpers > __neigh_lookup() and __neigh_lookup_errno() are converted and > removed. Ido, David, thoughts? The unusual (for Ido) silence makes me suspicious :)
Technical Details
Message-ID:
<20261007093555.66e9194f@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342399-linux-kernel-netdev=dewy.ruReferences:
<20261003212336.1304988-1-kuniyu@google.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342399-linux-kernel-netdev=dewy.ru From: kuba@kernel.org (Jakub Kicinski) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH v2 net-next 0/9] neighbour: Add IPv4/IPv6-specific wrappers for neigh_lookup() and friends. Date: Wed, 7 Oct 2026 09:35:55 -0700 Organization: Usenet Network Message-ID: <20261007093555.66e9194f@kernel.org> References: <20261003212336.1304988-1-kuniyu@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="686681"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:1fy5Osvl+oR8SDO9pWCdwNByDBY= sha256:cpLxRSOpkCpOn2J96aosZnuBTF0MT7p0upFxKEbkOdw= sha1:wNmI1Bnpb+PiKmZecJfo2ynxvvU= sha256:mo1orIJ2tnY35gict7RRhffcNZtUKijdLPSfG/1lmkc= 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 1DE1610F1AF; Wed, 7 Oct 2026 19:36:06 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.641 X-Spam-Status: No, score=-3.641 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.241, 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 VG0r0r5QQRsk; Wed, 7 Oct 2026 19:36:04 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-342399-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 5701D10F148; Wed, 7 Oct 2026 19:36:00 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by tor.lore.kernel.org (Postfix) with ESMTP id 4CBB52845A; Wed, 7 Oct 2026 16:35:59 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A6A3648F82C; Wed, 7 Oct 2026 16:35:58 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="iOadDIBe" X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B6157369997 for <netdev@vger.kernel.org>; Wed, 7 Oct 2026 16:35:57 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791390958; cv=none; b=EhjO4W+n5biw9urJ6hzdqJXnFanUmocuAAFAPe908i+lgUBNP5vXEYj2WAAEaOyGWc2jZRpHn3N4gLAkmpdhOq2SCAkCFAUQVbKvansXKz2+AwWo2G9885sLw1BuXJEpPWvypxu7x+5mArV1Oxfksb6aaQYASTN6Jzw+9tcrkHI= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791390958; c=relaxed/simple; bh=Yt+oiNxM46JdJ0iy4ss11GdaLmVx4/rlRnbghOC0MfU=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=rbct2ckEhPxx34WPIhg0TetRepTs1WNtMG7tu7A6RT5VQS9eplW7D9LEXv1xwPOYngg69aXL9zBDHxa/ZRxUZsS1ONRgqzH/g0HGhx19mrylZK/rxBJLwvLXGf6O94tDirSxIOjBXufJ/ulqv23XFDn2eG4PTTp3ao60nO5nJ/k= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iOadDIBe; arc=none smtp.client-ip=100.103.45.18 X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id A202A1F000FF; Wed, 7 Oct 2026 16:35:56 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1791390957; bh=e4R5H1VHFPTdlQOeclhU/gW1RzRmpoMnz5h6gNpuP3I=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=iOadDIBeDKcuSjY1nXkaAXz9MQh+hPJSNcczktkWM5wnJsaLGoebONJ+z5SgbWyPF 0P8peLF+3F91qw6fYxYLsg2Ycfs0RuhnFRq7YlD3MXDSiQwV6FPMxk+xpuYT4k0ycI 37Tc2BrwxR/eDsj6OXrZAnup5PfQP0exfpWgtW+1DFwm+D1RDkj69LBZDL0J/3E02D GQH7Y9LVZh99q/8ZAxFsrbWbBAL8oPZuVjMpwWkNfDA4BfkZiQHzkBKKY7K3xcwA7j ioPMcMwcH/PubndO7/Oj1aNtOyPSoNuj2Ojw26oFtXhkQ/OHPj5bBeoQGYlh2AIn9k PQLcyIKVu9xgA== X-Cc: Kuniyuki Iwashima <kuniyu@google.com>, Andrew Lunn <andrew+netdev@lunn.ch>, "David S . Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>, Kuniyuki Iwashima <kuni1840@gmail.com>, netdev@vger.kernel.org X-In-Reply-To: <20261003212336.1304988-1-kuniyu@google.com> X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>