From owner-cvs-all@FreeBSD.ORG Thu Mar 27 18:50:11 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8E6D337B401; Thu, 27 Mar 2003 18:50:11 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4090343FBF; Thu, 27 Mar 2003 18:50:11 -0800 (PST) (envelope-from iedowse@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h2S2oB0U038047; Thu, 27 Mar 2003 18:50:11 -0800 (PST) (envelope-from iedowse@repoman.freebsd.org) Received: (from iedowse@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h2S2oAim038046; Thu, 27 Mar 2003 18:50:10 -0800 (PST) Message-Id: <200303280250.h2S2oAim038046@repoman.freebsd.org> From: Ian Dowse Date: Thu, 27 Mar 2003 18:50:10 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD X-Spam-Status: No, hits=0.0 required=5.0 tests=none version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Subject: cvs commit: src/sys/sys msgbuf.h src/sys/kern subr_prf.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Mar 2003 02:50:14 -0000 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