From owner-cvs-all Mon May 20 18:46:20 2002 Delivered-To: cvs-all@freebsd.org Received: from evilpete.dyndns.org (12-232-26-46.client.attbi.com [12.232.26.46]) by hub.freebsd.org (Postfix) with ESMTP id D00FB37B40F; Mon, 20 May 2002 18:46:12 -0700 (PDT) Received: from overcee.wemm.org ([10.0.0.3]) by evilpete.dyndns.org (8.11.6/8.11.6) with ESMTP id g4L1k4126907; Mon, 20 May 2002 18:46:12 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.wemm.org (Postfix) with ESMTP id 7394D3A03; Mon, 20 May 2002 18:46:04 -0700 (PDT) (envelope-from peter@wemm.org) To: Seigo Tanimura 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 ... In-Reply-To: <200205200541.g4K5f9D04751@freefall.freebsd.org> Date: Mon, 20 May 2002 18:46:04 -0700 From: Peter Wemm Message-Id: <20020521014604.7394D3A03@overcee.wemm.org> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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