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 87E551548C for ; Sat, 11 Oct 2025 14:04:27 +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=1760191470; cv=none; b=jn4+/rsHlXS36JsJTiPa6YrdeAFZaIweIdy4nWUiK46adoycMoCbTMy2s1lmYYGSPcO6tB88zUDcLbNnA/fI4fr/N7ihW1wzrwxPrP6aQsNh6WD7Eq8epxAs2jzNKKAyiQDfRZNhXf7KHS9ibeKh/ZvLKja4qa6XN7aKbC0ZT/E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760191470; c=relaxed/simple; bh=RsWkhnnlQT/1CN4nxGAHOXUWQuAXvABWTm5I4BUjNdg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=epVJ3nZyjc1oU5AAfiu7P62bwdn8kI6sZr9OMrb8LVBd49U2TP+bGi1C4v1/VkQJSgsTUFBfBK+hPiYJJF3lCTiysFGivNnMac7SNiEzg+cTLIlpIDTdhIAr8SYOhRf6HYNJsoK/tg9kQhOAK2EGgQbBJQbN2g1JJtKW2u51daE= 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 A8B0E60742; Sat, 11 Oct 2025 15:58:41 +0200 (CEST) Date: Sat, 11 Oct 2025 15:58:41 +0200 From: Florian Westphal To: "Remy D. Farley" Cc: "netfilter-devel@vger.kernel.org" Subject: Re: iptables: zero dereference parsing bitwise operations Message-ID: References: Precedence: bulk X-Mailing-List: netfilter-devel@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: Remy D. Farley wrote: > While messing around with manually encoding nftables expressions, I noticed > that iptables binary v1.8.11 segfaults with -L and -D options, if > there's a rule containing a bitwise operation of a type other than > mask-and-xor. As I understand, iptables and nft tools only generate rules with > mask-xor, though the kernel seems to happily accept other types as well. No, nftables supports this, but iptables does not. iptables should not segfault, however. Care to make a patch? Thanks.