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, 6 Jun 2007 21:24:09 +0100
From:	Al Viro <viro@....linux.org.uk>
To:	"Kok, Auke" <auke-jan.h.kok@...el.com>
Cc:	Richard Knutsson <ricknu-0@...dent.ltu.se>,
	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
	Linus Torvalds <torvalds@...ux-foundation.org>,
	Josh Triplett <josh@...edesktop.org>
Subject: Re: generic bool and sparse errors?

On Wed, Jun 06, 2007 at 01:17:44PM -0700, Kok, Auke wrote:
> well the sparse warning is about signedness. Either sparse needs to "know" 
> that bool is unsigned, or the kernel headers need to somehow make bool 
> unsigned... the latter choice would come down to just that, but it doesn't 
> look like a good idea to me either somehow.

sparse treats _Bool as 1-bit integer type.  It's considerably more
complicated beast; for one thing (_Bool)2 is 1, not 0.  For another,
several places make unpleasant assumptions that size in bits is a
multiple of bits_in_char.  Which would be fine, but sparse has it
set to 1 for _Bool.  With obvious results...
-
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