From nobody Sun Jul 21 08:52:02 2024 X-Original-To: net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WRcbl4J03z5R4hs for ; Sun, 21 Jul 2024 08:52:03 +0000 (UTC) (envelope-from bugzilla-noreply@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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WRcbl2CvCz4mrZ for ; Sun, 21 Jul 2024 08:52:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721551923; a=rsa-sha256; cv=none; b=XRUa604oktD/i1xCVKDqn4lUuP1+I5wxFiHwMJ8H7YDrAvWlbgkJ1kPmmYMn1vUYm8eaBL G2OOo3GDpomMjkXYor7yXmZGDiDdIX8KzDAzckm4p1Pugq+ZoyWHBwbDwUsuZfaYlKdKTA 8ff64ezpAJ2rx9pqsIDrQ8WqA3oTNUB2e4XtXhY8DfZ0xeEDaMMSJYDq3A2rFFcmmkcXkp x9J+iNQrBcZnrk0GgArsqcWfxgcX7N5HwJwmPAJjTepbY5pg3oKEuzzW73QSLFkgAh1zTh 1rBjLvGvcKC4oEP289sIcjWXYlcxZGfvNNUZjpVZM+WyjSowQ9PRuqxKJiMf+A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721551923; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=L2X6vaP5RAguDEZYTuIXdfnPnjuzojlWPq6r5swyd3c=; b=WPSPhX1Tvh8rotlqQaZccgQp+TSpIYA+GdVFVv/M22tklnGeamGYvXxonJa6Mtk0zIY1yQ XdFWUZx899CAaaKvn/NltPf1ll4TzNmvCa9nLCWxor38PCxbUcboVutkly0LU+o1UFKmty XbZi1qolpKHaY9EFLUUB0fAG9J4cZ+m98crdwrrWyiC744gyE5Nym5611gTEzClPWpT1yg Kr7KvxtJuWUs+fyv864DqJ2yFsw/WqtvWGSg88dWZW0YEuoYlUOs1oj0y2QUejRLe2Meo9 spRpVzkYLTX07uZyVTeeB3dxxrgyegifiEKmsknj7JEUQH0nMsC1zeiVH6h/6g== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4WRcbl1Qz2ztVB for ; Sun, 21 Jul 2024 08:52:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 46L8q3aw003467 for ; Sun, 21 Jul 2024 08:52:03 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 46L8q3pP003463 for net@FreeBSD.org; Sun, 21 Jul 2024 08:52:03 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 279875] sockstat: segmentation fault Date: Sun, 21 Jul 2024 08:52:02 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279875 --- Comment #8 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D35f4984343229545881a324a00cdbb398= 0d675ce commit 35f4984343229545881a324a00cdbb3980d675ce Author: Konstantin Belousov AuthorDate: 2024-07-20 00:30:55 +0000 Commit: Konstantin Belousov CommitDate: 2024-07-21 08:51:42 +0000 sockstat(1): tolerate situation where file info cannot be fetched Either due to a race, or to the privilege restrictions, it is not guaranteed that kern.files returned file information for all pcbs read from net.inet..pcblist. In this case the file rbtree does not return the matching file by data address, and code must avoid dereferencing NULL. PR: 279875 Reviewed by: asomers Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D46050 usr.bin/sockstat/sockstat.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=