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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Wed,  2 Jan 2008 11:42:34 -0800 (PST)
From:	Roland McGrath <roland@...hat.com>
To:	Ingo Molnar <mingo@...e.hu>
Cc:	Mike Frysinger <vapier@...too.org>,
	Andrew Morton <akpm@...ux-foundation.org>,
	LKML <linux-kernel@...r.kernel.org>,
	Ulrich Drepper <drepper@...hat.com>
Subject: Re: [patch] asm-*/posix_types.h: scrub __GLIBC__

The __GLIBC__ uses look like:

	#if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2)

That block does not affect any extant glibc, so we don't care if you remove
those conditions.  Any non-glibc users of thes headers might care, since
they are the ones affected.

TGhe __USE_ALL uses are all the same one:

	typedef struct {
	#if defined(__KERNEL__) || defined(__USE_ALL)
		int	val[2];
	#else /* !defined(__KERNEL__) && !defined(__USE_ALL) */
		int	__val[2];
	#endif /* !defined(__KERNEL__) && !defined(__USE_ALL) */
	} __kernel_fsid_t;

This might matter in the case of a program compiled in strict ISO C mode,
if some ISO C-standard headers wind up including <asm/posix_types.h>.  
In ISO C it is kosher to write:

	#define val die!die!die!
	#include <stdio.h>

though this is not kosher for POSIX applications.


Thanks,
Roland
--
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