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-next>] [day] [month] [year] [list]
Date:	Fri, 20 Jul 2007 13:17:28 -0700
From:	Andrew Morton <akpm@...ux-foundation.org>
To:	Yasuaki Ishimatsu <isimatu.yasuaki@...fujitsu.com>,
	Kenji Kaneshige <kaneshige.kenji@...fujitsu.com>
Cc:	linux-ia64@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [IA64] Add mapping table between irq and vector

On Fri, 20 Jul 2007 19:59:17 GMT
Linux Kernel Mailing List <linux-kernel@...r.kernel.org> wrote:

> +	BUG_ON(bind_irq_vector(irq, vector));

It's not good practice to do assert(expression-with-side-effects).  Because
if someone wants to create a build which has all the assertions disabled,
the resulting binary will not work.

In the present implementation our BUG_ON(expression) will evaluate
`expression' even if CONFIG_BUG=n.  But that's totally lame and we are just
leaving optimisation opportunities on the floor.

Our objective _should_ be to make BUG_ON(expr) generate no code at all if
CONFIG_BUG=n.

So please, prefer to do

	if (bind_irq_vector(irq, vector))
		BUG();

-
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