NetBSD Problem Report #60455

From www@netbsd.org  Fri Jul 17 15:48:08 2026
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)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.netbsd.org", Issuer "YR2" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 4FA2E1A923B
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 17 Jul 2026 15:48:08 +0000 (UTC)
Message-Id: <20260717154806.DE5D71A923C@mollari.NetBSD.org>
Date: Fri, 17 Jul 2026 15:48:06 +0000 (UTC)
From: thorpej@me.com
Reply-To: thorpej@me.com
To: gnats-bugs@NetBSD.org
Subject: Module auto-load appears to be totally useless
X-Send-Pr-Version: www-1.0
X-From4GNATS: "thorpej@me.com via gnats" <gnats-admin@NetBSD.org>

>Number:         60455
>Category:       kern
>Synopsis:       Module auto-load appears to be totally useless
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 17 15:50:00 +0000 2026
>Originator:     Jason Thorpe
>Release:        11.99.7
>Organization:
Retrogrouches R Us
>Environment:
NetBSD icarus 11.99.7 NetBSD 11.99.7 (PHAETHON1) #136: Fri Jul 17 07:47:48 PDT 2026  thorpej@dhcp-105.ktnet:/Users/thorpej/NetBSD/current/src/sys/arch/hb68k/compile/PHAETHON1 hb68k
>Description:
While working on a new NetBSD port, I am striving to make the standard kernel as small as is reasonably feasible given that it is a resource-constrained machine (68010 CPU, 8MB base RAM).

I decided to fully embrace the MODULAR idea, trimming the kernel config down to the bare minimum of pseudo-devices and only the FFS file system.

I was successfully able to load the "if_sl" module at boot (the system does not yet have a working Ethernet interface).

But auto-loading the "ptyfs" module then file systems were being mounted totally blew up in my face, for two reasons:

- auto-loading is apparent configured off-by-default.  No matter, that can be changed easily enough, even at run-time.

- securelevel appears to be blocking auto-load.  This is the real problem, rending auto-loading totally useless.

>How-To-Repeat:
Attempt to auto-load an FS module during boot without the INSECURE option.
>Fix:
There is a kauth listener that grants auto-load, but secmodel_securelevel seems to be overriding it?  Maybe it shouldn't do that.  At the very least, the modules documentation should mention that auto-load is totally useless unless running INSECURE.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.