Bug 273907 - releng/14.0 on kldload doesn't detect version properly and crashes
Summary: releng/14.0 on kldload doesn't detect version properly and crashes
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 14.0-STABLE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: crash, needs-qa
Depends on:
Blocks:
 
Reported: 2023-09-17 18:16 UTC by ota
Modified: 2023-11-03 13:19 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ota 2023-09-17 18:16:05 UTC
I've been following stable/14 and then releng/14.0.

Kernel from releng/14.0 a couple of days ago started failing to boot.
The kernel reboots after loading modules /boot/loader.conf.
The scrolling too fast and I cannot see what is failing.

I pulled latest code last night and built kernel fully clean.
But latest kernel also fails.

The last revision kernel failed was:

2a95efe756c65d459cacad89acdf7f90fe080cf6

I will try to find what commit triggered the error.
Comment 1 Graham Perrin 2023-09-18 18:41:20 UTC
(In reply to ota from comment #0)

> … kernel reboots after loading modules /boot/loader.conf. …

Can you share the file content?
Comment 2 ota 2023-09-20 03:17:09 UTC
I switched back to the branching point of releng/14.0, BETA2, and few other points.

Somehow, all of versions failed to start.

I only rebuilt the kernel cleanly; I wonder if I had to clean build the world, userland as well...

The below is my loader.conf.
I don't think I have updated pkg yet.
I wonder if vbox module is the cause.
I will try without vbox module, next.
============
kern.vty="vt"

vfs.zfs.prefetch_disable=0
hw.snd.default_unit="1"

geom_eli_load="YES"
geom_uzip_load="YES"
geom_concat_load="YES"

ums_load="YES"

vboxdrv_load="YES"
============
Comment 3 ota 2023-09-22 00:46:59 UTC
After commenting out vboxdrv_load, kernel started boot more but still crashed.

After deleting all files under /boot/modules, kernel finally started boot okay.

I thought kernel modules had version checks.
Comment 4 Zhenlei Huang freebsd_committer freebsd_triage 2023-11-03 13:19:54 UTC
See also WIP enhancement https://reviews.freebsd.org/D39695 .