From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f47.google.com (mail-qv1-f47.google.com [209.85.219.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AF1BE26F288 for ; Sat, 14 Mar 2026 14:03:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773497025; cv=none; b=XoAfSUtjeWR/ynbWxfY52zsq2/ZbJ6OHQg3q737vvllEWtKFgYF7jP8T/EbmmWC/RuqjBn/lFzFT7xfLLcYTmmc7Qwm3JuI5TQ92IAMnXMkreJzAkaByG9HubPWCenBvgXMabF9wFOPt6IC+ah9qoYSGH1KdNH6xFsx/khGdCjk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773497025; c=relaxed/simple; bh=sgPSEBXiJzbLUZfpo/yiL7lSsuvwcrEZVoSXxcN8Trg=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=RlcdeAek5Ay1ndD2XVkRrXzChP64gFqzx7cDO/tgIk5nhgg/l/bJmIqxmnUaADAobGfi9C67bbp4AHUxN/Gtaj9i8N0XPODqoTlC5Jg9EmAo+EwAzzZZllBA94ynlm1To53dqU4NThDA6YSYrMPMV1iZ62ur8sU5hmPN30ug+K0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=naAjBzjc; arc=none smtp.client-ip=209.85.219.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="naAjBzjc" Received: by mail-qv1-f47.google.com with SMTP id 6a1803df08f44-89a1d7cc7f0so25901476d6.1 for ; Sat, 14 Mar 2026 07:03:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773497023; x=1774101823; darn=vger.kernel.org; h=content-transfer-encoding:content-disposition:mime-version :message-id:subject:cc:to:from:date:sender:from:to:cc:subject:date :message-id:reply-to; bh=ozggT4VxXxi8nNocpv6bPtGBFv9+GusqHxKISYZjKwg=; b=naAjBzjcKOhTPuzjMw4A3c5mCvmKOuEcqDolxMAdROPVIR2Zqvb992FrptAvczZ1Gv Cn8B73JNKdfMpD+oaeptKTMvvjU8qVWvVDgf5wT8jCUNnvkOib1QFKooFYxXyl3SJ9tN PzICESDCJbEG675cNKUQiKoJyUdRI645Zr1NDLldq33XuNn3RBBTEGdTSA8ycXmeu5+Y c709/5Zzv/RuBR6IV2NaQN7A5M5j+H0tI6QwawR013pc35SUmj9x+dw/fDEr++4WNhKZ lVtK29R2wwfYfHf38f7ZthLHstSdCeGGBJP6JSmQin4Rr91JwrZUXCNZ3KTOnmHI9LTQ 2CZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773497023; x=1774101823; h=content-transfer-encoding:content-disposition:mime-version :message-id:subject:cc:to:from:date:sender:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ozggT4VxXxi8nNocpv6bPtGBFv9+GusqHxKISYZjKwg=; b=GJMcrFpp96QfyBmnVjJT7dIGq8VrUUE7NuUuWTgjeYvFrPW0TWreDu7UGPLyA7Cu0m OqjyX2mqoOhlEH7Ek1unALLKozGxy/EIfP4fzvEEFg29+yngVciYi9e6shyrBfqt8Iz5 ga53sI77zR4sUdEVT1BStAB8hnPs8Nh8Ezb+kewyqteMqmPv2T9oQOVu4j6Iw9jQ+Ndu hXOYZf+Nv6TharWB1+TGcoGcDHaA5CKv3XGpWmhE1G85a4IUdSaYTEqmeIH4Cfz8tBr5 QGTiveGU6Ql/1vMjPoi+Y3KnmIqD3XhFVoUgIn89CWI7E7Y2fpeTHNoB2iazWsauphbR RF6g== X-Forwarded-Encrypted: i=1; AJvYcCVny4eE1QnO/f0WLTWDJGwQR3edoiJXlg6V7WX0awxY/iGF0is4kBv9jyghiRIuOvPxsgMK2zgHODxC8WQ=@vger.kernel.org X-Gm-Message-State: AOJu0YwmxYkRmqAZNj19woPRdtAGog5MyFvF1l4etRha9pb2pTPtFh8h uWe1zXcTVyGoLqfdu8h8U63Dm/pH6S0e7aDsMRN/4glEwJNCjCba9X83 X-Gm-Gg: ATEYQzzBQJow32WP0997FBSNRCjzKIQBmyK8rzVO4gW9L5JLh6PaX1XX3b4IqDdgYYM rE/78xFxbcrxDWNisiXv1TREThdqWT33BDM5xmjWR4igTPWiOK+8SmPQMymCdW7Cn7EHuZQgYyC AebScoEZJ+kvVlH2nhmyokBhNl699SeGgXTsPpwSks8pXSaacqQyuTIvIROeNesiScipvcrGKLk nTYKNwfERucsz9p8eneqRFletKzqf7oVjgHaJz5mSp+1LhxABST40kj1ehozjZQXp/gD8va0nza Zx7l9BZkmKly/7FyfDYUfw+s0HJ6zHqImk5Xi56mfhUsEjwKWc/vmZABlTPmmG4WLlZipsznwta WTntVlQyVbagPnNK/9mb0oPadxVUZXQMvGmVvl8CuDqz4Tji0mhXYN6gtUrZ9ue7n7p7UHBYgUo /MNMGzXAR3F0VXePSsosZS6W8SecU/C6f2znhh4XQbEmtLdgNOO140pzS+3vr5UowzeSeQWw== X-Received: by 2002:a05:6214:5907:b0:89c:44f9:e879 with SMTP id 6a1803df08f44-89c44f9e989mr4328376d6.49.1773497022499; Sat, 14 Mar 2026 07:03:42 -0700 (PDT) Received: from eldamar.lan (c-82-192-247-196.customer.ggaweb.ch. [82.192.247.196]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-89a65cfc85dsm78266516d6.37.2026.03.14.07.03.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Mar 2026 07:03:41 -0700 (PDT) Sender: Salvatore Bonaccorso Received: by eldamar.lan (Postfix, from userid 1000) id F187DBE2EE7; Sat, 14 Mar 2026 15:03:38 +0100 (CET) Date: Sat, 14 Mar 2026 15:03:38 +0100 From: Salvatore Bonaccorso To: Fernando Fernandez Mancera , Pablo Neira Ayuso , Florian Westphal , Phil Sutter , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Alejandro Olivan Alvarez Cc: 1130336@bugs.debian.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, regressions@lists.linux.dev, stable@vger.kernel.org Subject: [regression] Network failure beyond first connection after 69894e5b4c5e ("netfilter: nft_connlimit: update the count if add was skipped") Message-ID: <177349610461.3071718.4083978280323144323@eldamar.lan> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Control: forwarded -1 https://lore.kernel.org/regressions/177349610461.3071718.4083978280323144323@eldamar.lan Control: tags -1 + upstream Hi In Debian, in https://bugs.debian.org/1130336, Alejandro reported that after updates including 69894e5b4c5e ("netfilter: nft_connlimit: update the count if add was skipped"), when the following rule is set iptables -A INPUT -p tcp -m connlimit --connlimit-above 111 -j REJECT --reject-with tcp-reset connections get stuck accordingly, it can be easily reproduced by: # iptables -A INPUT -p tcp -m connlimit --connlimit-above 111 -j REJECT --reject-with tcp-reset # nft list ruleset # Warning: table ip filter is managed by iptables-nft, do not touch! table ip filter { chain INPUT { type filter hook input priority filter; policy accept; ip protocol tcp xt match "connlimit" counter packets 0 bytes 0 reject with tcp reset } } # wget -O /dev/null https://git.kernel.org/torvalds/t/linux-7.0-rc3.tar.gz --2026-03-14 14:53:51-- https://git.kernel.org/torvalds/t/linux-7.0-rc3.tar.gz Resolving git.kernel.org (git.kernel.org)... 172.105.64.184, 2a01:7e01:e001:937:0:1991:8:25 Connecting to git.kernel.org (git.kernel.org)|172.105.64.184|:443... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/snapshot/linux-7.0-rc3.tar.gz [following] --2026-03-14 14:53:51-- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/snapshot/linux-7.0-rc3.tar.gz Reusing existing connection to git.kernel.org:443. HTTP request sent, awaiting response... 200 OK Length: unspecified [application/x-gzip] Saving to: ‘/dev/null’ /dev/null [ <=> ] 248.03M 51.9MB/s in 5.0s 2026-03-14 14:53:56 (49.3 MB/s) - ‘/dev/null’ saved [260080129] # wget -O /dev/null https://git.kernel.org/torvalds/t/linux-7.0-rc3.tar.gz --2026-03-14 14:53:58-- https://git.kernel.org/torvalds/t/linux-7.0-rc3.tar.gz Resolving git.kernel.org (git.kernel.org)... 172.105.64.184, 2a01:7e01:e001:937:0:1991:8:25 Connecting to git.kernel.org (git.kernel.org)|172.105.64.184|:443... failed: Connection timed out. Connecting to git.kernel.org (git.kernel.org)|2a01:7e01:e001:937:0:1991:8:25|:443... failed: Network is unreachable. Before the 69894e5b4c5e ("netfilter: nft_connlimit: update the count if add was skipped") commit this worked. #regzbot introduced: 69894e5b4c5e28cda5f32af33d4a92b7a4b93b0e #regzbot link: https://bugs.debian.org/1130336 Regards, Salvatore