linux-um archives
 help / color / mirror / Atom feed
From: Antoine Martin <antoine@nagafix.co.uk>
To: Joel Palmius <joel.palmius@miun.se>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] buggy UML AMD64?
Date: Sun, 21 Jan 2007 14:46:12 +0000	[thread overview]
Message-ID: <45B37CB4.2050908@nagafix.co.uk> (raw)
In-Reply-To: <Pine.LNX.4.64.0701211534310.3499@ligur.home.jwp.se>

Joel Palmius wrote:
> Confirmed on my athlon64 gentoo setup. I've been running 2.6.14.3 as 
> host kernel for ages (since I was too wimpy to try to upgrade a host 
> kernel remote on a machine that required binary proprietary drivers).
> 
> On 2.6.14.3 x86_64 all my 32bit UMLs run fine with various guest kernels 
> compiled in various circumstances.
on x86 I was able to upgrade as far as 2.6.15.x, 2.6.16 and later broke.
So you may be able to upgrade by one minor release (not much - and 
2.6.15 is no longer maintained, whereas 2.6.16 is... damn)

> On 2.6.18-gentoo-r6 x86_64 (genkernel), all guest UMLs spin up to 100% 
> and does nothing, no output whatsoever.
Finally someone confirms what I have been seeing for ages!
Maybe the devs can find out what is going on now...

It does look like a host kernel issue, but since other people are 
reporting no errors with the same kernels, I wouldn't completely discard 
the possibility that glibc has something to do with this.
Also, there was a report today that *_FS_SECURITY is causing problems.
Do you happen to have *_FS_SECURITY options switched on (on the host)?

Antoine




