NetBSD Problem Report #57534

From www@netbsd.org  Fri Jul 21 12:08:50 2023
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 20C0C1A923D
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 21 Jul 2023 12:08:50 +0000 (UTC)
Message-Id: <20230721120848.A6F851A9241@mollari.NetBSD.org>
Date: Fri, 21 Jul 2023 12:08:48 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: replace cgdroot.kmod by cgdroot.fs and update documentation
X-Send-Pr-Version: www-1.0

>Number:         57534
>Category:       misc
>Synopsis:       replace cgdroot.kmod by cgdroot.fs and update documentation
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    riastradh
>State:          analyzed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 21 12:10:01 +0000 2023
>Closed-Date:    
>Last-Modified:  Mon Mar 25 17:58:13 +0000 2024
>Originator:     Taylor R Campbell
>Release:        current
>Organization:
The NetCGD Documentation
>Environment:
hottest June on record, harbinger of worse to come
>Description:
The bootloader (at least on x86 and arm) has supported loading a ramdisk directly, without it being baked into a kernel module, for about a decade now.

The instructions for root-on-cgd at https://wiki.netbsd.org/security/cgdroot/ still describe the cgdroot.kmod kernel module, however, and it appears that the bare ramdisk isn't published in the releasedir anywhere.


>How-To-Repeat:
read https://wiki.netbsd.org/security/cgdroot/
>Fix:
1. cgdroot.fs (and zfsroot.fs) should be published in the releasedir.

2. https://wiki.netbsd.org/security/cgdroot/ should be updated to use cgdroot.fs.

3. Stretch goal: cgdroot and zfsroot should be combined, and support for https://github.com/riastradh/fidocrypt added (not necessary for closing this PR).

>Release-Note:

>Audit-Trail:
From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/57534 CVS commit: src
Date: Wed, 20 Mar 2024 13:51:36 +0000

 Module Name:	src
 Committed By:	riastradh
 Date:		Wed Mar 20 13:51:35 UTC 2024

 Modified Files:
 	src/distrib/amd64/ramdisks/common: Makefile.ramdisk
 	src/distrib/i386/ramdisks/common: Makefile.ramdisk
 	src/etc/etc.amd64: Makefile.inc
 	src/etc/etc.i386: Makefile.inc

 Log Message:
 x86: Release the ramdisks too.

 This way we will get cgdroot.fs (and zfsroot.fs too) in the release.

 PR misc/57534


 To generate a diff of this commit:
 cvs rdiff -u -r1.16 -r1.17 src/distrib/amd64/ramdisks/common/Makefile.ramdisk
 cvs rdiff -u -r1.15 -r1.16 src/distrib/i386/ramdisks/common/Makefile.ramdisk
 cvs rdiff -u -r1.16 -r1.17 src/etc/etc.amd64/Makefile.inc
 cvs rdiff -u -r1.69 -r1.70 src/etc/etc.i386/Makefile.inc

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

Responsible-Changed-From-To: misc-bug-people->riastradh
Responsible-Changed-By: riastradh@NetBSD.org
Responsible-Changed-When: Fri, 22 Mar 2024 18:12:59 +0000
Responsible-Changed-Why:
ramdisks released in HEAD
need pullup-10, pullup-9
maybe pullup-8


State-Changed-From-To: open->needs-pullups
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Fri, 22 Mar 2024 18:12:59 +0000
State-Changed-Why:
mine


State-Changed-From-To: needs-pullups->pending-pullups
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Fri, 22 Mar 2024 21:17:44 +0000
State-Changed-Why:
pullup-10 #642
pullup-9 #1820
pullup-8 #1949


