From: "Dieter Nützel" <Dieter.Nuetzel@hamburg.de>
To: "Martin J. Bligh" <Martin.Bligh@us.ibm.com>,
Linus Torvalds <torvalds@transmeta.com>,
Olaf Zaplinski <o.zaplinski@mediascape.de>
Cc: Linux Kernel List <linux-kernel@vger.kernel.org>
Subject: Re: Linux 2.4.11-pre4
Date: Sat, 6 Oct 2001 22:42:59 +0200 [thread overview]
Message-ID: <20011006204242Z275716-761+16343@vger.kernel.org> (raw)
In-Reply-To: <1565164462.1002292544@mbligh.des.sequent.com>
In-Reply-To: <1565164462.1002292544@mbligh.des.sequent.com>
Am Freitag, 5. Oktober 2001 23:35 schrieb Martin J. Bligh:
> > 1. OK, it fixes the UP UP_IOAPIC compilation problem.
> > System (with preempt-patch) up and runnig.
>
> Good.
>
> > 2. Woohu. I have 8 CPUs, now...;-)
> > --- /proc is somewhat broken
>
> Bugger. Didn't realise that cpu_online_map didn't get initialised
> to anything sensible under UP. Should be just cosmetic (it's only
> the output of /proc/cpuinfo, not the sceduler or anything), but
> try this (I haven't tested it yet - if it doesn't work, just change the
> 8 to 1 for a second whilst I fix it properly).
The first version works nice.
Have a nice weekend.
-Dieter
> ===========================
>
> --- setup.c.old Fri Oct 5 14:20:29 2001
> +++ setup.c Fri Oct 5 14:28:51 2001
> @@ -2420,7 +2420,7 @@
> * WARNING - nasty evil hack ... if we print > 8, it overflows the
> * page buffer and corrupts memory - this needs fixing properly
> */
> - for (n = 0; n < 8; n++, c++) {
> + for (n = 0; n < (clustered_apic_mode ? 8 : NR_CPUS); n++, c++) {
> /* for (n = 0; n < NR_CPUS; n++, c++) { */
> int fpu_exception;
> #ifdef CONFIG_SMP
>
> ===========================
>
> The reason for this hackery is that get_cpuinfo writes to a page
> without proper bounds on itself. If you have more than about 8
> cpus, it tramples merrily all over the next page, corrupting page
> tables, etc, etc.
>
> The real fix for this overflow was published here a few weeks ago
> by James Cleverdon (whom I work with). It's in Alan's tree, but not
> Linus' as yet.
>
> M.
next prev parent reply other threads:[~2001-10-06 20:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200110052031.QAA23072@e34.esmtp.ibm.com>
2001-10-05 21:35 ` Martin J. Bligh
2001-10-06 20:42 ` Dieter Nützel [this message]
2001-10-05 4:38 Dieter Nützel
2001-10-05 16:25 ` Martin J. Bligh
2001-10-05 17:54 ` Martin J. Bligh
2001-10-05 18:15 ` Dieter Nützel
2001-10-05 20:33 ` Dieter Nützel
2001-10-05 18:11 ` Dieter Nützel
-- strict thread matches above, loose matches on Subject: below --
2001-10-05 3:47 Linus Torvalds
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20011006204242Z275716-761+16343@vger.kernel.org \
--to=dieter.nuetzel@hamburg.de \
--cc=Martin.Bligh@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=o.zaplinski@mediascape.de \
--cc=torvalds@transmeta.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®