> Strace says:
> 
> execve("./vmlinux", ["./vmlinux"], [/* 28 vars */]) = 0
> [ Process PID=13658 runs in 32 bit mode. ]
> uname({sys="Linux", node="master", ...}) = 0
> brk(0)                                  = 0xffffffffa0314000
> brk(0xa0314844)                         = 0xffffffffa0314844
> set_thread_area(0xffdb51d0)             = 0
> brk(0xa0335844)                         = 0xffffffffa0335844
> brk(0xa0336000)                         = 0xffffffffa0336000
> getrlimit(RLIMIT_STACK, {rlim_cur=-4286578688, rlim_max=4292563436}) = 0
> rt_sigaction(SIGINT, {0xc0000000a001cad8, [], 0}, NULL, 8) = 0
> rt_sigprocmask(SIG_UNBLOCK, [INT], NULL, 8) = 0
> rt_sigaction(SIGTERM, {0xc0000000a001cad8, [],
> SA_INTERRUPT|SA_ONESHOT|0x161e48}, NULL, 8) = 0
> rt_sigprocmask(SIG_UNBLOCK, [TERM], NULL, 8) = 0
> rt_sigaction(SIGHUP, {0xc0000000a001cad8, [], 0}, NULL, 8) = 0
> rt_sigprocmask(SIG_UNBLOCK, [HUP], NULL, 8) = 0
> fstat64(0x1, 0xffdb4ad8)                = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0x1000) = 0xfffffffff7fe8000
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE|PROT_EXEC,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0x1000) = 0xfffffffff7fe7000
> clone(child_stack=0xf7fe7fd4, flags=|SIGCHLD) = 13659
> --- SIGCHLD (Child exited) @ 0 (0) ---
> waitpid(13659, [{WIFSTOPPED(s) && WSTOPSIG(s) == SIGSTOP}], WSTOPPED) =
> 13659
> ptrace(0x15 /* PTRACE_??? */, 13659, 0, 0x1) = -1 EINVAL (Invalid
> argument)
> 
> 
> Pity... I had finally decided to upgrade the host kernel... :-)
> 
>   // Joel
> 
> 
> On Fri, 19 Jan 2007, Antoine Martin wrote:
> 
>> Antoine Martin wrote:
>>>>>> I have downgraded the x86 boxes to 2.6.15.7 and these are up and
>>>>>> running again. But I can't do that for all of them, and this is just
>>>>>> not an option for some of the amd64 boxes.
>>>>>
>>>>> My setup is:
>>>> Thanks for that. That is very similar to mine.
>>>> I don't think this has anything to do with the guest... So I'll try to
>>>> remove the skas3 patch from the host and see how it goes.
>>>>
>>> I did, and no improvement... x86 guests still hang.
>>> Could you post a binary guest kernel somewhere so I can try that?
>>> (even if it isn't static - glibc should be similar since we're using
>>> Gentoo amd64)
>>> If that still does not work then I can be certain that it is something
>>> to do with the host.
>> I've just tried on 3 more hosts, all AMD64 Gentoo fully up to date,
>> kernel 2.6.19.2. No skas, no exec shield, no selinux, plain kernel.org:
>> None of them work with any of the 32-bit kernels!
>> It prints nothing, just sits there spinning at 100% cpu.
>> So I am now totally convinced that i haven't got a weird setup.
>> Something else is broken in UML.
>>
>> On fully up to date Fedora Core 6 x86_64, the kernel does display
>> something before crashing:
>> # uname -a
>> Linux localhost.localdomain 2.6.18-1.2869.fc6 #1 SMP Wed Dec 20 14:51:34
>> EST 2006 x86_64 x86_64 x86_64 GNU/Linux
>> # ./kernel32-2.6.19.2
>> Checking that ptrace can change system call numbers...OK
>> Checking syscall emulation patch for ptrace...missing
>> Checking for tmpfs mount on /dev/shm...OK
>> Checking PROT_EXEC mmap in /dev/shm/...OK
>> Checking for the skas3 patch in the host:
>>   - /proc/mm...not found
>>   - PTRACE_FAULTINFO...not found
>>   - PTRACE_LDT...not found
>> UML running in SKAS0 mode
>>
>> [root@localhost home]#
>>
>> This is 100% repeatable. Plain Fedora.
>> Many users will have a similar setup and will just give up on UML.
>> So I as I said before, UML is currently unusable for most people out
>> there running fairly recent systems.
>>
>> Antoine
>>
>> -------------------------------------------------------------------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to 
>> share your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> User-mode-linux-devel mailing list
>> User-mode-linux-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
>>
> 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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:[~2007-01-21 14:49 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-17 16:15 [uml-devel] UML/64bit is miscompiled by gcc 4.0.3 on Ubuntu 6.06 LTS Blaisorblade
2007-01-17 18:17 ` Christopher S. Aker
2007-01-17 18:15   ` Antoine Martin
2007-01-17 19:50     ` Antoine Martin
2007-01-19 11:00       ` [uml-devel] buggy UML AMD64? Antoine Martin
2007-01-19 16:07         ` Daniel Gryniewicz
2007-01-19 16:14           ` Antoine Martin
2007-01-19 16:38             ` Daniel Gryniewicz
2007-01-19 16:42               ` Antoine Martin
2007-01-19 17:33                 ` Antoine Martin
2007-01-19 19:56                   ` Antoine Martin
2007-01-21  9:17                     ` Boaz Harrosh
2007-01-21 13:04                       ` Antoine Martin
2007-01-23 15:20                         ` Boaz Harrosh
2007-01-21 14:38                     ` Joel Palmius
2007-01-21 14:46                       ` Antoine Martin [this message]
2007-01-21 14:55                         ` Joel Palmius
2007-01-21 16:11                         ` Joel Palmius
2007-01-22 22:09                         ` Jeff Dike
2007-01-23  0:59                           ` Antoine Martin
2007-01-19 16:38             ` Antoine Martin
2007-02-15  3:43     ` [uml-devel] UML/64bit is miscompiled by gcc 4.0.3 on Ubuntu 6.06 LTS Blaisorblade
2007-01-19 23:31   ` Blaisorblade
2007-01-17 23:26 ` Jeff Dike
2007-01-19 23:18   ` Blaisorblade
2007-01-22 20:59     ` Jeff Dike
2007-01-23  8:09       ` Blaisorblade

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=45B37CB4.2050908@nagafix.co.uk \
    --to=antoine@nagafix.co.uk \
    --cc=joel.palmius@miun.se \
    --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