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-next>] [day] [month] [year] [list]
Date:	Sat, 03 Mar 2007 20:09:47 -0600
From:	Robert Hancock <hancockr@...w.ca>
To:	"remi.chateauneu@...il.com" <remi.chateauneu@...il.com>,
	linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: asm/atomic.h and user code

remi.chateauneu@...il.com wrote:
> Is it me or it seems it is not possible anymore to use asm/atomic.h in
> non-kernel code ? Thanks.

The atomic functions, as with any internal kernel data structures, were 
never intended to be used in userspace. In particular, the atomic 
functions depend on config settings like CONFIG_SMP in order to actually 
be atomic, and that's not guaranteed in userspace.

-- 
Robert Hancock      Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@...pamshaw.ca
Home Page: http://www.roberthancock.com/

-
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