Received: from msg-4.mailo.com (msg-4.mailo.com [213.182.54.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DC59F20F9 for ; Thu, 13 Oct 2022 16:38:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailo.com; s=mailo; t=1665679133; bh=9UCIYOh79Gn8wchYyKR1Qia20qjmcJaZ0No3iy1TCZE=; h=X-EA-Auth:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:In-Reply-To; b=VJsv+RZKlsLdY/r3KxFO7Gx9FfzHIuZCGYRTWLbD1Ykfyy4jsKnNAhLX+jDQOFkbi d4l2AQlUvrlYvWiT9x2mcG6ULhESMMJl1O5W0W0jMP0HAvnlI28Sqb5jmmMGKtWTLj YZtUdJTGWE7sv1t4tE1oyFr876fkoHOyjmigDbUA= Received: by b-1.in.mailobj.net [192.168.90.11] with ESMTP via [213.182.55.206] Thu, 13 Oct 2022 18:38:52 +0200 (CEST) X-EA-Auth: LD7iZu+jzOnWxR7xWx1eO3+dseMYqUEygOyBLiguy6b8utoO3ZL2t4snh0Tavr0vEe0AoOohkacKKeoGuJ954x/uSsOqych1 Date: Thu, 13 Oct 2022 22:08:49 +0530 From: Deepak R Varma To: "Fabio M. De Francesco" Cc: Julia Lawall , outreachy@lists.linux.dev Subject: Re: trouble booting into staging kernel Message-ID: References: <2118793.irdbgypaU6@mypc> Precedence: bulk X-Mailing-List: outreachy@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2118793.irdbgypaU6@mypc> On Thu, Oct 13, 2022 at 04:59:38PM +0200, Fabio M. De Francesco wrote: > On Wednesday, October 12, 2022 10:22:06 PM CEST Deepak R Varma wrote: > > On Mon, Oct 10, 2022 at 01:25:56AM +0530, Deepak R Varma wrote: > > > On Sun, Oct 09, 2022 at 09:12:37PM +0200, Julia Lawall wrote: > > [snip] > , > > I realized that working with the certificates is very complex. > > I entirely agree with you :-) > > > > Create your own secure boot signing certificate without such an EKU, enroll > it into either mok or db, and use it for signing. > > Time ago the following documents from openSUSE finally helped me to understand > how secure boot works and how to create and add my keys to boot custom kernels > and modules: > > https://en.opensuse.org/openSUSE:UEFI > https://doc.opensuse.org/documentation/leap/reference/html/book-reference/cha-uefi.html Hello Fabio, Thank you for the guidance and sharing the openSUSE doc links. I will read the information available here. However, your following suggestion of taking the VM route sounds better considering the internship timelines. I will do this first and then revisit the openSUSE docs alongside/later. Thanks much, ./drv > > After some time I realized that I don't need secure boot enabled when I boot > my kernels and modules on several QEMU/KVM VMs (the guests) for testing > patches. It's easier, faster, and I avoid the risk to hang or bring down the > host, or worst, to corrupt the filesystems in the partitions of the "real" > machine (the host) (these days my tasks are related to converting call sites > which still uses old memory management API across the whole kernel, especially > in file systems code). > > This way I still have an host always booting with secure boot, and several > VMs for testing patches for various archs (32 and 64 bits virtual machines). > > I'd suggest to not disable secure boot in your host, since it's really useful > for whoever cares security. Instead you should run custom kernels in VMs and > just disable secure boot in guests. > > Regards, > > Fabio > > > > >