From nobody Sun Jun 22 03:58:12 2025 X-Original-To: dev-commits-src-all@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 4bPy9c67MRz5tCD4; Sun, 22 Jun 2025 03:58:12 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bPy9c2dySz3gKl; Sun, 22 Jun 2025 03:58:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1750564692; 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; bh=ZnUchz+bkJKQkmwvSQcICWx4yIGgS1g58tB701p5e2Y=; b=p0+I668nEU81OpLQ9jwktlmwxoBBqwJzfwsERAf9hzg4T7k917POK1m7RwIbIoWatus+W5 Dt7GlFTRb/w48hrO3efvBbSKdoE4HZM2MqPMGKMiVEY90H/KjJSQY/BB/lWBL6OKSaz1y+ MfHXXl0DhwmLIzT6EMFv9MjzZdanvcR+CJT550kv+90phXA9MaxRbHWPUMGMCIvptlQRRN 6cCcdhL7lmsJFpmMNUp8sct9OmAPN1iD7mQIFTzflvT0tvQ1346+fl/hnjyhDA9qFoGk35 YUjDTCwb8OaZADj8agJJa6tTdU9jVuIUydTvn6ki4yJOQlJgLU75IjupbH08ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1750564692; 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; bh=ZnUchz+bkJKQkmwvSQcICWx4yIGgS1g58tB701p5e2Y=; b=gyRbP2nH6y8gJ/HPC1D6F2yvsCYRtDve0Q98a597IZ/0WLi6VVW1oXBovxug18t1y6uPqx fnPWY0u8GS4JTJGGeEf8JGKJpTn8X+S29Fe4fIH/OTJNN6Rxtmg7FI0AcxiAfEfxvhaz9G 4DAJrY/93AR+Apm3Imj8g1b/j8ZVlQT8QiFIkcDgAWQj/cobQqCkgZ51cju2AN+ePgUgg8 2TH6DgGBEAfP+Y7tgtDObLdlE5j+VHW+mvRgp4WOhAZvk5x6HJgZEPdTnzVvNr8tE6e+su 0q2SWZqn11NKNNzqS+EOzdx01fW7ErZnRLo05NXsjj4JNmt9gNpgY+ccpt07cw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1750564692; a=rsa-sha256; cv=none; b=IsggPrx2PiloC0kN5GC7UsGXVAPljxlJhel1KbLeRF9JIvjFA8+pVlUP/5W2gLSjnnPUUe mh7NiI2HoCAvBkVrLU05Y4/kbzHFSGSj7ji9qYqPAEmI2Q7VoPl4lB4E+hLesPHxVoxo6E ZCQPIjVx6CLeL/41TBdV/tZxlNsEU8W6bLspT5VkhwrV6sZpjnl6MfF6zwsoYdytfj4dff /fdPmj0QxXylhhZ7546EAEkTtQIn8C9WK/YuJLlkyerpopYW+Toa7tHh2RHGeTXRWnxLmg Pzc5O5fUoewmdgxFflq884CeCM/oyGkOoVFQU7qsDZ7Fjo4z1PUl89h600f4Rw== 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 4bPy9c1GDTz11G2; Sun, 22 Jun 2025 03:58:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 55M3wCZe041075; Sun, 22 Jun 2025 03:58:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 55M3wCb8041072; Sun, 22 Jun 2025 03:58:12 GMT (envelope-from git) Date: Sun, 22 Jun 2025 03:58:12 GMT Message-Id: <202506220358.55M3wCb8041072@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ahmad Khalifa Subject: git: 2e91875bc2d8 - main - libkvm/kvm_open.3: document broken full dumps List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: vexeduxr X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2e91875bc2d861ce3b8f3e893dca999d139f590e Auto-Submitted: auto-generated The branch main has been updated by vexeduxr: URL: https://cgit.FreeBSD.org/src/commit/?id=2e91875bc2d861ce3b8f3e893dca999d139f590e commit 2e91875bc2d861ce3b8f3e893dca999d139f590e Author: Ahmad Khalifa AuthorDate: 2025-05-22 12:44:57 +0000 Commit: Ahmad Khalifa CommitDate: 2025-06-22 03:49:32 +0000 libkvm/kvm_open.3: document broken full dumps Starting 13.1 the amd64 kernel was made relocatable, but the kernel didn't provide enough information for libkvm to figure out where it was loaded. Reviewed by: markj Approved by: imp (mentor) Pull Request: https://github.com/freebsd/freebsd-src/pull/1706 Closes: https://github.com/freebsd/freebsd-src/pull/1706 --- lib/libkvm/kvm_open.3 | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/lib/libkvm/kvm_open.3 b/lib/libkvm/kvm_open.3 index a7e428748215..9a32719d537b 100644 --- a/lib/libkvm/kvm_open.3 +++ b/lib/libkvm/kvm_open.3 @@ -29,7 +29,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd March 20, 2017 +.Dd June 22, 2025 .Dt KVM_OPEN 3 .Os .Sh NAME @@ -245,7 +245,20 @@ The value passed via was .Dv NULL . .El +.Sh NOTE +Full memory dumps taken on 13.x (excluding 13.0) and 14.x amd64 kernels +will cause both +.Fn kvm_open +and +.Fn kvm_open2 +to fail since they do not provide sufficient information to figure out +where in physical memory the kernel was loaded. +Full memory dumps have to be explicitly enabled by setting the +.Va debug.minidump +.Xr sysctl 8 +to 0. .Sh SEE ALSO +.Xr dumpon 8 , .Xr close 2 , .Xr open 2 , .Xr kvm 3 ,