From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.47 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796409277; b=V13hVRKpi63TYp2KGbQRAKqRWABs9617rLhy/mHTfBUbfisIP9rhmySQtRAl46jzmMWR ZOfI0A3bR39jDSookD7XNiXiki0vaGZXcZwRQjbGFAx+gqqpzNEtRjotFHzEtuiytFJEB yJ2yBLQnH7wl1EWByhBVGEHrUpPvUiQtwsRZ48DgU3Kw3RHsT+yQap93/y4mKJDnKzxHH uLxnb/MKyAhlDSj3n0TRMpNAWf77nwl9lb5d5WTytyPIzsHyj/QFDMtBkOpdpuQzOBiq3 2fI8k9Zaeweh17yI4Nq4Zg2SiDzN3rZTErkUNY/6K9pO1VinLZ1jxpngFM4boLyaRqg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796409277; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; bh=veXImNaRLBhQ7rQlSTuhVnuhVkl37GUInXV4uQ7x/o4=; b=gi1gOYwWl79Kt8P9DFMktnk51a/SVgqYzQUjQQdG0aNPBnb0aqUutQCVODHC8qPrcGwH 7jvf1yFUCqPmTmi82gLuTO7a5YnBYh5TCFeI9MpA39jR7qMRbIyGT/dmUBf5CuYG6MrAe xjQGqN3ueDa0laGvpbViHJr7Hxmw0VK9T36Md8C9o8By1hk4naPczqrcnpUUpTtKLuN61 O7OrrZBJnMu5hBreYWTobz3mOmd1qJAdopVsKW8YSNg0WrNbzQHqsUOoLx8K/0B8JFsUJ lVdaLhnEdqvaEqgJAJ7hrrjyqyyo+eJFPkkwCYA+l595iTaOgymcOioi7eJ3o3HS2Og== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=cloudflare.com; spf=pass smtp.mailfrom=cloudflare.com; dkim=pass header.d=cloudflare.com header.i=@cloudflare.com header.a=rsa-sha256 header.s=google09082023 header.b=JPu7Unpx; arc=none smtp.remote-ip=209.85.210.47 Received: from mail-ot1-f47.google.com (mail-ot1-f47.google.com [209.85.210.47]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0183C606A32C for ; Fri, 4 Dec 2026 18:34:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 0183C606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=cloudflare.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cloudflare.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cloudflare.com header.i=@cloudflare.com header.a=rsa-sha256 header.s=google09082023 header.b=JPu7Unpx Received: by mail-ot1-f47.google.com with SMTP id 46e09a7af769-843b6f8e2c7so1838331a34.1 for ; Fri, 04 Dec 2026 10:34:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudflare.com; s=google09082023; t=1796409276; x=1797014076; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=veXImNaRLBhQ7rQlSTuhVnuhVkl37GUInXV4uQ7x/o4=; b=JPu7UnpxmnLi/VAvPklOkridLpB6nle59/83O2E3k4JfcsQrokbCBonxHwOlEriPyx lR95bwnyjQpYB1mvf4ahifllohVL9hyI1um/QEtp9a4hdbV0+XS6r5TQ6AnQaq3t33nr Eo+OjTrlMXIgQHRIUduJKr1AoM5oWs1Hruqp2yUAQXZ6CsWNopAYUHB8Pxe4PEqZEUrf JxJ0mhGgXhTaeZG+69KP+bBhcIkLjHhSn2LRHnYZrHCKoG6xbJoJHs/kvErZWO8YXgkU goF2SbzprC/jbcYknOnsihZSa8Drxf6UmMTMAh9CgLlCqr/Ms851ZHcsppUNS12RG/D4 Gceg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796409276; x=1797014076; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=veXImNaRLBhQ7rQlSTuhVnuhVkl37GUInXV4uQ7x/o4=; b=Ge3GEoPf29Zz/5cYQbFpI4GhPvW7atxXKGag1P6PFfgSyPYRy4p8nMu3OQ/gneibSo cmvP0noIWtmgQd4Y3ZKpcfkNubdP+r7mrCjjI1MAU7Z93/kcwL4SiO6QNhj+IT0dm3Ad hpGUpGTfodCy6nsjxvJfww5eje4htqWkf0O+wTthO6lk9LIJmPQRiYIDEMU4Y7kX6c/y bcdAMW5WW+xXMf9R0QAs4omXQQpWoFynkYo3a45YhY7liikjtjvxR/D/uuMHUEyig3NI 6AIHkAnygMOIsuyRwQrZkbYyBvtRxZ0bCRHlFyAaZHZl90HiKG8VaNTjmYRuX1LxwLaz ttTg== X-Forwarded-Encrypted: i=1; AL+hErGwufzXbrnW6KLcyfVVlA57j4s/6pc8SJcNWMYvoyX/3OtOZA9zaOkZHp0h4cMC4/VMTZKmAnA=@vger.kernel.org X-Gm-Message-State: APuU4Z9IJMERi8P4f+gL/1J6XWjAYNPU8wTVGPk4FsBRoguR07GNrQ9i ZOzPXrDV+bBQsaCjAngtfU8Gi8nMEnoAwNKweYmLfhoSyF2HcRKFEMBlRKmRrpVSArk= X-Gm-Gg: AZFdTZcmPPVOy7igpQYu5FmpcDiMPCnkbfoJIQecv4O+W3qWqZucy2cmL9wEsdfz1Xr QaAXVIWAP8haDQK1+RRUXzFY5PodJagQH+PF9siYbttt+gFxpcU+BtJmqgnZ7oSi5jnX0Xu8gzt VTkjhkzEITE51H8V86Ri/f+vkAMxNO9kRMr0GEJ+rL+vvCEaAQkqT8JbZDP2XCLu2BGANbk8sJ0 dt89k9mWgEoHj1ieJFzc54KJW/RfRstAcVntTVMVHJW8ejzYIB3yFf4uyNhy3NfnGGayCggz9AU QekOY1xuCjYZM4slB49UvkXzJAGTYuKdhMFTHVDrLmNiRj4b+n0Ssd+gd5HrVe1SKpIkq74Ll31 pak7YDZ30EsXptx8TPUBE/iJ3o0RDo61AMbsyIcMF2PqTBRmrgrdMM9uE3enGoD92Hx2820WJFK hJ9f4J573w+0YdSqGaYR79m6KrV7Mh5hUOzVyFF2ATCKAAmnFsdbg4GDEAiw3xrALStkYoacBKe kPY5C8L01cdhi2e2J4FKws4DwmW4tTQRbggtsViJhHCzy/XrAiDYt3ExzmuNXv99W9+UBq/Yybv iRJgXECXQAA= X-Received: by 2002:a05:6820:1504:b0:71b:77ba:bdfa with SMTP id 006d021491bc7-71bf20aa492mr2334235eaf.76.1796409275962; Fri, 04 Dec 2026 10:34:35 -0800 (PST) Received: from CMGLRV3 ([2a09:bac6:947f:1cd2::2df:108]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-4e39ef2b990sm1971111fac.0.2026.12.04.10.34.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 10:34:34 -0800 (PST) Date: Fri, 4 Dec 2026 12:34:31 -0600 From: Frederick Lawler To: Jesper Dangaard Brouer Cc: Maciej Fijalkowski , Tony Nguyen , Przemek Kitszel , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alexander Lobakin , Alexei Starovoitov , Daniel Borkmann , John Fastabend , Stanislav Fomichev , Michal Kubiak , Jacob Keller , intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, bpf@vger.kernel.org, kernel-team@cloudflare.com, stable@vger.kernel.org Subject: Re: [PATCH net] ice: Fix page fault on XDP_PASS skb allocation failure Message-ID: References: <20261202-ice-xdp-fix-upstream-v1-1-31a1d5d26e87@cloudflare.com> <0decb7ce-f359-4d77-9baa-0d9c8f5f6154@kernel.org> X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0decb7ce-f359-4d77-9baa-0d9c8f5f6154@kernel.org> On Fri, Dec 04, 2026 at 04:37:44PM +0100, Jesper Dangaard Brouer wrote: > > > On 12/4/26 16:22, Maciej Fijalkowski wrote: > > On Wed, Dec 02, 2026 at 05:01:46PM -0600, Frederick Lawler wrote: > > > In the XDP_PASS receive path, xdp_build_skb_from_buff() can return > > > NULL when it cannot allocate an skb head. ICE currently clears > > > xdp->data before checking for that failure, then passes the buffer to > > > libeth_xdp_return_buff_slow(). The return helper needs xdp->data to > > > find and recycle the page-pool buffer, so the NULL pointer can cause > > > a page fault instead. > > > > > > Leave xdp->data intact on the failure path so the helper can recycle > > > the buffer; it clears the pointer afterward. On success, clear the > > > pointer only after the skb has taken ownership of the buffer. > > > > > > Observed on a real machine. Patch not yet tested on a real machine. > > > > Hi Frederick, > > what stopped you from testing? > > > > This have been backported to CF kernels and is currently rolling to > production. I guess at the time of writing this was true. Indeed. I submitted the patch to ML & internal at the same time given the triviality of it. I have it on both 7.3 & 6.18 builds and am working on roll-out. Best, Fred