| lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
|
Open Source and information security mailing list archives
| ||
|
Message-ID: <1310684791.8783.261.camel@localhost> Date: Fri, 15 Jul 2011 00:06:31 +0100 From: Ben Hutchings <bhutchings@...arflare.com> To: Flavio Leitner <fbl@...hat.com> Cc: netdev <netdev@...r.kernel.org> Subject: Re: preempting while holding rtnl_lock On Thu, 2011-07-14 at 18:15 -0300, Flavio Leitner wrote: > Hi, > > I was reviewing driver sources and found that > ethtool ops holds rtnl_lock() and there are few > drivers (for example: tg3, bnx2) that use napi_disable() > in this context. [...] > The msleep() above will preempt. I believe this is wrong. [...] > What am I missing? The RTNL lock is a mutex so it's OK to sleep (but preferably not very long) while holding it. Ben. -- Ben Hutchings, Senior Software Engineer, Solarflare Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists