Date: Tue, 31 May 2011 22:39:32 +0000 (UTC) From: "Kenneth D. Merry" <ken@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/kern subr_msgbuf.c Message-ID: <201105312239.p4VMddp3076222@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
ken 2011-05-31 22:39:32 UTC FreeBSD src repository Modified files: sys/kern subr_msgbuf.c Log: SVN rev 222550 on 2011-05-31 22:39:32Z by ken Fix a bug introduced in revision 222537. In msgbuf_reinit() and msgbuf_init(), we weren't initializing the mutex. Depending on the contents of memory, the LO_INITIALIZED flag might be set on the mutex (either due to a warm reboot, and the message buffer remaining in place, or due to garbage in memory) and in that case, with INVARIANTS turned on, we would trigger an assertion that the mutex had already been initialized. Fix this by bzeroing the message buffer mutex for the _init() and _reinit() paths. Reported by: mdf Revision Changes Path 1.5 +2 -0 src/sys/kern/subr_msgbuf.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105312239.p4VMddp3076222>