NetBSD Problem Report #56674

From www@netbsd.org  Thu Jan 27 07:07:59 2022
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 6213A1A9239
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 27 Jan 2022 07:07:59 +0000 (UTC)
Message-Id: <20220127070758.175761A923D@mollari.NetBSD.org>
Date: Thu, 27 Jan 2022 07:07:58 +0000 (UTC)
From: mineralarsenic@gmail.com
Reply-To: mineralarsenic@gmail.com
To: gnats-bugs@NetBSD.org
Subject: EFI bootloader ( bootx64.efi ) loads "msdos" module on its own without any "load" command in boot.cfg
X-Send-Pr-Version: www-1.0

>Number:         56674
>Category:       port-amd64
>Synopsis:       EFI bootloader ( bootx64.efi ) loads "msdos" module on its own without any "load" command in boot.cfg
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-amd64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 27 07:10:00 +0000 2022
>Last-Modified:  Thu Jan 27 17:35:01 +0000 2022
>Originator:     Angle Devoid
>Release:        NetBSD 9.2
>Organization:
none
>Environment:
NetBSD asus 9.2 NetBSD 9.2 (GENERIC) #0: Wed May 12 13:15:55 UTC 2021  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64

>Description:
The EFI bootloader ( bootx64.efi ) loads the "msdos" module on its own, and since the "msdos" module already is built into the kernel, the kernel prints the warning: 

[     1.000000] WARNING: module error: module `msdos' pushed by boot loader already exists


I have thoroughly checked my boot.cfg and did not find any "load" command to load any modules, the EFI bootloader loads the module on its own.
>How-To-Repeat:
The problem exists only if "modules off" is not of one the commands
>Fix:
Set one of the commands to be executed to be "modules off"

>Audit-Trail:
From: "Jonathan A. Kollasch" <jakllsch@kollasch.net>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-amd64/56674: EFI bootloader ( bootx64.efi ) loads "msdos"
 module on its own without any "load" command in boot.cfg
Date: Thu, 27 Jan 2022 08:31:00 -0600

 This is nominally-intended behavior.  The bootloader has no way of knowing if the
 kernel it's loading has the necessary modules for the ESP and root file system,
 so it provides the relevant modules to the kernel out of an abundance of good
 intention.

From: mlelstv@serpens.de (Michael van Elst)
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-amd64/56674: EFI bootloader ( bootx64.efi ) loads "msdos" module on its own without any "load" command in boot.cfg
Date: Thu, 27 Jan 2022 17:31:29 -0000 (UTC)

 jakllsch@kollasch.net ("Jonathan A. Kollasch") writes:

 > This is nominally-intended behavior.  The bootloader has no way of knowing if the
 > kernel it's loading has the necessary modules for the ESP and root file system,
 > so it provides the relevant modules to the kernel out of an abundance of good
 > intention.

 Yes, but.

 The bootloader tries multiple filesystems and records the filesystem type
 to identify which module to load. ffs is an exception, as no filesystem type
 is recorded, assuming that every kernel has ffs builtin.

 If the bootloader tries multiple filesystems, but ends the search with
 ffs, it will have recorded the last non-ffs filesystem and load a module
 for that. It should clear the recorded filesystem type in this case and
 not load a module.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.