From nobody Thu Oct 31 22:23:54 2024 X-Original-To: freebsd-arch@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 4XfdnV37Ddz5cVLr; Thu, 31 Oct 2024 22:23:58 +0000 (UTC) (envelope-from jhibbits@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XfdnV1gz8z4tq0; Thu, 31 Oct 2024 22:23:58 +0000 (UTC) (envelope-from jhibbits@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730413438; 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=uMG1XdZro36FyxNtkFCnob3r+xI21wRLEEdX2uFrUl8=; b=R2+oJFvv37tkqre8oaiycFihh1VlHMYY1G6WMP9QascZ/RkiqMykiEV5HTODCVjsBEsXE2 9uDVme2/yn60qmLwughotbAt0CV5hnfFcCs7ogtg2cIRbWkjchGUj6UitKv4l5RJGIrXje TArzQs+mVPSTou4Fv0Nh1ehSdfoq4lz/9suocoJdaWPKt/E/PHHU8NN/9j73GSnYp2qLIG 1xY6JrPZuN8G0Ubo8kx+fdMIA4qz5jpkIxRvMtBmnZj5SsdlkJzuKK/WwK3MDtRxtVeMtC VNu9Oel4kG74nXK4t03YDQhGoqFgZSMkIwLDe+CzZigcp8VY3Ts2vP2LimzNdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730413438; 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=uMG1XdZro36FyxNtkFCnob3r+xI21wRLEEdX2uFrUl8=; b=g1c6y/wl6iuyKmeEKBDweiUv3uCt1qm3dJn7p07G+kjl1FjangNh+uGtXCenKBcGTA/s4C v3aBEL03GOP9EhsSgM7JZq/8Ugn/2zD6nmw2+tVhsQ8unwLJk0uR8sO/eiPThnHzG83W1j GENw+Zfzb8s6r0uGscIS88snwZRSYfEPPumNHfjWB4e4/MHl6iaxitI8di6d1TcIgEFa6y Q5qz6vChlqfsdiwe/CdxxmtEiW4WuuekTaI94SRNoeBEs4nQ5gO/yUWZn8xP14SLj4V9V6 aRX/UA4s7qm7G3/hRvccgjMWA/cGriLxRdx71qcwN745DeUWAvsiLDfvYweEqA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730413438; a=rsa-sha256; cv=none; b=RppXejGHte842hrJ670RrLGskvtwQJCEPUVmUVyTQPkMs/0bZqNoAPhl64vreV2NmDo4xr 0Fez8t1hYiL/6Y3kLEzxF9XUEQdGlN8PUHCs8WbtgNFGlJ6Qd3WgjmGC7Mjs5GNKzZiZcy HBOrFyEaZZLxT0bh5xluQDWhnDJdinntc9dZqFk1+Gca++V9k5dRhHsfkqR29zrngRU6q9 jGUjbDCRxD/VHXjQ/2YpnKwHz9VzOwK796FXQ4uOdWZLL9rs1+UnEZHAVy4NxFjK4LJDQR zSWefvkuGTIW0r2PkcjxMEHFhLJFZfF/w0iGFXLBimsb9Wy6KsnIUCO8sTmukg== Received: from ralga.knownspace (unknown [IPv6:2600:2b00:a720:d301:9f03:382a:d672:81f0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: jhibbits) by smtp.freebsd.org (Postfix) with ESMTPSA id 4XfdnT5TpDz1Ff7; Thu, 31 Oct 2024 22:23:57 +0000 (UTC) (envelope-from jhibbits@FreeBSD.org) Date: Thu, 31 Oct 2024 18:23:54 -0400 From: Justin Hibbits To: , Subject: Direct dumped kernel cores Message-ID: <20241031182354.14fa48aa@ralga.knownspace> X-Mailer: Claws Mail 4.3.0 (GTK 3.24.43; powerpc64le-unknown-linux-gnu) List-Id: Discussion related to FreeBSD architecture List-Archive: https://lists.freebsd.org/archives/freebsd-arch List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arch@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi everyone, At Juniper we've been using a so-called 'rescue' kernel for dumping vmcores directly to the filesystem after a panic. We're now contributing this feature, implemented by Klara Systems, to FreeBSD, and looking for feedback. I posted a review at https://reviews.freebsd.org/D47358 for anyone interested. Interesting bits to keep in mind: * It requires a 2-stage build process, one to build the rescue kernel, the other to build the main kernel, which embeds the rescue kernel inside its image. This might need some further work. * Thus far it's been implemented for amd64 and arm64, once proven out, other architectures (powerpc64/le, riscv64) can follow suit. * Kernel environment bits to pass down to the rescue kernel are prefixed `debug.rescue.`, for instance `debug.rescue.vfs.root.mountfrom`. There are many more details in the review summary. We'd love to get feedback from anyone interested. Thanks, Justin Hibbits