Re: [uml-devel] Kernel panic with 2.6.11.6

2005-04-28 Thread Frank Sorenson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Blaisorblade wrote: | Hmm, maybe this could be related with the sigwinch problem that Jeff has a | patch for ? It should be in the incrementals page. This sounds very similar to the winch crash I was having, but without a stack trace, it will be difficu

Re: [uml-devel] Hostfs permission checks are all wonky.

2005-04-28 Thread Rob Landley
On Friday 29 April 2005 04:53 pm, Blaisorblade wrote: > While doing other stuff, I've understood how UML reaches that code: > > hostfs_read_sb->get_sb_nodev->set_anon_super()->idr_XXX. However, I can't > understand why the hell UML could have bugs in this path. Probably running > it with a root hos

Re: [uml-devel] The source to that firmware-uml thing is now up...

2005-04-28 Thread Rob Landley
On Friday 29 April 2005 03:16 pm, Blaisorblade wrote: > > Hmmm... I suppose I could always have a wrapper script > > which can't be setuid if in bash, could if in Perl and perlsuid is > installed. Actually you can run bash setuid with the -p option. From bash's "flags.c": /* Non-zero means tha

Re: [uml-devel] Re: Segfault 2.6.11-rc1-mm1

2005-04-28 Thread Heiko Przybyl
I managed to get it working, by applying the skas-patch to the host (CONFIG_MODE_TT gives the segfault, and CONFIG_STATIC_LINK with skas doesn't link). My system (the host) is still running in nptl-mode but the guest isn't (it's known to not work ;) > You have recompiled your system or enabled

Re: [uml-devel] Kernel panic with 2.6.11.6

2005-04-28 Thread Jeff Dike
On Wed, Apr 27, 2005 at 01:33:24PM -0700, Anthony Brock wrote: > Kernel panic - not syncing: Kernel mode fault at addr 0x19, ip 0x402eb2d2 > > This only happens when I reconnect to the guest console by attaching to the > associated "screen" session. Also, it is erradic at best and happens about >

[uml-devel] Re: [UML] Compile error when building with seperate source and object directories

2005-04-28 Thread Al Viro
On Thu, Apr 28, 2005 at 04:26:47PM -0400, Jeff Dike wrote: > > That's because that stuff is not merged yet. Speaking of which, where does > > the current UML tree live and who should that series be Cc'ed to? > > My patchset lives at http://user-mode-linux.sf.net/patches.html, and things > like th

[uml-devel] Re: [UML] Compile error when building with seperate source and object directories

2005-04-28 Thread Jeff Dike
> That's because that stuff is not merged yet. Speaking of which, where does > the current UML tree live and who should that series be Cc'ed to? My patchset lives at http://user-mode-linux.sf.net/patches.html, and things like this should be CC-ed to me. > I've got a decent split-up and IMO that

Re: [uml-devel] UML Kernel support for NPTL

2005-04-28 Thread Jeff Dike
On Thu, Apr 28, 2005 at 03:17:56PM -0400, Majid Salame wrote: > Did anyone implement the UML kernel support for the NPTL thread library? > Or specifically implemented the set_thread_area system call in UML. Not yet. It's on my list, but I haven't had enough round tuits lately.

Re: [uml-devel] gdb debugging problem on uml-2.6.10

2005-04-28 Thread Jeff Dike
On Thu, Apr 28, 2005 at 11:54:37PM +0800, Mei,Jia wrote: > When I try gdb-5.3.90 with uml in vanilla-2.6.10 kernel. I found a problem. > > When I set a breakpoint somewhere, and after some step, uml will > always get a SIGTRAP signal and trap into gdb. You are running UML inside gdb, not gdb insi

Re: [uml-devel] Re: [patch 1/7] uml: fix syscall table by including $(SUBARCH)'s one, for i386

2005-04-28 Thread Jeff Dike
On Thu, Apr 28, 2005 at 11:10:53AM -0700, Chris Wright wrote: > * [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: > > > > Split the i386 entry.S files into entry.S and syscall_table.S which > > is included in the previous one (so actually there is no difference between > > them) and use the syscall_t

Re: [uml-devel] Hostfs permission checks are all wonky.

2005-04-28 Thread Blaisorblade
On Monday 28 March 2005 21:48, Rob Landley wrote: > On Thursday 24 March 2005 05:53 am, Blaisorblade wrote: > > > You mean like this darn bug I've been seeing for weeks? > > > > > > io scheduler noop registered > > > loop: loaded (max 8 devices) > > > Initialized stdio console driver > > > Console

Re: [uml-devel] Re: Segfault 2.6.11-rc1-mm1

2005-04-28 Thread Blaisorblade
On Sunday 24 April 2005 22:04, Heiko Przybyl wrote: > > > Could be the problem the position independent code or native posix > > > thread library? I've got both enabled, but i don't want to recompile my > > > whole system.. > > > > Well, I have > > You have recompiled your system or enabled those o

Re: [uml-devel] UML-patches to prepare UML/s390

2005-04-28 Thread Blaisorblade
On Tuesday 26 April 2005 13:31, Bodo Stroesser wrote: > Blaisorblade wrote: > > Other issues follow, which refer to copied code going out-of-date wrt. my > > local tree (which I have snapshotted some time ago, after I started > > writing this mail). This is the problem with copying code - and you'r

Re: [uml-devel] Kernel panic with 2.6.11.6

2005-04-28 Thread Blaisorblade
On Wednesday 27 April 2005 22:33, Anthony Brock wrote: > I have a 2.6.11.6 guest kernel (with the bs3 patches) running on a 2.6.10 > host kernel (with the SKAS3 v7 patches). The guest distribution is SuSE > 9.1. For the most part, this UML functions perfectly. > > However, since upgrading the guest

Re: [uml-devel] Re: [patch 1/7] uml: fix syscall table by including $(SUBARCH)'s one, for i386

2005-04-28 Thread Blaisorblade
On Thursday 28 April 2005 20:10, Chris Wright wrote: > * [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: > > Split the i386 entry.S files into entry.S and syscall_table.S which > > is included in the previous one (so actually there is no difference > > between them) and use the syscall_table.S in the

Re: [uml-devel] Question about kernel_thread in UML TT mode

2005-04-28 Thread Blaisorblade
On Thursday 28 April 2005 12:00, Alex LIU wrote: > Hi,all: > > I found UML only implement its own kernel_thread function but doesn't > implement kernel_thread_helper function. ??? What's kernel_thread_helper? kernel_thread calls the arch-independent do_fork(), which works like the rest. In particu

Re: [uml-devel] UML Kernel support for NPTL

2005-04-28 Thread Blaisorblade
On Thursday 28 April 2005 21:17, Majid Salame wrote: > Hi, > > Did anyone implement the UML kernel support for the NPTL thread library? > Or specifically implemented the set_thread_area system call in UML. > I am interested to boot UML with a rootfs with packages built with a > version of glibc t

[uml-devel] UML Kernel support for NPTL

2005-04-28 Thread Majid Salame
Title: UML Kernel support for NPTL Hi, Did anyone implement the UML kernel supportĀ  for the NPTL thread library? Or specifically implemented the set_thread_area system call in UML. I am interested to boot UML with a rootfs with packages built with a version of glibc that was compiled with

[uml-devel] Re: Again: UML on s390 (31Bit)

2005-04-28 Thread Bodo Stroesser
Martin Schwidefsky wrote: Bodo Stroesser <[EMAIL PROTECTED]> wrote on 04/28/2005 03:41:39 PM: I don't think, it hurts. If a debugger willingly sets the syscall number to -1, what would happen without the patch? The kernel will set the result -ENOSYS into grps[2]. So, even if trap still indicates a

Re: [uml-devel] bugs in line.c and stdio_console.c

2005-04-28 Thread Blaisorblade
On Thursday 28 April 2005 03:24, Yu Dong-W4760C wrote: > same bugs in the two files (uml-linux-2.4.26-3): > arch/um/drivers/line.c > down(&line->sem); > may cause shedule in > interrrupt > in arch/um/drivers/stdio_console.c > static void console_write(struct console *co

[uml-devel] Re: [patch 1/7] uml: fix syscall table by including $(SUBARCH)'s one, for i386

2005-04-28 Thread Chris Wright
* [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: > > Split the i386 entry.S files into entry.S and syscall_table.S which > is included in the previous one (so actually there is no difference between > them) and use the syscall_table.S in the UML build, instead of tracking by > hand the syscall table

Re: [uml-devel] The source to that firmware-uml thing is now up...

2005-04-28 Thread Blaisorblade
On Wednesday 27 April 2005 03:23, Rob Landley wrote: > On Saturday 23 April 2005 08:57 am, Blaisorblade wrote: > > > Can't do it before > > > running the UML kernel because A) it needs to make its memory file, 2) > > > it needs to access /proc/self/exe, III) it needs to loopback mount its > > > ex

[uml-devel] [Bug 49277] Compile of usermode-sources-2.6.x fails

2005-04-28 Thread bugzilla-daemon
http://bugs.gentoo.org/show_bug.cgi?id=49277 --- Additional Comments From [EMAIL PROTECTED] 2005-04-28 09:26 PST --- Think I found it. Would this be the latest version? http://www.user-mode-linux.org/~blaisorblade/patches/guest/uml-2.6.11-bs4/ --- You are receiving this mail b

[uml-devel] gdb debugging problem on uml-2.6.10

2005-04-28 Thread Mei,Jia
Hi, When I try gdb-5.3.90 with uml in vanilla-2.6.10 kernel. I found a problem. When I set a breakpoint somewhere, and after some step, uml will always get a SIGTRAP signal and trap into gdb. Does anyone met the same problem as me? Any known fix for it? thanks! Eric

[uml-devel] Re: Again: UML on s390 (31Bit)

2005-04-28 Thread Martin Schwidefsky
Bodo Stroesser <[EMAIL PROTECTED]> wrote on 04/28/2005 03:41:39 PM: > Martin Schwidefsky wrote: > > So (!entryexit & regs->gprs[2] < 0) translates to the debugger changed the guest > > system call to something illegal on the first of the two ptrace calls. So the > > patch doesn't hurt for normal,

Re: [uml-devel] Re: Again: UML on s390 (31Bit)

2005-04-28 Thread Bodo Stroesser
Bodo Stroesser wrote: Martin Schwidefsky wrote: So (!entryexit & regs->gprs[2] < 0) translates to the debugger changed the guest system call to something illegal on the first of the two ptrace calls. So the patch doesn't hurt for normal, non-ptraced operation but it might hurt other users of ptrac

[uml-devel] Re: Again: UML on s390 (31Bit)

2005-04-28 Thread Bodo Stroesser
Martin Schwidefsky wrote: So (!entryexit & regs->gprs[2] < 0) translates to the debugger changed the guest system call to something illegal on the first of the two ptrace calls. So the patch doesn't hurt for normal, non-ptraced operation but it might hurt other users of ptrace. I don't think, it hu

[uml-devel] Re: Again: UML on s390 (31Bit)

2005-04-28 Thread Martin Schwidefsky
Bodo Stroesser <[EMAIL PROTECTED]> wrote on 04/28/2005 11:54:17 AM: > > This patch is not good. !entryexit indicates that you want to change the trap > > indication on the first of the two calls of syscall_trace for a system call. The > > second condition is gprs[2] < 0 but that can be true for a

Re: [uml-devel] Question about UML gdb

2005-04-28 Thread Nix
On Wed, 27 Apr 2005, [EMAIL PROTECTED] moaned: > For most applications, the mention address-space is mapped to > linux-gate.so, which to my understanding is a part of sysenter/tls > implementation in glibc. It is the vsyscall implementation; it's exported by the kernel, not by glibc. -- This is

[uml-devel] Question about kernel_thread in UML TT mode

2005-04-28 Thread Alex LIU
Hi,all: I found UML only implement its own kernel_thread function but doesn't implement kernel_thread_helper function. Then how does UML start a kernel thread in TT mode? Is there any other functions being called? Thanks a lot! Alex ---

[uml-devel] Re: Again: UML on s390 (31Bit)

2005-04-28 Thread Bodo Stroesser
Martin Schwidefsky wrote: Bodo Stroesser <[EMAIL PROTECTED]> wrote on 04/27/2005 10:21:58 PM: 1) UML includes some of the subarch's (s390) headers. I had to change one of them with the following one-liner, to make this compile. AFAICS, this change doesn't break compilation of s390 itself.

[uml-devel] Re: Again: UML on s390 (31Bit)

2005-04-28 Thread Martin Schwidefsky
Bodo Stroesser <[EMAIL PROTECTED]> wrote on 04/27/2005 10:21:58 PM: > I'm sending this mail again, because unfortunately I didn't receive > any reply. It was sent the first time at April, 5th. Sorry, I put it on the to-do pile and promptly forgot about it. > currently I'm porting UML to s390 31-