linux-um archives
 help / color / mirror / Atom feed
From: BlaisorBlade <blaisorblade_spam@yahoo.it>
To: user-mode-linux-devel@lists.sourceforge.net
Cc: roland <for_spam@gmx.de>
Subject: Re: 2.6.3-rc2 failure - was: Re: [uml-devel] Kernel idles in loop after loading IPv4
Date: Sun, 15 Feb 2004 20:45:17 +0100	[thread overview]
Message-ID: <200402152045.17138.blaisorblade_spam@yahoo.it> (raw)
In-Reply-To: <1bf401c3f3eb$c35704f0$2000000a@schlepptopp>

Alle 18:47, domenica 15 febbraio 2004, roland ha scritto:
> hi !
> concerning the uml "hang" after  "NET: Registered protocol family 2":
>
> after some investigation i found, that the problem seems to have been
> introduced with uml-patch-2.6.0-1 (at
> http://prdownloads.sourceforge.net/user-mode-linux/uml-patch-2.6.0-1.bz2)
>
> uml-patch-2.6.0-test9-1 (at
> http://prdownloads.sourceforge.net/user-mode-linux/uml-patch-2.6.0-test9-1.
>bz2?download), in conjunction with minor compile-fix
> http://people.0x63.nu/~andersg/uml-minor-fixes.diff works nicely for me.

On what guest kernel do you apply the patch? uml-patch-2.6.0-1 gave strange 
problems with 2.6.1 vanilla kernel.

> seems there has been a major change (lots of merges?) in uml-patch-2.6.0-1
> because it`s much more bigger (around 2x) than uml-patch-2.6.0-test9-1
>
> btw:
> i use Bryan O'Sullivan`s skas patch on my host kernel. see:
> http://sourceforge.net/mailarchive/message.php?msg_id=5840691 since this
> patch isn`t based on steven james patch (which stephen williams patch is
> based of), it isn`t a skas issue, but a compiler or host-fs issue !? i`m on
> suse9 host.
You should try using, as skas patch, 
http://www.user-mode-linux.org/~blaisorblade/patches/2.6.2-v1-host-skas2/00-2.6.2-v1-host-SKAS2.patch.bz2, 
which comes from the latest one from Ingo Molnar. I have not been very 
careful, but when I gave a look to the Bryan's patch, it seemed likely to 
have similar problems as the other one. At least, both do only this change to 
write_ldt (i.e. don't use current->mm but let the caller specify which mm 
use):

-static int write_ldt(void __user * ptr, unsigned long bytecount, int oldmode)
+static int write_ldt(struct task_struct *task, void __user * ptr, unsigned 
long bytecount, int oldmode)
 {
-       struct mm_struct * mm = current->mm;
+       struct mm_struct * mm = task->mm;
        __u32 entry_1, entry_2, *lp;
        int error;
        struct user_desc ldt_info;

While Ingo Molnar's one does also this:

@@ -195,7 +197,7 @@

        down(&mm->context.sem);
        if (ldt_info.entry_number >= mm->context.size) {
-               error = alloc_ldt(&current->mm->context, 
ldt_info.entry_number+1, 1);
+               error = alloc_ldt(&mm->context, ldt_info.entry_number+1, 1);
                if (error < 0)
                        goto out_unlock;
        }

This second change is *needed*, whichever patch do you use: without it part of 
write_ldt uses current->mm instead of mm. That also means that alloc_ldt is 
not called on mm->context, so that probably it remains null and so we get 
Oopses.

Bye
-- 
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

  reply	other threads:[~2004-02-15 19:46 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-15 17:47 2.6.3-rc2 failure - was: Re: [uml-devel] Kernel idles in loop after loading IPv4 roland
2004-02-15 19:45 ` BlaisorBlade [this message]
2004-02-16  0:42   ` roland
2004-02-18  1:52   ` roland
2004-02-18 19:01     ` BlaisorBlade
2004-02-18 21:37       ` Jeff Dike
2004-02-19  0:36       ` roland
2004-02-19 18:06         ` BlaisorBlade
2004-02-19  2:23     ` Jeff Dike

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=200402152045.17138.blaisorblade_spam@yahoo.it \
    --to=blaisorblade_spam@yahoo.it \
    --cc=for_spam@gmx.de \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /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