From owner-dev-commits-src-main@freebsd.org Tue Apr 20 00:20:48 2021 Return-Path: Delivered-To: dev-commits-src-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0D60D5DBF5E; Tue, 20 Apr 2021 00:20:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FPPV76wzmz3H9m; Tue, 20 Apr 2021 00:20:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E0DC5B58; Tue, 20 Apr 2021 00:20:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 13K0KlJg006814; Tue, 20 Apr 2021 00:20:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 13K0KlIM006813; Tue, 20 Apr 2021 00:20:47 GMT (envelope-from git) Date: Tue, 20 Apr 2021 00:20:47 GMT Message-Id: <202104200020.13K0KlIM006813@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gleb Smirnoff Subject: git: faa9ad8a9005 - main - Fix off-by-one error in KASSERT from 02f26e98c7f4. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: glebius X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: faa9ad8a90058cf07e806cea51c0030bf69f88db Auto-Submitted: auto-generated X-BeenThere: dev-commits-src-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for the main branch of the src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Apr 2021 00:20:48 -0000 The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=faa9ad8a90058cf07e806cea51c0030bf69f88db commit faa9ad8a90058cf07e806cea51c0030bf69f88db Author: Gleb Smirnoff AuthorDate: 2021-04-20 00:20:19 +0000 Commit: Gleb Smirnoff CommitDate: 2021-04-20 00:20:19 +0000 Fix off-by-one error in KASSERT from 02f26e98c7f4. --- sys/netinet/tcp_hostcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netinet/tcp_hostcache.c b/sys/netinet/tcp_hostcache.c index 25190697bdee..baefa55fd076 100644 --- a/sys/netinet/tcp_hostcache.c +++ b/sys/netinet/tcp_hostcache.c @@ -470,7 +470,7 @@ tcp_hc_insert(struct in_conninfo *inc) */ TAILQ_INSERT_HEAD(&hc_head->hch_bucket, hc_entry, rmx_q); V_tcp_hostcache.hashbase[hash].hch_length++; - KASSERT(V_tcp_hostcache.hashbase[hash].hch_length < + KASSERT(V_tcp_hostcache.hashbase[hash].hch_length <= V_tcp_hostcache.bucket_limit, ("tcp_hostcache: bucket length too high at %u: %u", hash, V_tcp_hostcache.hashbase[hash].hch_length));