Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5BC60C43603 for ; Wed, 18 Dec 2019 00:24:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3B73E2176D for ; Wed, 18 Dec 2019 00:24:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726383AbfLRAYr (ORCPT ); Tue, 17 Dec 2019 19:24:47 -0500 Received: from orbyte.nwl.cc ([151.80.46.58]:33688 "EHLO orbyte.nwl.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726205AbfLRAYr (ORCPT ); Tue, 17 Dec 2019 19:24:47 -0500 Received: from n0-1 by orbyte.nwl.cc with local (Exim 4.91) (envelope-from ) id 1ihN8u-00034U-Gp; Wed, 18 Dec 2019 01:24:44 +0100 Date: Wed, 18 Dec 2019 01:24:44 +0100 From: Phil Sutter To: Florian Westphal Cc: Pablo Neira Ayuso , netfilter-devel@vger.kernel.org, =?utf-8?B?TcOhdMOp?= Eckl Subject: Re: [nf PATCH] netfilter: nft_tproxy: Fix port selector on Big Endian Message-ID: <20191218002444.GA20229@orbyte.nwl.cc> Mail-Followup-To: Phil Sutter , Florian Westphal , Pablo Neira Ayuso , netfilter-devel@vger.kernel.org, =?utf-8?B?TcOhdMOp?= Eckl References: <20191217235929.32555-1-phil@nwl.cc> <20191218000315.GY795@breakpoint.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191218000315.GY795@breakpoint.cc> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org Hi, On Wed, Dec 18, 2019 at 01:03:15AM +0100, Florian Westphal wrote: > Phil Sutter wrote: > > On Big Endian architectures, u16 port value was extracted from the wrong > > parts of u32 sreg_port, just like commit 10596608c4d62 ("netfilter: > > nf_tables: fix mismatch in big-endian system") describes. > > I was about to debug this today, thanks for debugging/fixing this. With that BE machine at hand, I quickly gave nftables testsuite a try - results are a bit concerning: The mere fact that netlink debug output for these immediates differs between BE and LE indicates we don't seriously test on BE. Cheers, Phil