From: Andrea Arcangeli <andrea@suse.de>
To: "G. Hugh Song" <ghsong@norma.kjist.ac.kr>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.4.10pre2aa2
Date: Sat, 1 Sep 2001 19:24:06 +0200 [thread overview]
Message-ID: <20010901192406.A30745@athlon.random> (raw)
In-Reply-To: <3B90C0D4.6010509@norma.kjist.ac.kr> <20010901161517.C927@athlon.random>
In-Reply-To: <20010901161517.C927@athlon.random>; from andrea@suse.de on Sat, Sep 01, 2001 at 04:15:17PM +0200
On Sat, Sep 01, 2001 at 04:15:17PM +0200, Andrea Arcangeli wrote:
> On Sat, Sep 01, 2001 at 08:04:52PM +0900, G. Hugh Song wrote:
> > Dear Andrea,
> >
> > Since sometime around 2.4.7-*aa*, I never succeeded booting from your
> > patched kernel on UP2000 dual with SuSE-7.1 with 2GB memory.
> >
> > Booting stops somewhere near the file system check. The stopping place
> > is not always the same. Today I compiled 2.4.10pre2aa2. It stopped
> > while reading the /lib/modules/2.4.10pre2aa2.
> >
> > I attached .config here.
> >
> > Am I the only one having trouble with the recent *aa*-series kernel?
> >
> > The last time I succeeded, I had 2.4.5pre2aa1. I attached the xconfig
> > file also.
>
> Can you try to backout those two patches in order before compiling?
>
> ftp://ftp.us.kernel.org/pub/linux/kernel/people/andrea/kernels/v2.4/2.4.10pre2aa2/71_mmap-rb-6_other-archs-1
> ftp://ftp.us.kernel.org/pub/linux/kernel/people/andrea/kernels/v2.4/2.4.10pre2aa2/70_mmap-rb-6
>
> I also cannot boot 2.4.10pre2aa2 on my alpha box :(, I nailed it down
> due the mmap-rb vma lookup rewrite, however it is quite strange that it
> is generating problems because it's at 99% common code stuff. I will try
> to fix it ASAP. In the meantime make sure to backout those two patches
> when you run it on alpha (such two patches never generated a single
> problem on x86 yet AFIK).
Ok, found the silliness after a few hours of debugging. Can you try this
patch on top of 2.4.10pre2aa2? My alpha now runs solid again with it
applied.
--- 2.4.10pre2aa3/mm/mmap.c.~1~ Sat Sep 1 19:07:24 2001
+++ 2.4.10pre2aa3/mm/mmap.c Sat Sep 1 19:07:51 2001
@@ -360,7 +360,7 @@
spin_lock(lock);
prev->vm_end = end;
next = prev->vm_next;
- if (prev->vm_end == next->vm_start && can_vma_merge(next, vm_flags)) {
+ if (next && prev->vm_end == next->vm_start && can_vma_merge(next, vm_flags)) {
prev->vm_end = next->vm_end;
__vma_unlink(mm, next, prev);
spin_unlock(lock);
It was not triggering for all programs because to trigger you'd need an
mmap or sbrk that would close an hole in the address space, and only 1
vma after the hole.
It couldn't trigger on x86 because on x86 we always have the stack at
the end of the address space so vm_next was always non null in practice.
However it would been possible to write a malicious application to
exploit this bug on x86 too, it wasn't a bug specific to alpha.
It will be fixed in the next -aa as well of course. In the meantime keep
the above patch applied.
Andrea
next prev parent reply other threads:[~2001-09-01 17:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-01 11:04 2.4.10pre2aa2 G. Hugh Song
2001-09-01 14:15 ` 2.4.10pre2aa2 Andrea Arcangeli
2001-09-01 17:24 ` Andrea Arcangeli [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-09-02 4:32 2.4.10pre2aa2 root
2001-08-31 18:26 2.4.10pre2aa2 Andrea Arcangeli
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=20010901192406.A30745@athlon.random \
--to=andrea@suse.de \
--cc=ghsong@norma.kjist.ac.kr \
--cc=linux-kernel@vger.kernel.org \
/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