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:	Wed, 21 Mar 2012 14:17:14 +0000
From:	Arnd Bergmann <arnd@...db.de>
To:	Lubos Lunak <l.lunak@...e.cz>
Cc:	Linus Torvalds <torvalds@...ux-foundation.org>,
	Andrew Morton <akpm@...ux-foundation.org>,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] do not export kernel's NULL #define to userspace

On Wednesday 21 March 2012, Lubos Lunak wrote:
> > If so, we might have to replace it with a __KERNEL_NULL constant
> > or something, like we do for the stuff in linux/types.h, so we
> > don't accidentally break user applications that rely on the
> > header files to be self-contained.
> >
> > I think there is at least a NULL usage in linux/wireless.h and some
> > netfilter headers.
> 
>  I see. How about the attached patch then?

Strictly speaking, you should not include standard headers from kernel
provided headers, and the problems would be similar to those before
your patch: anyone who currently doesn't include <stddef.h> but has
their own definition of NULL will still get a conflict from including
a kernel header that includes <linux/stddef.h>.

	Arnd
--
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