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] [day] [month] [year] [list]
Date:	Thu, 18 Dec 2008 09:19:46 +0100
From:	Rogier Wolff <R.E.Wolff@...Wizard.nl>
To:	Andi Kleen <andi@...stfloor.org>
Cc:	Rogier Wolff <R.E.Wolff@...Wizard.nl>, linux-kernel@...r.kernel.org
Subject: Re: FPU emulation broken in 2.6.28-rc8 ?

On Thu, Dec 18, 2008 at 12:33:57AM +0100, Andi Kleen wrote:
> On Wed, Dec 17, 2008 at 11:52:21PM +0100, Rogier Wolff wrote:
> > On Wed, Dec 17, 2008 at 11:45:39PM +0100, Andi Kleen wrote:
> > > Rogier Wolff <R.E.Wolff@...Wizard.nl> writes:
> > > >> 
> > > >> I'm trying to set up a thin client, which runs on a geode, which
> > > >> apparently doesn't have a FPU.... (/proc/cpuinfo mentions the flag 
> > > >> "fpu", what does THAT mean?)
> > > 
> > > Geodes all have FPUs to my knowledge.
> > > The only FPU less x87s are 386s and special 486s (and a few emulators)
> > > 
> > > If the FPU doesn't work on the Geode something else must be broken
> > > (or your CPU is not really a Geode)
> > 
> > Although the /proc/cpuinfo file shows the FPU flag, the kernel stops
> > with "no fpu found, and math emulation not present" if I disable
> > FP emulation.... 
> 
> As I said then the problem is likely with the FPU check.
> 
> That said I don't doubt that FPU emulation might have broken
> again (that is because hardly anyone uses it), just that fixing
> it is not the real fix for your problem.

In the past, I've compiled kernels with math emulation "just in case". 
That was in that time that if my with-fpu machine would break down, I
might have to put a motherboard without FPU in there, and I liked the
prospect of being able to boot in such a case. 

So, if an FPU is present, the math emulation code should just sit 
dormant. Even when the detection then thinks that no FPU is present, 
the "illegal instruction" traps that the math emulation is based on
simply should not occur.

But even if the math emulation code is actually active, then it should 
simply work, and emulate any FPU instructions without problem. 

	Roger.

-- 
** R.E.Wolff@...Wizard.nl ** http://www.BitWizard.nl/ ** +31-15-2600998 **
**    Delftechpark 26 2628 XH  Delft, The Netherlands. KVK: 27239233    **
*-- BitWizard writes Linux device drivers for any device you may have! --*
Q: It doesn't work. A: Look buddy, doesn't work is an ambiguous statement. 
Does it sit on the couch all day? Is it unemployed? Please be specific! 
Define 'it' and what it isn't doing. --------- Adapted from lxrbot FAQ
--
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