🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #4326

Re: [PATCH v3] xsk: fix memory corruptions in net/core/xdp.c

#4326
From: Björn Töpel
Date: Sat, 17 Oct 2026 14:37
27 lines
6397 bytes
Maciej Fijalkowski <maciej.fijalkowski@intel.com> writes:

>> Or am I missing another check?
>
> I missed your trick with xdp.frags on prog side. Get this fixed then!
> :D I

...so many bugs... ;)

> had a thought like 'who cares if we overwrite struct not used in linear
> traffic' but as Clement said somewhere destructor_arg overwrite would make
> a mess.
>
> Side note is ice currently still only allows 3k buffers for linear XDP
> progs but it currently works with page_pool not with magic page split
> mechanism, so the limit should be lifted.
>
> I might take this as an AR but anyone reading this in future feel free to
> pick it up.
>
> Bjorn, let us see if Clement responses in some nearby future, otherwise
> please go forward and submit a standalone fix out of your series.

SG!

Björn
Technical Details
Message-ID: <871p9o4clk.fsf@all.your.base.are.belong.to.us>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-347749-linux-kernel-netdev=dewy.ru
References: <20260629072300.1664622-1-clecigne@google.com> <87qzhp51vc.fsf@all.your.base.are.belong.to.us> <atIfJAKqp3dZdY4M@boxer> <87cxt94d1t.fsf@all.your.base.are.belong.to.us> <atOBnjNbppL02n8/@boxer>

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-347749-linux-kernel-netdev=dewy.ru
From: bjorn@kernel.org (Björn Töpel)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH v3] xsk: fix memory corruptions in net/core/xdp.c
Date: Sat, 17 Oct 2026 16:37:43 +0200
Organization: Usenet Network
Message-ID: <871p9o4clk.fsf@all.your.base.are.belong.to.us>
References: <20260629072300.1664622-1-clecigne@google.com>
 <87qzhp51vc.fsf@all.your.base.are.belong.to.us> <atIfJAKqp3dZdY4M@boxer>
 <87cxt94d1t.fsf@all.your.base.are.belong.to.us> <atOBnjNbppL02n8/@boxer>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="3062592"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:ysBZPXGo4/HsHl56ZHn7pOQPY7c= sha256:ZaBSVuVg+VMYWV/B9nRP5ZTlyoKww9zht2gIjg8HdKc=
	sha1:vO7Wu4RMoQi6KhBDKsZ5sZfDfTc= sha256:3hFC8Dt0OzWik59vOLrdA/BgbjVWCW0hu82ZJOHNiPU=
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 ADF88112023; Sat, 17 Oct 2026 17:38:07 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.64
X-Spam-Status: No, score=-3.64 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.24, 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 DywhDRQ5NsiS;
	Sat, 17 Oct 2026 17:38:04 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-347749-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 77BBBDF0B6; Sat, 17 Oct 2026 17:37:52 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sea.lore.kernel.org (Postfix) with ESMTP id 2BA81319B0; Sat, 17 Oct 2026 14:37:49 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id E6AFA3939B1;
	Sat, 17 Oct 2026 14:37:47 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="b0WpGdub"
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 E272322F767;
	Sat, 17 Oct 2026 14:37:46 +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=1792247867; cv=none; b=ppewwoBygBKPJHCPhbGfzs6rRA/7xKUH5DdTEWq3Qog5s5BNXLs7kdeE1dNmzE8JK1MD5RohIHC6VjpEY+vpyH60sUEHO1F6A7Yej10c+sX9kvZZlpliJMF7n0rhkPsUUmwCRV91Hr/IEiSbs0k1WnZh2PT1qQq9mKl0B4BCDio=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1792247867; c=relaxed/simple;
	bh=Sq5ydYFuOAqw9J022xyqOiYQ4YmZ4G5mJxksxPfIZX8=;
	h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID:
	 MIME-Version:Content-Type; b=dsuyTQh3R/frbcS29bFGzwQ9aCFVnwbOIPbEYLohKDZGZhe7MOuUnx4cfTFCwEYozodVY8aIXdnmMelAsXl43RQclZtRqIZ5Vu/y1WOGqLSbItmf+ODCSd0R1dJPdQRYkbhH90ecly5DucHslXbEVHj97nbXw4l49cC6DVbXyHQ=
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=b0WpGdub; arc=none smtp.client-ip=100.103.45.18
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF2FF1F000C4;
	Sat, 17 Oct 2026 14:37:45 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1792247866;
	bh=Sq5ydYFuOAqw9J022xyqOiYQ4YmZ4G5mJxksxPfIZX8=;
	h=From:To:Cc:Subject:In-Reply-To:References:Date;
	b=b0WpGdubMto36P5hm50AKUAlDZsoAI5Rv9ee/jp1NqjtleBZ9xSw6g305wHWqXEIp
	 qIwXrvrWyrPx5ZwQo4ky4EeWEBtqx+ucu9KAxXD/l2Jy1Mp/5B+7nJOAtypItoP2mY
	 A/v5rd4AZ2EqXgYqyYpX2BvqQ9agkRZbxEZfzlcoTFl2QePHudB8pxN4MbzIttCTiU
	 FdSsy/DFF4m0HtxQ1gLpFjH4wqArMon1qRqkvKETxqyD9AsIBbsUjycdFmcj/iqaOp
	 FsB/j/NttYiz8L4Ppzi4C8j36AYrn02ZkcXfqEyrjRZASahA6TbrCyHS7rkThGMCgq
	 2t//OUmbx+10g==
X-Cc: Clement Lecigne <clecigne@google.com>, aleksander.lobakin@intel.com,
 edumazet@google.com, netdev@vger.kernel.org, bpf@vger.kernel.org,
 linux-kernel@vger.kernel.org, kuba@kernel.org, sdf@fomichev.me,
 horms@kernel.org, john.fastabend@gmail.com, ast@kernel.org,
 daniel@iogearbox.net
X-In-Reply-To: <atOBnjNbppL02n8/@boxer>
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>