[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/43294: locking against myself in ioctl setting up a gre interface
The following reply was made to PR kern/43294; it has been noted by GNATS.
From: Andrew Doran <ad%NetBSD.org@localhost>
Cc: kern-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
Subject: Re: kern/43294: locking against myself in ioctl setting up a gre
Date: Wed, 12 May 2010 10:04:49 +0000
> this locking panic you ran into
> someone hammered a locking fix into the socket code without getting it
+reviewed. if i had time i would back it out, contact the comitter and post it
> softnet_lock was deliberately NOT taken for interface ioctl operations.
<martin> andrew: it is now kern/43294, please comment there
<martin> why wasn't it taken?
> because interface ioctls do stuff like allocate memory with M_WAITOK and so
> it needs more complex serialization
<martin> can of worms, I see
> the fallback position currently is kernel_lock+splnet.
> but there are still race conditions with that.
Main Index |
Thread Index |