Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7DCA9C433EF for ; Wed, 6 Apr 2022 20:59:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235399AbiDFVBg (ORCPT ); Wed, 6 Apr 2022 17:01:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235097AbiDFVBV (ORCPT ); Wed, 6 Apr 2022 17:01:21 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3D88E0F4 for ; Wed, 6 Apr 2022 12:26:20 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6B5ACB8252B for ; Wed, 6 Apr 2022 19:26:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C5EDCC385A5; Wed, 6 Apr 2022 19:26:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649273178; bh=4mMredy28mGbjg2kKITJg/1T3LzjD+BhUB+GJLVAbYk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=KcPyRxAbbQ9QHB3GR8usRZn8gSf20tXb5CRNqKW9Jp4hreylG7DKnHyqaeA/9Vgya Q3T2ARdrlhykgBtueWmR6+XYBWVtZnP/8Gsfv3J5UDnSM+6Yr1gj+WSU7iNnMA4C6T eEc78z71PzGJebSLm+a4i5xCHhqbEIAKAxa2lYAxgUz2SRVoQb4mcbnPiYiRWJy8bW Jhz7c//ZEFxI+EvnpIfIspRGhgXm3JxOvAF0J5t+wCLNE6o7H0Xm+STI2l5PufUn4o pZ/T9Z5hZnOC0eXbiEXa+h5bRH6ECOI1b2UWszUVtW5+btSs22sZAfIzbARqdd8KjK d62KCyx848bBA== Date: Wed, 6 Apr 2022 12:26:16 -0700 From: Jakub Kicinski To: Eric Dumazet Cc: "David S . Miller" , Paolo Abeni , netdev , Eric Dumazet , Yuchung Cheng , Neal Cardwell Subject: Re: [PATCH net-next] tcp: add accessors to read/set tp->snd_cwnd Message-ID: <20220406122616.302dc84c@kernel.org> In-Reply-To: <20220405233538.947344-1-eric.dumazet@gmail.com> References: <20220405233538.947344-1-eric.dumazet@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Tue, 5 Apr 2022 16:35:38 -0700 Eric Dumazet wrote: > From: Eric Dumazet > > We had various bugs over the years with code > breaking the assumption that tp->snd_cwnd is greater > than zero. > > Lately, syzbot reported the WARN_ON_ONCE(!tp->prior_cwnd) added > in commit 8b8a321ff72c ("tcp: fix zero cwnd in tcp_cwnd_reduction") > can trigger, and without a repro we would have to spend > considerable time finding the bug. > > Instead of complaining too late, we want to catch where > and when tp->snd_cwnd is set to an illegal value. I wish we could cover BPF CCs as well :)