NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/38535: locking bug in ifmedia_ioctl



The following reply was made to PR kern/38535; it has been noted by GNATS.

From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%NetBSD.org@localhost, ad%NetBSD.org@localhost
Cc: 
Subject: Re: kern/38535: locking bug in ifmedia_ioctl
Date: Mon, 12 May 2008 18:36:09 +0200

 > That seems broken, presumably "nwords" can change if malloc() sleeps.
 
 I wonder if we should have a per ifnet mutex that would be used by hardware
 drivers to protect that interfaces hardware access, and also lock out
 concurrent ioctls on the interface (and similar things).
 
 But then there are probably multi-interface hardware instances where the
 hardware lock needs to be of wider scope (but I don't know of any).
 
 Martin
 


Home | Main Index | Thread Index | Old Index