From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-174.mta1.migadu.com (out-174.mta1.migadu.com [95.215.58.174]) (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 EF2AE39B962 for ; Thu, 2 Apr 2026 08:38:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775119140; cv=none; b=fbPsOEK8cuuSkS/dgnpS6PUpP7RII9l1VlWFUOFGNPb6/dj7b6ZKBu33Gulj7DgFlhKtf+IdVyA6gzgTNcv0dk9rb6TNiAdeSyHDQ3MsyESNuWCkbQ78FyALpLza6FdJwVdpGVPnx9HrNmeJ0qECnZL8rxNaolzB+cIk88ypgo8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775119140; c=relaxed/simple; bh=ZsZA9LlXyJ1D27ScN89sB+DLKYnxPqwULA/8jPshz8w=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Y0MqaOqlEq8AMoTiLPgXyOTmR2C9JNeA8uSkbokkgvTmL5C7EGnBMXbs4Qfou6SePZippbxv216d4ygxdDDjh40g/4pEuU3XXGoIMnl3MkoHaYpGRvBiY8JaX3TNrzGzHkB5DvlJDir/0HpkG3vZ4fC+EyUefrXlrfMAvUOHBNg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=NIBJCsI/; arc=none smtp.client-ip=95.215.58.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="NIBJCsI/" Message-ID: <7f4e3b36-3e9e-4db5-9423-cbf4174e30d5@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1775119127; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZsZA9LlXyJ1D27ScN89sB+DLKYnxPqwULA/8jPshz8w=; b=NIBJCsI/7L25b0KJcba+yOyuuGXK5VaryBSgt3XewtOCrcv8EGGfJUTadJUmauXHs9NDPC BcXm+X//DwsO+mvo87Jxw7Pqz4Jl5o1jwvc6QfAHADkCpFN45h3pe182mA/Km/CgE+EhzK 1pHD230q7Xz5RjqpKSvCBjid8jj/99A= Date: Thu, 2 Apr 2026 16:38:34 +0800 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH net v1] net: skb: fix cross-cache free of KFENCE-allocated skb head To: Eric Dumazet Cc: netdev@vger.kernel.org, Antonius , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Simon Horman , Jason Xing , Kuniyuki Iwashima , Michal Luczaj , Mina Almasry , Eric Biggers , =?UTF-8?Q?Toke_H=C3=B8iland-J=C3=B8rgensen?= , Soheil Hassas Yeganeh , Alexander Duyck , linux-kernel@vger.kernel.org, bpf@vger.kernel.org References: <20260402033138.388574-1-jiayuan.chen@linux.dev> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Jiayuan Chen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT On 4/2/26 4:03 PM, Eric Dumazet wrote: > On Wed, Apr 1, 2026 at 9:15 PM Jiayuan Chen wrote: >> If we no longer care about the cost of accessing a struct page in the >> free path, which the original commit was trying to avoid, this is >> indeed the simplest fix — kfree() correctly handles objects via >> virt_to_slab. > We only have SLUB in modern kernels, kmem_cache_free() needs to touch it. > > Using is_kfence_address() in net/core/skbuff.c is pushing too hard in > my opinion. Thanks, I understand.