diff options
author | iedowse <iedowse@FreeBSD.org> | 2003-03-28 02:50:10 +0000 |
---|---|---|
committer | iedowse <iedowse@FreeBSD.org> | 2003-03-28 02:50:10 +0000 |
commit | b399d5ecbd4716ab7d85123d538e0eac2cfecdec (patch) | |
tree | 30c3acce3e8fb42b966dd12505c6284f5d7c6b04 /lib/libc/stdlib/hcreate.c | |
parent | 41a48ccd9eddb0fca56b439efaa5db84a4dcfb37 (diff) | |
download | FreeBSD-src-b399d5ecbd4716ab7d85123d538e0eac2cfecdec.zip FreeBSD-src-b399d5ecbd4716ab7d85123d538e0eac2cfecdec.tar.gz |
Add a checksum to the kernel message buffer, and update it every
time a character is written. Use this at boot time to reject the
existing buffer contents if they are corrupt. This fixes a problem
seen on some hardware (especially laptops) where the message buffer
gets partially corrupted during a short power cycle or reset, but
the msgbuf structure is left intact so it gets reused, resulting
in random junk and control characters appearing in dmesg and
/var/log/messages.
PR: kern/28497
Diffstat (limited to 'lib/libc/stdlib/hcreate.c')
0 files changed, 0 insertions, 0 deletions