Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7720180rdb; Thu, 4 Jan 2024 05:50:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IG/Jum+Mq2aRPBt8E6HpKKIgSU/12TGzti5++c/guNcYnD42Wsw/xv8hIhYhU0Tcuc9PcPh X-Received: by 2002:a17:90a:e2cf:b0:28b:831f:187 with SMTP id fr15-20020a17090ae2cf00b0028b831f0187mr552058pjb.19.1704376254557; Thu, 04 Jan 2024 05:50:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704376254; cv=none; d=google.com; s=arc-20160816; b=NKj6zJNl5rJpTgCGSJCBfJ3WfwQh/mDcuxSaMo/xvLgNh4t2jBua/hi1axrW8bBpVI uuO8aNIJJMAB8+iJs+in/j5qunNPIpZud6nJdcWwbJWkcS/eZDRpPNIuE3iWAzFHiPNr K5fdRVEdlWG9B+wWlZcRk+oL/CVIZ0pV0M86UTwf/pHduxi3EuihbOYe85Osk/O0yybe E1t/l/1MboBJDuGmrO67Gn3e6JnF0WvhE9+LYZnoafYXNBQMemadV2h4Iv0MTXzUV7x9 cGnqJrIW9CmHotm0s9ApuMyOzaMqeENBGAslEmEL2BhrGdez6qBWkkg3KhUzBaKy7ejm Q08A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=1N0CJHq6htpDij9HAOUTJdfEEnbukPhsaVqFV2O6M58=; fh=tqwsiKm2cpe6ilIceRDwEvXVw0dUuUDf7/q3gb+aDv4=; b=H2huAOscyq4wJnta9s/EPsiGbRCEU75W4uodNZWdXdggk5MbI2zMb7STedGd45NppG YKxrNs3XZ8MnfJE0ww5ygEvXsbBbFPhqoYkOO0iyDqJZ7JKKYsKTVt1UVXRTDJJvaWPC Uwfpt1Migk7LlAVY8i3UgDePzsQEKAvYwaJawM+vnuAK/EudPlr3uELe0ObsVn7/Knho qUeK2eVKJHrnJmrzsuK3MoIkxsqX6IjdFbZa3RVtdfSBYwS/4u6h0zgJztNde88faTA7 m53M/03bWDQznN4xc1ssT7G+gTY89FRkxtw/HfoaJ8EpNIeHgKfyKs/+lhRpgFDna2pF nBDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arista.com header.s=google header.b=Kfu5KJFE; spf=pass (google.com: domain of linux-kernel+bounces-16734-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16734-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=arista.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id s2-20020a17090a074200b0028b18caf8c6si3016012pje.106.2024.01.04.05.50.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 05:50:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16734-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@arista.com header.s=google header.b=Kfu5KJFE; spf=pass (google.com: domain of linux-kernel+bounces-16734-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16734-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=arista.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 3C760285EFB for ; Thu, 4 Jan 2024 13:50:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8386022EF3; Thu, 4 Jan 2024 13:49:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arista.com header.i=@arista.com header.b="Kfu5KJFE" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (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 3355E22EE6 for ; Thu, 4 Jan 2024 13:49:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=arista.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arista.com Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-40d5a41143fso4397245e9.3 for ; Thu, 04 Jan 2024 05:49:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arista.com; s=google; t=1704376147; x=1704980947; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=1N0CJHq6htpDij9HAOUTJdfEEnbukPhsaVqFV2O6M58=; b=Kfu5KJFEvaFn3dvgGo1N9pFqDDcZGpkSheTw6/hRxPyiU6lTy7rfDZ9XbK+C89S4v7 h5NBoUlKRLX4FLORzRcW9B1Juj7CDQ8l3aNgIAhcxWnknCfcY2w9PZRo5E6DPv6wllDX +cr6V2ndSq3RAJFGHe5QYnREhD+zWOo2g/UDupubR7yeSNqNOLUj1sRWr5HZy9EiinJB fLO13ZStiqn8puVb8aXh9owvWgX28UAqyW436Wgcx4VOeRGnFCD7sPNf5CdKuCL/1LIH 6DFn41Qk4TTBcZCY6Gre63rWVKSpznjbMQSVTKIRTLOGJ3qiLz1fw904hLKuc7ZQSg33 mv4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704376147; x=1704980947; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1N0CJHq6htpDij9HAOUTJdfEEnbukPhsaVqFV2O6M58=; b=obgpE8RLUA+m0MF3ss5WKAKdXedfoQ9T/9DzCeHbD1BHiaBz+aDoui1q/V1ouWlwI0 4mlF7iX4FX/1utlUu+BkXKDtuI2EzN56EtHRBe4B4AgpWcs48GmDbppFKt5ikwCRHyeU EzhkiDpNtNkDRvaWI7XqW0Z3z/bhUniru7BC5ziwxEHjSx2SNffEIuYuO7jSohTb0dLY yj3CDCm+1Sp3I0KMWHsYj+l7MPVhySbHGhrifz+KbIX15obKa2EYVKJzzyXYWWBl6mkk q/OkNHkza0AxGXQ3k3v9MiKgvDpL8z7fT+WDYIJL2fffAxCQYVCgvB+jRoIINr1vJeWO owlA== X-Gm-Message-State: AOJu0YypPK0uYYtT2ig633Ygra1j5CB5f1+GrQWW/TSI4F0CkX2HavZc ATBZUcE5BOrAr5syQGDXNcDlUF54eo8a X-Received: by 2002:a05:600c:84ce:b0:40c:2b01:e09e with SMTP id er14-20020a05600c84ce00b0040c2b01e09emr323603wmb.47.1704376147451; Thu, 04 Jan 2024 05:49:07 -0800 (PST) Received: from [10.83.37.178] ([217.173.96.166]) by smtp.gmail.com with ESMTPSA id az30-20020a05600c601e00b0040e35f28039sm168575wmb.18.2024.01.04.05.49.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 Jan 2024 05:49:06 -0800 (PST) Message-ID: Date: Thu, 4 Jan 2024 13:49:05 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: syslog spam: TCP segment has incorrect auth options set Content-Language: en-US To: Christian Kujau Cc: netdev@vger.kernel.org, Dmitry Safonov <0x7f454c46@gmail.com>, Francesco Ruggeri , Salam Noureddine , David Ahern , linux-kernel@vger.kernel.org References: From: Dmitry Safonov In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Christian, Thanks for the report, On 1/4/24 10:55, Christian Kujau wrote: > Ever since commit 2717b5adea9e ("net/tcp: Add tcp_hash_fail() ratelimited > logs") the following is printed, in waves of small floods, to syslog: > > kernel: TCP: TCP segment has incorrect auth options set for XX.20.239.12.54681->XX.XX.90.103.80 [S] > > This host is connected to the open internet and serves as a small HTTP and > SSH login server, not much traffic is happening here. So I'd assume these > messages to be the result of random internet scans and/or fingerprinting > attempts or the like. While not really a concern, these messages are > flooding the dmesg buffer over time :-( > > Is there a way to adjust the severity of these messages? > > * In include/net/tcp.h this gets logged with tcp_hash_fail(), which is > * defined in include/net/tcp_ao.h and calls net_info_ratelimited(), which > * is in turn defined in include/linux/net.h and calls pr_info(). > > Can e.g. net_dbg_ratelimited be used instead? Yeah, I guess it's possible to down the severity of these logs, but may be unexpected by admins: TCP-MD5 messages existed for long time and there may be userspace that expects them (i.e. in arista there are tests that look for these specific messages - those would be easy to fix, but there may be others outside this company). While thinking on the origin of your issue, it seems that the logs produced by either TCP-MD5 or TCP-AO are desired by a user when they add/use the authentication. Could you try this and see if that solves the issue for you? https://lore.kernel.org/all/20240104-tcp_hash_fail-logs-v1-1-ff3e1f6f9e72@arista.com/ Thanks, Dmitry