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]
Date:	Mon, 01 Aug 2011 22:44:01 -0700 (PDT)
From:	David Miller <davem@...emloft.net>
To:	shemminger@...tta.com
Cc:	eric.dumazet@...il.com, paulmck@...ux.vnet.ibm.com,
	mchan@...adcom.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] rcu: convert uses of rcu_assign_pointer(x, NULL) to
 RCU_INIT_POINTER

From: Stephen Hemminger <shemminger@...tta.com>
Date: Mon, 1 Aug 2011 09:19:00 -0700

> When assigning a NULL value to an RCU protected pointer, no barrier
> is needed. The rcu_assign_pointer, used to handle that but will soon
> change to not handle the special case.
> 
> Convert all rcu_assign_pointer of NULL value.
> 
> //smpl
> @@ expression P; @@
> 
> - rcu_assign_pointer(P, NULL)
> + RCU_INIT_POINTER(P, NULL)
> 
> // </smpl>
> 
> 
> Signed-off-by: Stephen Hemminger <shemminger@...tta.com>

Acked-by: David S. Miller <davem@...emloft.net>
--
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