Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1338830imj; Thu, 7 Feb 2019 23:07:44 -0800 (PST) X-Google-Smtp-Source: AHgI3IZrb0KQFDBs4NsKkYl9tMtVretO2Zg4cy2N6kRcrfm7GgVW8NFte+scp6jdiKnG4ugq2iZD X-Received: by 2002:a62:5182:: with SMTP id f124mr10766965pfb.238.1549609664881; Thu, 07 Feb 2019 23:07:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549609664; cv=none; d=google.com; s=arc-20160816; b=Vt12CwVvb/cEot6w6924qlhLgZKHMVzSid5oJtZl0I+UOxXb7+G0ljW8fNW4yksJKU wWGZLVfI5fg5RNWoZOyNZK3IFjppJgv9X6u8UnOh0LQO9KRG6zRhXFR0OhAg5g6JIDxJ nDKkmocz3+LgUyOGyyWAcR/eWm2MvDdmSIc9jBJBx47heBm3fxBh+RknW94P65JmlHTG YbFbcYBMprJ7Dd/6xNrqhEPFY1rw3Opbl5v+kiQmm85PiDIIrvukInrndeIC4jJv2Q6X cxD6aRZhtw2B56i+gWIvUoV1Zl2mCrRxvvWuo86IYfHEelAvfaRUFRLcZu4tohiqHI+M YQsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=g0kA3Y9bQI+U8xpeoPcAhsBz0RrRdPnez4HXBBw/6RU=; b=cRirAh13g+YAfJXvBya8NH3IY+pUmERHUFEMRcVMhM4a3zIhSEWhjcgEBlGYuVIbaX XqrSL+7FJ1CClDaKvUaFAu8rzOzVkit3hUV6NWkYcJNg7Imb+ovl3A8b+H9t8XZqg9tT DQIQ66b2IQyKR2ja4oi4G/XILKi0WFKQDMvv93ZQjOgwqT2mFNFHOWaPsj5j/MqXEqsD JFxCA2t1/5MG4VXRfC1lKPxaaNY10WECWPTENNMqEA9z+r1UhIiTIIpVSJjp4+j9Fnpy ETNHjGLMYPMeqhxHy0X7Nq25Zi29hcGmMQMb/cUfV7DnY1CR5Sf24sSojW3dAe5ZFERY yd6Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t75si1519836pfa.170.2019.02.07.23.07.27; Thu, 07 Feb 2019 23:07:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727206AbfBHHHP (ORCPT + 99 others); Fri, 8 Feb 2019 02:07:15 -0500 Received: from Chamillionaire.breakpoint.cc ([146.0.238.67]:49804 "EHLO Chamillionaire.breakpoint.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726063AbfBHHHP (ORCPT ); Fri, 8 Feb 2019 02:07:15 -0500 Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.89) (envelope-from ) id 1gs0Fi-0008P5-19; Fri, 08 Feb 2019 08:07:10 +0100 Date: Fri, 8 Feb 2019 08:07:10 +0100 From: Florian Westphal To: Sander Eikelenboom Cc: Florian Westphal , Pablo Neira Ayuso , "David S. Miller" , netdev , linux-kernel Subject: Re: Kernel 5.0-rc5 regression with NAT, bisected to: netfilter: nat: remove l4proto->manip_pkt Message-ID: <20190208070710.rcbj6exqwz6m2o7o@breakpoint.cc> References: <40b70892-daf5-28d7-28b5-869911faf2bb@eikelenboom.it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40b70892-daf5-28d7-28b5-869911faf2bb@eikelenboom.it> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sander Eikelenboom wrote: > L.S., > > While trying out a 5.0-RC5 kernel I seem to have stumbled over a regression with NAT. > (using an nftables firewall with NAT and connection tracking). > > Unfortunately it isn't too obvious since no errors are logged, but on clients it > causes symptoms like firefox intermittently not being able to load pages with: > Network Protocol Error > An error occurred during a connection to www.example.com > The page you are trying to view cannot be shown because an error in the network protocol was detected. > Please contact the website owners to inform them of this problem. > > But it's only intermittently, so i can still visit some webpages with clients, > could be that packet size and or fragments are at play ? > > So I tried testing with git://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git with > e8c32c32b48c2e889704d8ca0872f92eb027838e as last commit, to be sure to have the latest netdev has to offer, > but to no avail. > > After that I tried to git bisect and ended up with: > > faec18dbb0405c7d4dda025054511dc3a6696918 is the first bad commit > commit faec18dbb0405c7d4dda025054511dc3a6696918 > Author: Florian Westphal > Date: Thu Dec 13 16:01:33 2018 +0100 > > netfilter: nat: remove l4proto->manip_pkt Thanks, this is immensely helpful. I think I see the bug, we can't use target->dst.protonum in nf_nat_l4proto_manip_pkt(), it will be TCP in case we're dealing with a related icmp packet. I will send a patch in a few hours when I get back.