From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E3A30606A322 for ; Wed, 2 Dec 2026 14:15:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=osuosl.org header.i=@osuosl.org header.a=rsa-sha256 header.s=default header.b=AEho8ZrU; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=axAEkCok Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id BC8F281062; Wed, 2 Dec 2026 14:15:54 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id Y3Neq1lwPcmd; Wed, 2 Dec 2026 14:15:53 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp1.osuosl.org CB70E80FFB Authentication-Results: smtp1.osuosl.org; arc=none smtp.remote-ip=140.211.166.142 ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1796220953; b=BacxvkZc5HlYhAy21GwnONypapCsyOSlURS5jZBxXVKBuC+EhReDPFHl5YiU9z40zycv uTKR5eB6dEzck7rrGl/9QXjFQCkU7n32FRbLKwEC4BmvZO2AFAY8NbycgpezO1HV3/TSO KK8d5ilDgF5sDotyiP8xSmx0YTgu3v7e7xop8fhToevIeGciy+jRamCvbNAzommsC+cOj 2/h1hxbNFE0Vnleh4XzHGv4gKhIAXW6sezMccVEYyDtQIwk30zv8M0TURwCEK+FrN0j9+ 4hXg88YrWBDWvMlj75wUyelXVjE5FCBn8r3SnXvlmZIGtIkwEULH30/YTEKg0fSJ9Hg== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1796220953; h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received: Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level: X-Spam-Status:Received:ARC-Filter:Received-SPF:Received: DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID:X-IronPort-AV: X-IronPort-AV:Received:X-CSE-ConnectionGUID:X-CSE-MsgGUID:X-ExtLoop1: X-IronPort-AV:Received:Received:Received:Received:Received:Received: Date:From:To:CC:Subject:Message-ID:References:Content-Type: Content-Disposition:Content-Transfer-Encoding:In-Reply-To: X-ClientProxiedBy:MIME-Version:X-MS-PublicTrafficType: X-MS-TrafficTypeDiagnostic:X-MS-Office365-Filtering-Correlation-Id: X-MS-Exchange-SenderADCheck:X-MS-Exchange-AntiSpam-Relay: X-Microsoft-Antispam:X-Microsoft-Antispam-Message-Info: X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-Exchange-RoutingPolicyChecked: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-CrossTenant-Id:X-MS-Exchange-CrossTenant-MailboxType: X-MS-Exchange-CrossTenant-UserPrincipalName: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-OriginatorOrg: X-BeenThere:X-Mailman-Version:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:Errors-To; bh=W1Dd9GnviPuVadxVKonQ9bqLvI+xKgg5DNvYz3NOpPA=; b=Jm6CTRMlx72shi8ys3Vp7+pXOp35J2+0Q8SoZzx+Qzo3JT1gOkcP6LrVL3WwzpXP6Ks6 FAObjcasJfTrQVWjRqXns0sPxdFiZbZaOM4AnEiG62ZyvG9t4k+DcI1Zy/c+ASUBuejt1 SsPho2yzVi9HvoA0Ktpzhnz69r+N8wqHYLSiI/fTx+3BvV2sgWjAIiF9++3utoMA4xkCP 13YBOGOtqq8DDarJhp/q6OK6ik90fLjugJy+nM2PG1J5EJMVEEcbbT97qscZRtttOpa/L ZyS02Cqd7pQfg8TbWGHJevhw1m/zLP4T+r9gvS7dn3uXqNuWwGMssmRznMdPg80YOqQ== ARC-Authentication-Results: i=1; smtp1.osuosl.org; dmarc=pass header.from=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=axAEkCok; arc=none smtp.remote-ip=140.211.166.142 X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1796220953; bh=W1Dd9GnviPuVadxVKonQ9bqLvI+xKgg5DNvYz3NOpPA=; h=Date:From:To:CC:Subject:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=AEho8ZrU+vXEjTwaydN32n3b04lXhe99IPoJgYYS6G+KcNlZFO4MhTl2jm2WUSUG1 /TLHyGc3QqIg6tCLjih+n5TUVNA91l1Cy1DW0DwB4gEMIqoCfI4rTzmpJ0LR8muEtS Xd5ncEQR1aAoqLqU5zz0oHhdSzxQLEWWbuRDMJhJr9S2BVx3UyjSV40paqtzzr78ut 7sRf3rCbUig+dD5SbvTo3QYo5utME5OhaHXRfvBie3DqaW+UN1v4JFtg+lZcvPAp99 9rdL1DyXIELpemgx8cxp/QbCebDLxCLE6xPxcD//UROUWT1xSE9dRctzdaJyDxbCP3 bUfarLe8HvFJA== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp1.osuosl.org (Postfix) with ESMTP id CB70E80FFB; Wed, 2 Dec 2026 14:15:53 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) by lists1.osuosl.org (Postfix) with ESMTP id 27FA6765 for ; Wed, 2 Dec 2026 14:15:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 0E27280FFB for ; Wed, 2 Dec 2026 14:15:52 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id X5EiM_6Zwizo for ; Wed, 2 Dec 2026 14:15:51 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp1.osuosl.org AE54280E0E Authentication-Results: smtp1.osuosl.org; arc=fail smtp.remote-ip=198.175.65.20 Received-SPF: None (mailfrom) identity=mailfrom; client-ip=198.175.65.20; helo=mgamail.intel.com; envelope-from=maciej.fijalkowski@intel.com; receiver= Authentication-Results: smtp1.osuosl.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=axAEkCok Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) by smtp1.osuosl.org (Postfix) with ESMTPS id AE54280E0E for ; Wed, 2 Dec 2026 14:15:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796220951; x=1827756951; h=date:from:to:cc:subject:message-id:references: content-transfer-encoding:in-reply-to:mime-version; bh=W1Dd9GnviPuVadxVKonQ9bqLvI+xKgg5DNvYz3NOpPA=; b=axAEkCokLmKA31CnZtoWYVGov+hckW8gE9/OiXwCZjoFeSOi17wttKnK 6sOwI5Ff04pD5DOjmZvvMFcGYkr5A2ArBo5W3hiThaKcqLJYmRtnOjX63 yYhi1HDWAwouIjfaJZzMwa6MepSHnqRLUYPBoyXKbsTO5ugTf7cLRuGzn wBCB+jSLd8GRaSNczrJ8PGk7SsIjkadV0VIGivO+ZieFuXO8itcrWT94y 4Z3nHYua6ndv88pMr9GeJL5PqwzrsP+/mpI97X3ut/90Ze/PFwFevKkud I/YIwFA2XHZU8+qmuKB/BAni9E9LEUpOKXvChPyaIVeog2DXYdzC3ZD74 A==; X-CSE-ConnectionGUID: XCERXg8CRxuVhZk+/3HKwg== X-CSE-MsgGUID: sVpyvg7PT7+owz/wA6j6hg== X-IronPort-AV: E=McAfee;i="6800,10657,11984"; a="5187777" X-IronPort-AV: E=Sophos;i="6.27,246,1787036400"; d="scan'208";a="5187777" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Dec 2026 06:15:49 -0800 X-CSE-ConnectionGUID: ZKItrVs9SpufouRrC2fUYA== X-CSE-MsgGUID: spf29wJyTbK+t3pWDt4ULA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,246,1787036400"; d="scan'208";a="13756925" Received: from fmsmsx903.amr.corp.intel.com ([10.18.126.92]) by fmviesa003.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Dec 2026 06:15:48 -0800 Received: from FMSMSX903.amr.corp.intel.com (10.18.126.92) by fmsmsx903.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Wed, 2 Dec 2026 06:15:48 -0800 Received: from fmsedg903.ED.cps.intel.com (10.1.192.145) by FMSMSX903.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57 via Frontend Transport; Wed, 2 Dec 2026 06:15:48 -0800 Received: from CH1PR05CU001.outbound.protection.outlook.com (52.101.193.23) by edgegateway.intel.com (192.55.55.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Wed, 2 Dec 2026 06:15:47 -0800 Authentication-Results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from LV2PR11MB868673.namprd11.prod.outlook.com (2603:10b6:408:422::13) by DSWPR11MB9713.namprd11.prod.outlook.com (2603:10b6:8:356::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.11; Wed, 2 Dec 2026 14:15:45 +0000 Received: from LV2PR11MB868673.namprd11.prod.outlook.com ([fe80::5bfd:6afe:a9db:b7de]) by LV2PR11MB868673.namprd11.prod.outlook.com ([fe80::5bfd:6afe:a9db:b7de%4]) with mapi id 15.21.0688.009; Wed, 2 Dec 2026 14:15:45 +0000 Date: Wed, 2 Dec 2026 15:15:31 +0100 From: Maciej Fijalkowski To: =?iso-8859-1?Q?Bj=F6rn_T=F6pel?= CC: Magnus Karlsson , Alexander Lobakin , Alexei Starovoitov , "Daniel Borkmann" , Jesper Dangaard Brouer , John Fastabend , Andrii Nakryiko , Eduard Zingerman , "Kumar Kartikeya Dwivedi" , "David S. Miller" , "Eric Dumazet" , Jakub Kicinski , Paolo Abeni , Willem de Bruijn , , , Simon Horman , Stanislav Fomichev , Martin KaFai Lau , Song Liu , Yonghong Song , Jiri Olsa , Emil Tsalapatis , Ihor Solodrai , Tony Nguyen , Przemek Kitszel , , =?iso-8859-1?Q?Cl=E9ment?= Lecigne Subject: Re: [PATCH net v2 0/4] xsk: Keep the shared info of zero-copy buffers in kernel memory Message-ID: References: <20261130123737.125432-1-bjorn@kernel.org> Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20261130123737.125432-1-bjorn@kernel.org> X-ClientProxiedBy: DU2P250CA0002.EURP250.PROD.OUTLOOK.COM (2603:10a6:10:231::7) To LV2PR11MB868673.namprd11.prod.outlook.com (2603:10b6:408:422::13) X-Archived-By: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: LV2PR11MB868673:EE_|DSWPR11MB9713:EE_ X-MS-Office365-Filtering-Correlation-Id: ccdc575e-d063-4c6d-83da-08df507ec137 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|7416014|366016|1800799024|23010399003|11063799006|6133799003|261009223027099003|22082099003|18002099003|56012099006|10067099003|261102123227099003|261021123027099003|261022105027099003|261021121427099003|261028144727099003|261022075727099003|261026121527099003|261026140227099003; X-Microsoft-Antispam-Message-Info: NyiyKV5/r73mSrm7z1v719VANu6G1FQaQrK17bzMvyTGiSLPlYKziblEpe+0ZVsXAh3iwUOVFGI0/uvJ3W8JoCMEqqhXvE/UOESOpgm1nyU6p49+sqyqIHfPGZO+QP6BXaxE0Y4uXLipHxv8uOEI3TW3Y//R9t5vSDRDZqc8fw6m4NUWXbC+aMkOdfdZsS8e7Fo4nQItnxvT4j0k1Pf2ukP0/uRswbPVfrc8CLcXkIP69UgMFtfoOfO3KvBF1orBoFYhqBZmMNObyHsUw3DL0MIYy8otU7pRZBNLTAkkQTh9FgY3DikOUO8wDNi6sy2IANtNHJQJEtHkBB/FigBa0NlA/L9j3/rmEGqoz0/7wA3tz3cz1xYgIo4A4HYIetodQ6bK688NJdEYCCDN5e2gbQON5oWY3fXsvtHvANZHrut/LdAgpO7FlN57TZo+AsIJvgmCWhUUj7DUZkWmVdz+UnxaugKahkdeAWdjk4xbA510MlhwG3RgBrDZfcICVOu+0e2RreyFB/S7FbTS7BzOeYS7ILHWNnpTrTxiAtQIkXg0E4U5hw+3d5/0IWRtq1gnic10+8r6EZiEm3/mQop5qQud2eXXT6Fhkw/H1SQ8cmo= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:LV2PR11MB868673.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(7416014)(366016)(1800799024)(23010399003)(11063799006)(6133799003)(261009223027099003)(22082099003)(18002099003)(56012099006)(10067099003)(261102123227099003)(261021123027099003)(261022105027099003)(261021121427099003)(261028144727099003)(261022075727099003)(261026121527099003)(261026140227099003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?iso-8859-1?Q?zVuUWA/4g93gSHRbt5rWgBiQPTHzVqiEYtujp5b0i4ZOyGbneJpTuLczs2?= =?iso-8859-1?Q?4Whfc3jzmsR3RlmggE8Cmo0kS610awSNFvZVgT1jMXbHg8KJzfGBg5kzaI?= =?iso-8859-1?Q?nWjZlq+4GAPOYNFMaoYXua9v0Yve/xsI+vhaJYWFZ3VSs0W4EL5LjjpPal?= =?iso-8859-1?Q?1MC3Whui0MVJtBM+2QQkByR/ku6xU11vY7z4fkKMQha339QPlHQf5cFnMu?= =?iso-8859-1?Q?4S46xtle9PptGAHXzZvExpdCo08STdDZmOCwuavI1/0PLQDFvihZsHO7lO?= =?iso-8859-1?Q?hJWv59KWne6Nt352ifRuA0bFiKrtHtgY1JyqUxvMdcXn8ZOwiRNsx9yJ3l?= =?iso-8859-1?Q?HYgQ70ppWCuEiGjZ27g7gIML1G9/5HIV8f6HYd3BmuPAdSb9lQIaBEfJfc?= =?iso-8859-1?Q?dhK49Ocef1QZwIYNSGfDOFKZ1/6eGRv8HGRQGUvYeSovwx5HXm4z0T8K9H?= =?iso-8859-1?Q?/PpvJrCn/Z0dPrj30cyRkCVglSrWUGkF016xrc8gGCqbhECIrdlPvbiX8g?= =?iso-8859-1?Q?ZtjbYSZRJDQBzpP1vID1o3Khjz432HgJ6hiVPDo7hdtcBIG/Z2EMFHXNqH?= =?iso-8859-1?Q?0SVCm7PMtZitDnA9mJYXmJEg9d68mvHDoGp2h8UxXx3SIInCnvtkaip65S?= =?iso-8859-1?Q?lLA/t6J68rA3pojTIx80uxHPi6NkSoqX4PtR/fF1u+Ju1aBgU6dzgtqSVw?= =?iso-8859-1?Q?5/Qy/zbsORGPB7JGGihTElKvOSgNgmWUUX1X63iVXEX5MLR0+ZJi8X/a2a?= =?iso-8859-1?Q?DZr6OzCapmPW4G3HW5lKsLu+6GxhKYwvgWFWHRQviT+Otmwf1NdVYULdsU?= =?iso-8859-1?Q?ooCAtf1r+dGn8i7fs0sLbdoqEIWDwf7LrQZyM9BNt39eVwuOyGlZHmLoHZ?= =?iso-8859-1?Q?6FAgDUR/MOHsib6qIiuRAUElY2ecu/BHKcba/VMjjGmcbVMonWOKSmI8gc?= =?iso-8859-1?Q?hnJnfQSXHIP+EtkTsYH+tlcDiNYsLy31Cr1IR07zErbo908quFuyBHB9KL?= =?iso-8859-1?Q?kmw0AF1s3VqhS1Dnq2W2KVZBCuVxgmnc+SHMVyKYJ+45o2/BHHSYN4zK+t?= =?iso-8859-1?Q?ikwo5xs9reXSrio2oj0C6eoNjM+VTYqSTTaiywLQDd4YHWvftnRqU+GmGJ?= =?iso-8859-1?Q?K37o0nOMKUDfOzA58dSTLAUDOcA/Yv5g9GJD3P0JYXOulAXGgAVzTHMMDr?= =?iso-8859-1?Q?ydsQ24Fw7E7XJg4+czGpypUli1GgSqCkbzQpGaiBw2qnQ1j6wCGy6hjiJt?= =?iso-8859-1?Q?3EPvSsW6CKp57WWw26ciwhhJq05a4hGdyd9YAhlbKTXO4ULFItf7mFANew?= =?iso-8859-1?Q?QVsz5Bot9T/9+Vu2nGadaSl/2714iAFh6w75PCK4pGPnCatIXk19Yi6L7w?= =?iso-8859-1?Q?ZN82H1Xg24/KQPnPKyG4fuCNa3VSthTT1Lr2bI3xPfyf6A98/OwJYMLlO9?= =?iso-8859-1?Q?GjkyLtn1CZb2vt5agxwxQJbJPc1s4jjNzRd16zwnANMPGnrSGF+hzQeP8I?= =?iso-8859-1?Q?JHTqJWzkF/WqQBzXyks5be4nZUnLZwCb6+M/uE5jgZdH934QFsg+msY52C?= =?iso-8859-1?Q?EGMPReQewsO7TMN8aQb5bbBQA5QXsG2ox/LsVIEAn7Xw62MMW6pmUkoB4C?= =?iso-8859-1?Q?4n4UvygMG0x0f4cQxF54UVOrA6k+syy4CFcaWsuKj8leYtmbhP/xYPxY3H?= =?iso-8859-1?Q?a1jpEa0X1+k9NYeYJj33jh+cMBimxmKd6SKQzWxpPrcebtwi7m8OueE4n6?= =?iso-8859-1?Q?QqObYUPuWPhdls5PZ1r8jkBaqP+NBsSJX38KKN+cc5Mqw3Tsc+v0rhH5rZ?= =?iso-8859-1?Q?QKYYLZzA5OZlrfCqg4gpxbTGqyQKI2U=3D?= X-Exchange-RoutingPolicyChecked: OpVfrHPZCpHcU1CrpDt0RfKKCp5WP4IvuAx2GSWsS4yQK2uFn0WmsvWcCyYGDGan1f78QTmCP5EeS888D8/tS541o5NZ5k0OX9PxHshCGs5p2junI1mTFQlvoGLMQw8mE01ETyQ33LDTiAmst3oC8iWoExFOLxg1ehyVJeYgqIPDYpvegdXVFPv2h0gJnCORAEcIyRGQ8GngnRWQMgAYfLqwN3+H0zdITO6BpeM9DgW0MN+Te30j9SejP1YC4fPzy3jZLe6CCvshjwab35i1p1YeZR/fA0XnJ1vnGcuNiO/KSF2x31nJHZve1VifVDwPGnBgNfA0QRm01dJqbv1Jjg== X-MS-Exchange-CrossTenant-Network-Message-Id: ccdc575e-d063-4c6d-83da-08df507ec137 X-MS-Exchange-CrossTenant-AuthSource: LV2PR11MB868673.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Dec 2026 14:15:44.9445 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: zAZULwS/5vNW2mUn0S8xO1OzIyrqDoIKN1d0LQixvQuPPXml9fBoouS420QiDFV9jkb1AYqM6F8AZYBnd7B2leDzY79zXdbb0utYg07DMWo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DSWPR11MB9713 X-OriginatorOrg: intel.com X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Archive: List-Post: List-Help: List-Subscribe: , X-Spam-Status: No, score=-10.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Mon, Nov 30, 2026 at 01:37:31PM +0100, Björn Töpel wrote: > A packet that AF_XDP receives in zero-copy mode over several buffers > keeps its shared info, the fragment list and its count, in the UMEM, > which userspace can write while the kernel uses it. A rewritten list > or count makes the kernel read and write out of bounds. > > Patch 4 moves the shared info into the buffer pool and lets the device > write up to the end of each chunk. Patch 1 makes libeth count XSk > XDP_TX buffers one by one, as it read the shared info at a later bulk > flush. Patches 2 and 3 fix skb builders that relied on the old > tailroom: the generic one sized the skb head from the frame size, and > i40e, igb, igc and ixgbe read past the data. The pool size doubles, 320 -> 640 bytes on x86_64 (1088 with MAX_SKB_FRAGS=45), but fq is ____cacheline_aligned_in_smp, so the data path members keep their layout. Nit: sinfo lands under "Members only used in the control path first", though ZC multi-buffer Rx writes it for every packet. > > Sashiko found the shared info issue in its review of the AF_XDP device > buffer layout series [1], and the issues fixed by patches 2 and 3 in > its review of v1. Clément reported the issue of patch 2 earlier [2]. > Patch 3 was reproduced on igb in QEMU; the others were not triggered > at runtime. > > I tested this on mlx5 hardware, and on igb, virtio-net and veth in > QEMU. None of them receives multi-buffer packets in zero copy or uses > the generic skb builder, so i40e, ice, idpf and gve are only > build-tested. Intel folks, could you run your multi-buffer zero-copy > tests on them? > > Also for Intel, found while auditing the drivers and not touched here: > ice no longer sizes its zero-copy RX buffers from the XSK pool. Commit > 3a4f419f7509 ("ice: drop page splitting and recycling") programmed a > fixed 3072 bytes, and 93f53db9f9dc ("ice: switch to Page Pool") > changed ice_setup_rx_ctx() to use ring->rx_buf_len, which only the > page pool path sets. An XSK ring gets the length of its last page pool > setup, 3456 bytes on 4K pages, or 0 if it never had one. With 2K > chunks the device can write past the chunk into the next one. I found > this by reading the code and did not test it. Thanks for the heads-up, I noticed it too when I ran v1. I'll send an ice fix. > > Changes in v2: > - Patch 1: fix the kernel-doc of struct libeth_sqe (Sashiko) > - New patch 2: size zero-copy skbs from the data, and copy the exact > length (Sashiko, Clément) > - New patch 3: copy the exact length in i40e, igb, igc and ixgbe > (Sashiko) > - Patch 4: set the flag on every buffer when the pool is created, and > again in xp_alloc() and xsk_buff_set_size(), as virtio_net clears > the flags of some buffers (Sashiko) Hmm, a bit of a bummer. Now that I think about it, could we piggyback on the rxq mem type being MEM_TYPE_XSK_BUFF_POOL instead? The core already relies on it in xdp_convert_buff_to_frame(), xdp_return_buff(), xsk_rcv() and bpf_xdp_adjust_tail(), so the flag juggling and rxq->ext_sinfo would go away. ice_xmit_xdp_ring() would first have to take the shared info from the frame, as the buffer it builds has no rxq. Or would this not carry over to your provider work? > - Patch 4: publish the shared info before the buffers point to the > queue (Sashiko) > - Patch 4: update the comment in bpf_xdp_adjust_tail() (Sashiko) > - Drop the selftest patch, it goes to net-next once net is merged > (Maciej) > - The libeth XDP_TX completion count that Sashiko found going the > wrong way is older and unrelated to the shared info; Separate fix > > v1: https://lore.kernel.org/netdev/20261127142131.3527737-1-bjorn@kernel.org/ > > [1] https://lore.kernel.org/netdev/179561567996.3135.9952128421877275714@kernel.org/ > [2] https://lore.kernel.org/bpf/20260629072300.1664622-1-clecigne@google.com/ > > Björn Töpel (4): > libeth: xsk: Count each XDP_TX buffer on its own > xdp: Size zero-copy skbs from the data, not the frame size > intel: Copy the exact length of XSk packets to skbs > xsk: Keep the shared info of zero-copy buffers in kernel memory > > drivers/net/ethernet/intel/i40e/i40e_xsk.c | 3 +- > drivers/net/ethernet/intel/igb/igb_xsk.c | 3 +- > drivers/net/ethernet/intel/igc/igc_main.c | 3 +- > drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c | 3 +- > include/net/libeth/tx.h | 8 ++-- > include/net/libeth/xdp.h | 9 ++++- > include/net/libeth/xsk.h | 6 ++- > include/net/xdp.h | 32 +++++++++++++--- > include/net/xdp_sock_drv.h | 26 +++---------- > include/net/xsk_buff_pool.h | 1 + > net/core/filter.c | 2 +- > net/core/xdp.c | 40 ++++++++++++++------ > net/xdp/xdp_umem.c | 3 +- > net/xdp/xsk_buff_pool.c | 20 ++++++---- > 14 files changed, 96 insertions(+), 63 deletions(-) > > > base-commit: e2fb9368a41662bc54624f9be87ea8989b109306 > -- > 2.56.1 >