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 D091E606A336 for ; Fri, 4 Dec 2026 18:34:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=osuosl.org header.i=@osuosl.org header.a=rsa-sha256 header.s=default header.b=AsYNT0gP; dkim=pass (2048-bit key) header.d=cloudflare.com header.i=@cloudflare.com header.a=rsa-sha256 header.s=google09082023 header.b=WuWFu9fM Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id AF54B80E1B; Fri, 4 Dec 2026 18:34:39 +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 ktFFtmya9E3M; Fri, 4 Dec 2026 18:34:39 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp1.osuosl.org 1C8A8810BD 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=1796409279; b=pjXToiM1RHxBS+nAh2HIaKh9SXvLK9n6EA1jTyvHFD85NEX06NfQwerB0VuV/hsjQgKy Lj38qWh5J6I/q9d2uTleM4KK77zs9wH4fw94IbJYP/tg+85Bc51nagkjD72DZRt+PSlEh 8m+nYedB9QTVEdsYJ9QeBRACGYxcZBzaujePQFrjIUWGlKpM76qruM2f6B3tyj3VOzPq6 +eBgzsb5Ie4LAteZ+Oam2rcB/TVX6ixQG+/yBewu02jmKBW/EWvGIVmqfM8Xz+Y1FMXxa 6ij/iWUAUIKtDrj0KQW6frOujeR2bG9055eGh5CjX/RvaGpNUbeeYNKAggxg6o9ObdQ== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1796409279; 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: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:X-BeenThere:X-Mailman-Version: Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help: List-Subscribe:Errors-To; bh=veXImNaRLBhQ7rQlSTuhVnuhVkl37GUInXV4uQ7x/o4=; b=R/MHzMdsPoLymFEIp1YI3e6NzWqOxHQlgjStfhuWoS3F6QOENhwcpC7vgiWYIyE44QVM 2tg2j/7aSCFNNUFSe/koDGPg286VlIaKEOCcHzYBYsSHI+zWZAMZ/xamlzvs43iMDLu/E bajk6MYZYS/ozHNUOSrKmb7ovl2QVtaRfOSEESndjsiDqbsVbsj0qlQ++vYutCa+M/D2v pmbVyFafLndaUZD4lTVxqhpvBWStHjlFL8+ss/wEvjLTfezE5BxStTorfzOcHdP6d2znK XOzUxmymS0jHr0HcHTnfdVGuG2ywKY/nrB9tpGujhjBdcuMPEahiD2u9cxcq4eUfNFg== ARC-Authentication-Results: i=1; smtp1.osuosl.org; 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=1796409279; bh=veXImNaRLBhQ7rQlSTuhVnuhVkl37GUInXV4uQ7x/o4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=AsYNT0gPbJAf7p9rZfnfYOx7NPGvxOwuW4NYKPudIh2OKhrN7ltV3zCZLE3MzAnkz mXpnC4ZOjcXFvT8tqJDbMHV1zurn2BgqSVCJ53Bp51/IuUdndJkoJ9cn1WIQgrMjvt GDdSNBnPREiANG1Fzqn13bAOrgonRCvMQR9GTr2iDc0/5789WIDu6q0h4/TNnQ+7EM fORo62EMo1OTj4+oYq/TzAfqWxHt0jdY1cchkHMB7XzEcb03A6j1CyrONqEQl5MBFj c4aeB75T6xe1pe353HkoVcjrJQKAxk2k47VuMRd51AGF4djvuM0nj4Jx0bXrleXenu wI1r+SeE3xUGg== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp1.osuosl.org (Postfix) with ESMTP id 1C8A8810BD; Fri, 4 Dec 2026 18:34:39 +0000 (UTC) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists1.osuosl.org (Postfix) with ESMTP id 4B328BF4 for ; Fri, 4 Dec 2026 18:34:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 3A8AD407D8 for ; Fri, 4 Dec 2026 18:34:38 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id trnqvfCcPWBG for ; Fri, 4 Dec 2026 18:34:37 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.2 smtp4.osuosl.org 4770F40640 Authentication-Results: smtp4.osuosl.org; arc=none smtp.remote-ip="2607:f8b0:4864:20::336" Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2607:f8b0:4864:20::336; helo=mail-ot1-x336.google.com; envelope-from=fred@cloudflare.com; receiver= Authentication-Results: smtp4.osuosl.org; dmarc=pass (p=reject dis=none) header.from=cloudflare.com Authentication-Results: smtp4.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=cloudflare.com header.i=@cloudflare.com header.a=rsa-sha256 header.s=google09082023 header.b=WuWFu9fM Received: from mail-ot1-x336.google.com (mail-ot1-x336.google.com [IPv6:2607:f8b0:4864:20::336]) by smtp4.osuosl.org (Postfix) with ESMTPS id 4770F40640 for ; Fri, 4 Dec 2026 18:34:36 +0000 (UTC) Received: by mail-ot1-x336.google.com with SMTP id 46e09a7af769-8631e07b756so775888a34.3 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=lists.osuosl.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=WuWFu9fMdGrxdUTWArvSTlKbd7zTDHs6ZSsQR4z3UVrg4zeRwEtF+a4O4uMXYhIH8X Thhdww3nkNRwS5ws99exEZM+mzG8oRAlO4sdxf1N3NpJYvq0PMHSBWY9A8EGNkFJK6lF 313Sy6WO357ffsQgOset4iVt6TBg4QHh60ylpfUd7JGFbB+GQqah5KNf6P1iodU10wNr 3w1NMhdgqvNNc1m3JqABUoXjDsBGIUZKqDe8fkfJeXUQm34elP88TO6VFLGi2bNiUYTl Js8B08uJpekiglTPGrE3wsSOFKRdF3VnoY+X9K5qq1lwSMnVQ4m2j3/FD8YJrT8kmOfR i5Mg== 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=z7yBLfVJSI90wdzZ1BHtKZmavS+09z69KbfQe+gJrgBaWh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mxN78mVDNrKxCfbZ X7N+aqea7pf8eejzFcTl14UU3TztnoG+QFRQiHtvbbTaVEm0DdrfesPXa3WUWdrGrPolww3QYKB nzetixn3Stg= 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-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0decb7ce-f359-4d77-9baa-0d9c8f5f6154@kernel.org> 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=-6.1 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no 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 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