Bug 270752 - Set date (RTC?) will cause kernel panic on HP Stream Mini Desktop
Summary: Set date (RTC?) will cause kernel panic on HP Stream Mini Desktop
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 13.1-RELEASE
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: crash, needs-qa
Depends on:
Blocks:
 
Reported: 2023-04-11 02:35 UTC by steely.wing
Modified: 2023-04-13 02:28 UTC (History)
2 users (show)

See Also:


Attachments
core dump (48.00 KB, text/plain)
2023-04-11 02:35 UTC, steely.wing
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description steely.wing 2023-04-11 02:35:28 UTC
Created attachment 241410 [details]
core dump

I install OPNsense 22.7/23.1 to HP stream mini desktop (https://support.hp.com/us-en/document/c04545960), if I set the date with command `date xxxxxx`, it will cause kernel panic.

Relate OPNsense bug report:
https://github.com/opnsense/core/issues/6482
Comment 1 steely.wing 2023-04-11 02:38:19 UTC
I have 2 of this HP stream mini desktop

- they both have the issue
- no crash when set date in Windows
Comment 2 steely.wing 2023-04-11 02:52:36 UTC
Video of running `date xxxxxx`

https://www.youtube.com/watch?v=Xg2pir05ppM
Comment 3 Yuri 2023-04-11 12:23:17 UTC
It looks like setting date is triggering NMI, try setting machdep.panic_on_nmi to 1 (H/W error) or 0 (no action).
Comment 4 steely.wing 2023-04-11 12:45:10 UTC
(In reply to Yuri from comment #3)


sysctl machdep.panic_on_nmi=1
machdep.panic_on_nmi: 255 -> 1
still panic on set date


sysctl machdep.panic_on_nmi=0
machdep.panic_on_nmi: 255 -> 0
no panic / reboot on set date
Comment 5 steely.wing 2023-04-13 02:28:00 UTC
When

sysctl machdep.panic_on_nmi=0
machdep.panic_on_nmi: 255 -> 0

set date will not kernel panic, but console repeat display

NMI ISA 2c, EISA ff
NMI ISA 3c, EISA ff
NMI ISA 2c, EISA ff
NMI ISA 3c, EISA ff
...

until reboot