Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/dev/acpi



Module Name:    src
Committed By:   yamt
Date:           Fri Feb 20 07:58:41 UTC 2026

Modified Files:
        src/sys/dev/acpi: apei_hest.c

Log Message:
apei_hest: fix a zero-sized kmem_zalloc issue

zero-sized kmem_zalloc is illigal.

this fixes a crash seen on HP Z4 G4.

when installing netbsd 10.1 on the machine, i had to
work this around by "userconf disable apei" and
```
userconf=disable apei*
```
in boot.cfg.

"acpidump -dt" on the machine said:
```
Error Source Count=0
```
under the "HEST:" section.

dmesg with this fix:
```
[     1.054235] apei0 at acpi0: ACPI Platform Error Interface
[     1.054235] apei0: BERT: OemId <HPQOEM,SLIC-WKS,00000001> AslId <INTL,00000001>
[     1.054235] apei0: BERT: 0x8000 bytes at 0x6bce6018
[     1.054235] apei0: BERT: no boot errors recorded
[     1.054235] apei0: EINJ: OemId <HPQOEM,SLIC-WKS,00000001> AslId <INTL,00000001>
[     1.054235] apei0: EINJ: can inject: 0
[     1.054235] apei0: ERST: OemId <HPQOEM,SLIC-WKS,00000001> AslId <INTL,00000001>
[     1.054235] apei0: ERST: 0 records in error log 8096 bytes @ 0x6bce4078 attr=0
[     1.054235] apei0: HEST: OemId <HPQOEM,SLIC-WKS,00000001> AslId <INTL,00000001>
[     1.054235] apei0: HEST: 0 hardware error sources
```


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/dev/acpi/apei_hest.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index