Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Dec 2002 18:22:53 -0800
From:      Kris Kennaway <kris@obsecurity.org>
To:        Lars Eggert <larse@ISI.EDU>
Cc:        current@FreeBSD.ORG
Subject:   Re: LOR: filedesc structure -> pipe mutex
Message-ID:  <20021207022253.GA69717@rot13.obsecurity.org>
In-Reply-To: <3DF12681.8020008@isi.edu>
References:  <3DF12681.8020008@isi.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Dec 06, 2002 at 02:36:49PM -0800, Lars Eggert wrote:
> On today's -current:
> 
> lock order reversal
>  1st 0xc6948234 filedesc structure (filedesc structure) @ 
> /usr/src/sys/kern/sys_generic.c:901
>  2nd 0xc691f380 pipe mutex (pipe mutex) @ /usr/src/sys/kern/sys_pipe.c:1239
> 
> Debugger("witness_lock")
> Stopped at      Debugger+0x5a:  xchgl   %ebx,in_Debugger.0
> 
> db> trace
> 
> Debugger(c0320e4d,c691f380,c0341c32,c0341c32,c0342671) at Debugger+0x5a
> witness_lock(c691f380,8,c0342671,4d7,c01f3b4a) at witness_lock+0x142
> _mtx_lock_flags(c691f380,0,c0342671,4d7,c65c76cc) at _mtx_lock_flags+0x63
> pipe_poll(c65c76cc,40,c21af180,c65d3460,c21af180) at pipe_poll+0x3d
> selscan(c65d3460,eb36ab90,eb36ab80,14,4) at selscan+0xdf
> kern_select(c65d3460,14,804c940,0,0) at kern_select+0x41f
> select(c65d3460,eb36ad10,c035adb4,407,c65d27c8) at select+0x42
> syscall(2f,2f,2f,804c9c0,804c8a0) at syscall+0x3c6
> Xint0x80_syscall() at Xint0x80_syscall+0x1d
> --- syscall (93, FreeBSD ELF32, select), eip = 0x280b3853, esp = 
> 0xbfbff90c, ebp = 0xbfbffd60 ---

I'm getting this too:

Local package initialization:lock order reversal
 1st 0xc449ad34 filedesc structure (filedesc structure) @ /local0/src-client/sys/kern/sys_generic.c:901
 2nd 0xc4146780 pipe mutex (pipe mutex) @ /local0/src-client/sys/kern/sys_pipe.c:1239
Debugger("witness_lock")
Stopped at      Debugger+0x54:  xchgl   %ebx,in_Debugger.0
db> trace
Debugger(c03efc85,c4146780,c04192dc,c04192dc,c0419d33) at Debugger+0x54
witness_lock(c4146780,8,c0419d33,4d7,c0291b89) at witness_lock+0x667
_mtx_lock_flags(c4146780,0,c0419d33,4d7,c418b4ec) at _mtx_lock_flags+0xb1
pipe_poll(c418b4ec,40,c420ad00,c3f5cb60,c420ad00) at pipe_poll+0x40
selscan(c3f5cb60,d7a29b98,d7a29b88,7,4) at selscan+0x12e
kern_select(c3f5cb60,7,8076190,0,0) at kern_select+0x36f
select(c3f5cb60,d7a29d10,c043094c,407,5) at select+0x66
syscall(2f,2f,2f,8076190,1e) at syscall+0x28e
Xint0x80_syscall() at Xint0x80_syscall+0x1d
--- syscall (93, FreeBSD ELF32, select), eip = 0x2829a433, esp = 0xbfbff4dc, ebp = 0xbfbffda0 ---
db>

Kris

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




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