From nobody Wed Oct 12 16:31:50 2022 X-Original-To: bugs@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 4MndTL63h6z4fj6M for ; Wed, 12 Oct 2022 16:31:50 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MndTL43kQz3Px9 for ; Wed, 12 Oct 2022 16:31:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 4MndTL37T8z1MlD for ; Wed, 12 Oct 2022 16:31:50 +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 29CGVo1j024263 for ; Wed, 12 Oct 2022 16:31:50 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 29CGVoWW024262 for bugs@FreeBSD.org; Wed, 12 Oct 2022 16:31:50 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 266113] kvm_close tries to munmap NULL memory Date: Wed, 12 Oct 2022 16:31:50 +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: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665592310; 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=M5etk3h3IjjAjRy9DDGJb/o1NlrAVxsV1SMoN/d6Lq4=; b=UIt6rYx4L2jvgQXiNAfQJDEwHGR4skIAHy85cfYURfRvsqmdWJRJOCx0m9GXslo+iy+NIa VxjVgbXljsK5i6UyB+AU+KHx6L7z9ZKWuiWQdBTykfxIjSdZz4McE2S9f/rXG2v6be/wAM Ns9eEitAyu8zN9LVMmrjuvqlbJu17+Ja2YvqQcW59bkOLEmqgycIyUAzkS47C18+1oOa0N yhocIcM2yqvWKzP2dao2jwLE4j/dgS/EfJYoSRZ9Rv/sPD93i//x4Mojw5wL66MvRxsbYC MVZZrov4UWPHgzXrpEkcLGZbs5DLPem++fAufR5cl8U6FdOqULw0gtLiR1Hu5w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1665592310; a=rsa-sha256; cv=none; b=OzcbZwaNs7NssiqXeHuhYm0i1zHvzyznGtYHHQJToNNFf8q5ECbEbbHlrz40u8uEb2CIH5 mL7fuq1+ZlEqN3JUCo0IQUcU2QA93x0tB88yWomGQ3douAv/ggZUyyOxmuvC1ZMvxhXslM E+8oEC4Mnb0BTLb+cfo4a09XVVmxYtgbZbDv4JmxRNrK3Jzy+CSoOEV2M//ijoAnNMIn7x Wu+VgemaeKD5v3ZiS1v9quVultYRznpQ6FYc8atA3aSZVN+tpELCs3I//HcicS5C97Q3TE XL6z/gT8JEQK4w3Kdsfa5Fry16CarBOhOfCB969ftpJJpUWO6aQRgRkY/ZkwvA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266113 Mark Johnston changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |Open CC| |markj@FreeBSD.org --- Comment #2 from Mark Johnston --- This seems ok to me. I would check sparse_map =3D=3D NULL instead of check= ing pt_sparse_size !=3D 0. The reason is that the assignment to pt_sparse_size= might be moved earlier by some future change, and then the code will be wrong aga= in. --=20 You are receiving this mail because: You are the assignee for the bug.=