From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/57534 CVS commit: [netbsd-10] src
Date: Mon, 25 Mar 2024 15:18:22 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Mon Mar 25 15:18:22 UTC 2024

 Modified Files:
 	src/distrib/amd64/ramdisks/common [netbsd-10]: Makefile.ramdisk
 	src/distrib/i386/ramdisks/common [netbsd-10]: Makefile.ramdisk
 	src/etc/etc.amd64 [netbsd-10]: Makefile.inc
 	src/etc/etc.i386 [netbsd-10]: Makefile.inc

 Log Message:
 Pull up following revision(s) (requested by riastradh in ticket #642):

 	etc/etc.amd64/Makefile.inc: revision 1.17
 	distrib/amd64/ramdisks/common/Makefile.ramdisk: revision 1.17
 	etc/etc.i386/Makefile.inc: revision 1.70
 	distrib/i386/ramdisks/common/Makefile.ramdisk: revision 1.16

 x86: Release the ramdisks too.

 This way we will get cgdroot.fs (and zfsroot.fs too) in the release.
 PR misc/57534


 To generate a diff of this commit:
 cvs rdiff -u -r1.16 -r1.16.2.1 \
     src/distrib/amd64/ramdisks/common/Makefile.ramdisk
 cvs rdiff -u -r1.14 -r1.14.8.1 \
     src/distrib/i386/ramdisks/common/Makefile.ramdisk
 cvs rdiff -u -r1.16 -r1.16.10.1 src/etc/etc.amd64/Makefile.inc
 cvs rdiff -u -r1.69 -r1.69.10.1 src/etc/etc.i386/Makefile.inc

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/57534 CVS commit: [netbsd-9] src
Date: Mon, 25 Mar 2024 15:19:45 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Mon Mar 25 15:19:44 UTC 2024

 Modified Files:
 	src/distrib/amd64/ramdisks/common [netbsd-9]: Makefile.ramdisk
 	src/distrib/i386/ramdisks/common [netbsd-9]: Makefile.ramdisk
 	src/etc/etc.amd64 [netbsd-9]: Makefile.inc
 	src/etc/etc.i386 [netbsd-9]: Makefile.inc

 Log Message:
 Pull up following revision(s) (requested by riastradh in ticket #1820):

 	etc/etc.amd64/Makefile.inc: revision 1.17
 	distrib/amd64/ramdisks/common/Makefile.ramdisk: revision 1.17
 	etc/etc.i386/Makefile.inc: revision 1.70
 	distrib/i386/ramdisks/common/Makefile.ramdisk: revision 1.16

 x86: Release the ramdisks too.

 This way we will get cgdroot.fs (and zfsroot.fs too) in the release.
 PR misc/57534


 To generate a diff of this commit:
 cvs rdiff -u -r1.14.2.1 -r1.14.2.2 \
     src/distrib/amd64/ramdisks/common/Makefile.ramdisk
 cvs rdiff -u -r1.13.4.1 -r1.13.4.2 \
     src/distrib/i386/ramdisks/common/Makefile.ramdisk
 cvs rdiff -u -r1.16 -r1.16.2.1 src/etc/etc.amd64/Makefile.inc
 cvs rdiff -u -r1.69 -r1.69.2.1 src/etc/etc.i386/Makefile.inc

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/57534 CVS commit: [netbsd-8] src
Date: Mon, 25 Mar 2024 15:21:05 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Mon Mar 25 15:21:05 UTC 2024

 Modified Files:
 	src/distrib/amd64/ramdisks/common [netbsd-8]: Makefile.ramdisk
 	src/distrib/i386/ramdisks/common [netbsd-8]: Makefile.ramdisk
 	src/etc/etc.amd64 [netbsd-8]: Makefile.inc
 	src/etc/etc.i386 [netbsd-8]: Makefile.inc

 Log Message:
 Pull up following revision(s) (requested by riastradh in ticket #1949):

 	etc/etc.amd64/Makefile.inc: revision 1.17
 	distrib/amd64/ramdisks/common/Makefile.ramdisk: revision 1.17
 	etc/etc.i386/Makefile.inc: revision 1.70
 	distrib/i386/ramdisks/common/Makefile.ramdisk: revision 1.16

 x86: Release the ramdisks too.

 This way we will get cgdroot.fs (and zfsroot.fs too) in the release.
 PR misc/57534


 To generate a diff of this commit:
 cvs rdiff -u -r1.11 -r1.11.8.1 \
     src/distrib/amd64/ramdisks/common/Makefile.ramdisk
 cvs rdiff -u -r1.12 -r1.12.8.1 \
     src/distrib/i386/ramdisks/common/Makefile.ramdisk
 cvs rdiff -u -r1.15 -r1.15.8.1 src/etc/etc.amd64/Makefile.inc
 cvs rdiff -u -r1.68 -r1.68.8.1 src/etc/etc.i386/Makefile.inc

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: pending-pullups->analyzed
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Mon, 25 Mar 2024 17:58:13 +0000
State-Changed-Why:
ramdisks published in release now, will be in 10 (and 9.4)
TBD: update wiki pages


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.