Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 May 2002 18:46:04 -0700
From:      Peter Wemm <peter@wemm.org>
To:        Seigo Tanimura <tanimura@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/compat/svr4 svr4_filio.c svr4_ioctl.c src/sys/fs/fifofs fifo_vnops.c src/sys/fs/portalfs portal_vnops.c src/sys/kern kern_descrip.c sys_socket.c uipc_domain.c uipc_socket.c uipc_socket2.c uipc_syscalls.c uipc_usrreq.c ... 
Message-ID:  <20020521014604.7394D3A03@overcee.wemm.org>
In-Reply-To: <200205200541.g4K5f9D04751@freefall.freebsd.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
Seigo Tanimura wrote:
> tanimura    2002/05/19 22:41:09 PDT
> 
>   Modified files:
[..]
>     sys/fs/fifofs        fifo_vnops.c 
[..]
>   Log:
>   Lock down a socket, milestone 1.
>   
>   o Add a mutex (sb_mtx) to struct sockbuf. This protects the data in a
>     socket buffer. The mutex in the receive buffer also protects the data
>     in struct socket.

There is a problem here:

panic: mutex sockbuf rcv not owned at ../../../fs/fifofs/fifo_vnops.c:229

(kgdb) where
[..]
#13 0xbc255f48 in _mtx_assert ()
#14 0xbc224735 in fifo_open ()
#15 0xbc224460 in fifo_vnoperate ()
#16 0xbc301e6a in ufs_vnoperatefifo ()
#17 0xbc2aeb84 in vn_open_cred ()
#18 0xbc2ae7fd in vn_open ()
#19 0xbc2a8f35 in open ()
#20 0xbc352862 in syscall ()

This is easily triggered by starting postfix.  It looks like it is just
open(2)'ing a fifo.

Sorry I do not have more details, my gdb hates my gcc-3.1 kernel dumps.

Cheers,
-Peter

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020521014604.7394D3A03>