Bug 280714 - Kernel panic when unloading hms with hms disabled in device.hints
Summary: Kernel panic when unloading hms with hms disabled in device.hints
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 13.3-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: crash
Depends on:
Blocks:
 
Reported: 2024-08-09 16:55 UTC by megamansec
Modified: 2024-11-25 02:55 UTC (History)
1 user (show)

See Also:


Attachments
crash core.txt (92.51 KB, text/plain)
2024-08-09 16:55 UTC, megamansec
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description megamansec 2024-08-09 16:55:20 UTC
Created attachment 252631 [details]
crash core.txt

This is a bit of a non-major-issue, but I thought Iwould report it:

I noticed that if the hms driver is disabled in device.hints:
hint.hms.0.disabled="1"
the hms module is loaded anyways. When then unloading the module in the cmdline, the kernel crashes:
#0 0xffffffff80c529d5 at kdb_backtrace+0x65
#1 0xffffffff80c063f2 at vpanic+0x152
#2 0xffffffff80c06293 at panic+0x43
#3 0xffffffff810c606d at trap_fatal+0x38d
#4 0xffffffff810c60bf at trap_pfault+0x4f
#5 0xffffffff8109ceb8 at calltrap+0x8
#6 0xffffffff80c16e41 at sysctl_root_handler_locked+0x91
#7 0xffffffff80c16264 at sysctl_root+0x244
#8 0xffffffff80c168f6 at userland_sysctl+0x176
#9 0xffffffff80c16740 at sys___sysctl+0x60
#10 0xffffffff810c6940 at amd64_syscall+0x110
#11 0xffffffff8109d7cb at fast_syscall_common+0xf


I have attached a core.txt.