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
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20110203.155313.115940720.davem@davemloft.net>
Date:	Thu, 03 Feb 2011 15:53:13 -0800 (PST)
From:	David Miller <davem@...emloft.net>
To:	fleitner@...hat.com
Cc:	netdev@...r.kernel.org
Subject: Re: [PATCH] niu: fix SMP race protecting rx_rings and tx_rings

From: Flavio Leitner <fleitner@...hat.com>
Date: Thu, 3 Feb 2011 21:47:48 -0200

> On Thu, Feb 03, 2011 at 03:22:14PM -0800, David Miller wrote:
>> One thing I'm worried about with your patch is that the statistics
>> method can be called in basically any context, therefore a sleeping
>> lock like the rw_semaphore is probably not usable.
>> 
>> In fact I'm going to revert your patch for now because of this issue.
> 
> Oops, I didn't see it there.  I thought all calls there were process
> context.  Anyway, RCU then...

Yes, one example is the dev_get_stats() call made in
drivers/net/bonding/bond_main.c, which occurs with a
rw spinlock held and BH disabled.

> thanks for reviewing it,

No problem.  I think I even have a way to fix this without using RCU
(directly).  Just some memory barriers during allocation of the
channels.

I'll post the patch after I'm done with it, thanks again Falvio.
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