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

Ian Dowse iedowse at FreeBSD.org
Thu Mar 27 18:50:14 PST 2003


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


More information about the cvs-src mailing list