From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [91.216.245.30]) (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 2C6192BE655; Mon, 16 Mar 2026 11:48:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.216.245.30 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773661717; cv=none; b=kaO8RFQO3iZhOpHw4xCfZ3SQ28GcWTs64ieer6mqdPiyZ24wKITHy/d6VW05JPN1VUnK07ptXoOljlm3Dg1J8E2cmOZDBKjeFd9dIZ9auXPbrNYlm4AVQYe0gW3gY8G1dUWtp6lbutwU4KhE9IfdAMH33EDJ8BZGhIHWz4h6B2U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773661717; c=relaxed/simple; bh=7+gwXUc+u02+ycYjnHx2vbDXbRxeOfeDYvQey7dgw2Q=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UMb2q9Uytdh0lK3Jg+WObbGW84taKeZqUxm3dqiZavN0icJHX6RR3A8K8P5KHzTlkifORK2uQA4pd2gVQiuL8xdz+Nvkzhfq5ZQCXGSgiD5yytlLlOQ5Gm7gQLStvOYn1WXIPkkgGo3RHIP5cXZGqFFKyNlREP9mCJTKBvCmyBU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=strlen.de; spf=pass smtp.mailfrom=strlen.de; arc=none smtp.client-ip=91.216.245.30 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=strlen.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=strlen.de Received: by Chamillionaire.breakpoint.cc (Postfix, from userid 1003) id 47619605C3; Mon, 16 Mar 2026 12:48:34 +0100 (CET) Date: Mon, 16 Mar 2026 12:48:33 +0100 From: Florian Westphal To: Hyunwoo Kim Cc: pablo@netfilter.org, phil@nwl.cc, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org Subject: Re: [PATCH net] netfilter: nf_flow_table_offload: fix heap overflow in flow_action_entry_next() Message-ID: References: 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-Disposition: inline In-Reply-To: Hyunwoo Kim wrote: > > Ping. I'm not even sure if there is a bug to begin with, see Pablos > > Sorry for the late reply. > > To clarify, I triggered the overflow using a dummy device that accepts > TC_SETUP_FT, as I don't have real offload-capable hardware. The 17 entry > scenario requires double VLAN (QinQ) + IPv6 + SNAT + DNAT simultaneously, > which is unlikely in real-world deployments, so it is hypothetical. If you triggered it, its not hyptothetical and needs to be fixed. > > Normally there should be a check that prevents such a configuration. > > If thats missing, please add one instead of increasing this define. > > So, should I send a v2 with a bounds check, or drop this patch? Yes, please send a v2 that prevents the overflow at configuration time.