From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 34C7426F461 for ; Mon, 7 Jul 2025 21:26:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751923579; cv=none; b=eXyVVP/WDuM5tGKJtXSWUv5s7uTpEvsgoqyBZmViArksSU3qYN5LUy2GSz+//QD54PgSfFy4UycCAwmql22QwugL7thtfSIXugrCdlnqzzNL+QwWKDtCo0uXJHjx5xsBYguGjtltA7LOu35SYFglaR3M01mOA/UD/ton1bxXOjI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751923579; c=relaxed/simple; bh=YmIRIq0CkNnKyz3DQuyvT2tYy86lfsokLxFOprqeX/w=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=OJeToMhQtALN/v56caoy9SOhUcJg2GkO87UWZim3IIm4MnVfhGKySEuv3Iss4SxvkMAmxqKsSYAbxP3Ql8jWg8d0GSEDkelTfRK3WPX0FdBjiQX9cw8hjk2eQ1FrvkDOXGUdGK/hiDAtEWSXpzPPDrObhA9aVDkMWaK6hW2srrQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=VfAJyzdv; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="VfAJyzdv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 954DBC4CEE3; Mon, 7 Jul 2025 21:26:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1751923578; bh=YmIRIq0CkNnKyz3DQuyvT2tYy86lfsokLxFOprqeX/w=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=VfAJyzdvQ36RSZKqK84q+2TKb1j+BiV5Wq+qdDdOOssdMJTerD2yVlYEQP8e/waqE BNdB+zwNY9wGIKDB6aB8GNziIF8MlKQhi2NhG89yrZGN3dzKKqNPF8611H+dVrhuzq RlO7uTcf98EVTUGLyH7oFdBmAxhitCO84cidwaQbTQiv6V74oFIVaNWe9RfMWvaTt0 SEVhjTtENO9H7YUeLJllNoAMr+IpgRJDMSE6PZdzrHMx6gpw2+EDjrqP2ehiTxTRW7 Ee0jtmixKYqVBiY/eaqlUqoUUptJfrwzDrEudtdHh0bDWIKo3+iI2YE2JQ/vycVHLU lwtB/K9uPUuQA== Date: Mon, 7 Jul 2025 14:26:17 -0700 From: Jakub Kicinski To: Jamal Hadi Salim Cc: William Liu , Cong Wang , netdev@vger.kernel.org, stephen@networkplumber.org, Savino Dicanosa Subject: Re: [Patch net 1/2] netem: Fix skb duplication logic to prevent infinite loops Message-ID: <20250707142617.10849b9e@kernel.org> In-Reply-To: References: <20250701231306.376762-1-xiyou.wangcong@gmail.com> <20250701231306.376762-2-xiyou.wangcong@gmail.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 7 Jul 2025 16:49:46 -0400 Jamal Hadi Salim wrote: > > The tc_skb_ext approach has a problem... the config option that > > enables it is NET_TC_SKB_EXT. I assumed this is a generic name for > > skb extensions in the tc subsystem, but unfortunately this is > > hardcoded for NET_CLS_ACT recirculation support. > > > > So what this means is we have the following choices: > > 1. Make SCH_NETEM depend on NET_CLS_ACT and NET_TC_SKB_EXT > > 2. Add "|| IS_ENABLED(CONFIG_SCH_NETEM)" next to > > "IS_ENABLED(CONFIG_NET_TC_SKB_EXT)" 3. Separate NET_TC_SKB_EXT and > > the idea of recirculation support. But I'm not sure how people feel > > about renaming config options. And this would require a small > > change to the Mellanox driver subsystem. > > > > None of these sound too nice to do, and I'm not sure which approach > > to take. In an ideal world, 3 would be best, but I'm not sure how > > others would feel about all that just to account for a netem edge > > case. > > I think you should just create a new field/type, add it here: > include/linux/skbuff.h around line 4814 and make netem just select > CONFIG_SKB_EXTENSIONS kconfig > It's not the best solution but we are grasping for straws at this > point. Did someone report a real user of nested duplication? Let's go ahead with the patch preventing such configurations and worry about supporting them IIF someone actually asks.