login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
July
»
31
Re: [PATCH] x86: fdiv bug detection fix
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Andrew Morton
Subject:
Re: [PATCH] x86: fdiv bug detection fix
Date: Thursday, July 31, 2008 - 2:49 pm
On Thu, 31 Jul 2008 23:43:44 +0200 Krzysztof Helt <krzysztof.h1@wp.pl> wrote:
quoted text
> From: Krzysztof Helt <krzysztof.h1@wp.pl> > > The fdiv detection code writes s32 integer into > the boot_cpu_data.fdiv_bug. > However, the boot_cpu_data.fdiv_bug is only char (s8) > field so the detection overwrites already set fields for > other bugs, e.g. the f00f bug field. > > Use local s32 variable to receive result. > > Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl> > --- > > This is a partial fix to Bugzilla #9928 - fixes wrong > information about the f00f bug (tested) and probably > for coma bug (I have no cpu to test this). > > diff -urp linux-alsa/arch/x86/kernel/cpu/bugs.c linux-new/arch/x86/kernel/cpu/bugs.c > --- linux-alsa/arch/x86/kernel/cpu/bugs.c 2008-07-31 12:40:31.000000000 +0200 > +++ linux-new/arch/x86/kernel/cpu/bugs.c 2008-07-31 23:24:07.722657435 +0200 > @@ -50,6 +50,8 @@ static double __initdata y = 3145727.0; > */ > static void __init check_fpu(void) > { > + s32 fdiv_bug; > + > if (!boot_cpu_data.hard_math) { > #ifndef CONFIG_MATH_EMULATION > printk(KERN_EMERG "No coprocessor found and no math emulation present.\n"); > @@ -74,8 +76,10 @@ static void __init check_fpu(void) > "fistpl %0\n\t" > "fwait\n\t" > "fninit" > - : "=m" (*&boot_cpu_data.fdiv_bug) > + : "=m" (*&fdiv_bug) > : "m" (*&x), "m" (*&y)); > + > + boot_cpu_data.fdiv_bug = fdiv_bug; > if (boot_cpu_data.fdiv_bug) > printk("Hmm, FPU with FDIV bug.\n"); > }
hm, the code seems to have been that way for quite some time. I wonder why nobody noticed this before. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] x86: fdiv bug detection fix
, Krzysztof Helt
, (Thu Jul 31, 2:43 pm)
Re: [PATCH] x86: fdiv bug detection fix
, Andrew Morton
, (Thu Jul 31, 2:49 pm)
Re: [PATCH] x86: fdiv bug detection fix
, Ingo Molnar
, (Thu Jul 31, 2:57 pm)
Re: [PATCH] x86: fdiv bug detection fix
, Jeremy Fitzhardinge
, (Thu Jul 31, 3:04 pm)
Re: [PATCH] x86: fdiv bug detection fix
, Willy Tarreau
, (Thu Jul 31, 3:11 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
swhiteho
[PATCH 42/51] [GFS2] Move inode deletion out of blocking_cb
FUJITA Tomonori
Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel
Alex Riesen
Re: [PATCH 4/7] lib: Introduce strnstr()
Alexey Dobriyan
Re: [2.6.22.2 review 09/84] Fix rfkill IRQ flags.
Mathieu Desnoyers
[patch 5/8] Immediate Values - x86 Optimization
git
:
Mike Miller
git message
Stefan Richter
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
Jeff King
Re: [PATCH] t7004: test that "git-tag -u" implies "-s"
Christian MICHON
Re: VCS comparison table
Scott Chacon
Re: why not TortoiseGit
linux-netdev
:
Arnaldo Carvalho de Melo
Re: [PATCH 06/37] dccp: Limit feature negotiation to connection setup phase
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Badalian Vyacheslav
Re: tc filter flow hash question
Parav Pandit
ip6 route output() and ip_route_output_key() by drivers
Jarek Poplawski
Re: tc filter flow hash question
git-commits-head
:
Linux Kernel Mailing List
i915: Don't whine when pci_enable_msi() fails.
Linux Kernel Mailing List
usb: musb: fix hanging when rmmod gadget driver
Linux Kernel Mailing List
[ARM] 4671/1: ep93xx: remove obsolete gpio_line_* operations
Linux Kernel Mailing List
NFSv4: Move error handling out of the delegation generic code
Linux Kernel Mailing List
Disallow gcc versions 4.1.{0,1}
openbsd-misc
:
Vikas N Kumar
Re: Singularity OS
Christian Weisgerber
Re: CARP with a single public IP address
Marco Peereboom
Re: OpenBSD culture?
"RALOVICH, Kristóf"
Re: thinkpad windows refund
Kevin
Re: uvm_mapent_alloc: out of static map entries on 4.3 i386
Colocation donated by:
Syndicate