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] [thread-next>] [day] [month] [year] [list]
Message-ID: <1312188453.2719.1.camel@edumazet-laptop>
Date:	Mon, 01 Aug 2011 10:47:33 +0200
From:	Eric Dumazet <eric.dumazet@...il.com>
To:	paulmck@...ux.vnet.ibm.com
Cc:	David Miller <davem@...emloft.net>, shemminger@...tta.com,
	mchan@...adcom.com, linux-kernel@...r.kernel.org
Subject: Re: RCU: how to suppress warnings from rcu_assign_pointer?

Le dimanche 31 juillet 2011 à 22:23 -0700, Paul E. McKenney a écrit :
> 							Thanx, Paul
> 
> ------------------------------------------------------------------------
> 
> rcu: Make rcu_assign_pointer() unconditionally insert a memory barrier
> 
> Recent changes to gcc give warning messages on rcu_assign_pointers()'s
> checks that allow it to determine when it is OK to omit the memory
> barrier.  Stephen Hemminger tried a number of gcc tricks to silence
> this warning, but #pragmas and CPP macros do not work together in the
> way that would be required to make this work.
> 
> However, we now have RCU_INIT_POINTER(), which already omits this
> memory barrier, and which therefore may be used when assigning NULL to
> an RCU-protected pointer that is accessible to readers.  This commit
> therefore makes rcu_assign_pointer() unconditionally emit the memory
> barrier.
> 
> Reported-by: Stephen Hemminger <shemminger@...tta.com>
> Signed-off-by: Eric Dumazet <eric.dumazet@...il.com>
> Acked-by: David S. Miller <davem@...emloft.net>
> Signed-off-by: Paul E. McKenney <paulmck@...ux.vnet.ibm.com>
>  

Sure Paul, thanks for doing this. I have _very_ limited access to
Internet this week.

Eric


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