cvs commit: src/sys/sys msgbuf.h src/sys/kern subr_prf.c

From: Ian Dowse <iedowse_at_FreeBSD.org>
Date: Thu, 27 Mar 2003 18:50:10 -0800 (PST)
iedowse     2003/03/27 18:50:10 PST

  FreeBSD src repository

  Modified files:
    sys/sys              msgbuf.h 
    sys/kern             subr_prf.c 
  Log:
  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
  
  Revision  Changes    Path
  1.99      +24 -4     src/sys/kern/subr_prf.c
  1.20      +1 -0      src/sys/sys/msgbuf.h
Received on Thu Mar 27 2003 - 18:50:11 UTC