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] [thread-next>] [day] [month] [year] [list]
Message-ID: <20060913164251.GD13956@redhat.com>
Date:	Wed, 13 Sep 2006 12:42:51 -0400
From:	Dave Jones <davej@...hat.com>
To:	Jarek Poplawski <jarkao2@...pl>
Cc:	linux-kernel@...r.kernel.org, ak@...e.de
Subject: Re: [PATCH] mpparse.c:231: warning: comparison is always false

On Wed, Sep 13, 2006 at 08:50:10AM +0200, Jarek Poplawski wrote:
 
 > Probably after 2.6.18-rc6-git1 there is this cc warning: 
 > "arch/i386/kernel/mpparse.c:231: warning: comparison is
 > always false due to limited range of data type".
 > Maybe this patch will be helpful.
 > 
 > diff -Nurp linux-2.6.18-rc6-git4-/arch/i386/kernel/mpparse.c linux-2.6.18-rc6-git4/arch/i386/kernel/mpparse.c
 > --- linux-2.6.18-rc6-git4-/arch/i386/kernel/mpparse.c	2006-09-13 00:01:00.000000000 +0200
 > +++ linux-2.6.18-rc6-git4/arch/i386/kernel/mpparse.c	2006-09-13 00:01:00.000000000 +0200
 > @@ -228,12 +228,14 @@ static void __init MP_bus_info (struct m
 >  
 >  	mpc_oem_bus_info(m, str, translation_table[mpc_record]);
 >  
 > +#if 0xFF >= MAX_MP_BUSSES
 >  	if (m->mpc_busid >= MAX_MP_BUSSES) {
 >  		printk(KERN_WARNING "MP table busid value (%d) for bustype %s "
 >  			" is too large, max. supported is %d\n",
 >  			m->mpc_busid, str, MAX_MP_BUSSES - 1);
 >  		return;
 >  	}
 > +#endif

mpc_busid is a uchar. I don't see how this can ever be > 0xff, yet
mach-summit and mach-generic have MAX_MP_BUSSES set to 260.

I don't see how this can possibly work.

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