[uml-user] UML is broken in latest kernels
Hello! UML does not compile with 2.6.11-rc3... need to add #include to ptrace.c, and need to comment out some code to get it working.. any ideas? Jeff? Blaisorblade? Regards, -- Zoltan NAGY, Software Engineer --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
[uml-user] 2.4.28 guest kernel Oops on FC3 host
I'm trying to run a 2.4.28 guest kernel (with SKAS) on FC3 and it blows up almost immediately in the boot process with: Checking that ptrace can change system call numbers...<0> Kernel panic: check_ptrace : expected SIGTRAP, got status = 256 In idle task - not syncing <6>SysRq : Show Regs EIP: :[<>] CPU: 0 Not tainted EFLAGS: Not tainted EAX: EBX: ECX: EDX: ESI: EDI: EBP: DS: ES: Call Trace: [<0805d5fa>] [<08054c8b>] [<0804ca09>] [<080bf294>] [<0804cfb9>] [<080494b2>] [<080bf294>] [<08049459>] [<080bf2b9>] [<080bf294>] [<080b9595>] [<080bf294>] [<080b9574>] [<080bf294>] [<080bf065>] [<080bf294>] [<080bea11>] This seems to be a FC3 related issue, as the same kernel boots ok on RHES3 and RH9 hosts. Anyone seen this problem before, or know of a solution? -- ~~ Lonni J Friedman[EMAIL PROTECTED] LlamaLand http://netllama.linux-sxs.org --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
[uml-user] Fwd: RE: [uml-devel] UML remote GUI problems
I'm forwarding this to the list because I've not the time to look at every UML user issue, and especially not now. I hope someone else can help you. -- Forwarded Message -- Subject: RE: [uml-devel] UML remote GUI problems Date: Thursday 03 February 2005 20:24 From: Greg Furlong <[EMAIL PROTECTED]> To: Blaisorblade <[EMAIL PROTECTED]> I have sshd running on the Linux machine and then i tried to run port forwarding through putty on port 5900. I then ran the command export DISPLAY=host-ip. I then used tightVNC to connect to the ip address that i had assigned while setting up the port forwarding. I keep getting an error Failed to server address. Did you type the address correctly. Regards >= Original Message From Blaisorblade <[EMAIL PROTECTED]> = > >On Friday 28 January 2005 17:30, Greg Furlong wrote: >> I am a final year student taking a degree in Computing at Dublin Institute >> of Technology - Ireland. In my final year project I am doing a project >> using User Mode Linux. My project has set out to research the capabilities >> of User Mode Linux in a teaching environment. >> >> So far I have set up a server >> and now have users logging on from a terminal. They use a COW file so as >> not to corrupt the file system. Next I want to investigate and test the >> capabilities of User Mode Linux over a network using a Graphical User >> Interface. The problem that I am having is that I am finding it difficult >> to set up the GUI system. >> >> I was wondering if anybody could give me some >> pointers in the right direction > >Without knowing which are your difficulties? It's difficult. > >> or could tell me of a tutorial on how to >> set it up. >> >> I have already looked at the user mode Linux >> website on sourceforge but have been unable to successfully complete the >> GUI instructions. > >What's the problem? > >You must install Xnest inside your guest system... it will then be able to >forward connection to another X system (on which you have to authorize TCP >connections from the UML system). Then it should work, more or less. > >> I am running Red Hat Linux 9 2.4.20-8 >> User mode Linux Patch 2.4.27-1 >> Remote Terminal Putty > >On windows? well, there are also Xservers on Windows (the cygwin one for >instance)... >-- >Paolo Giarrusso, aka Blaisorblade >Linux registered user n. 292729 >http://www.user-mode-linux.org/~blaisorblade > >-- >This message has been scanned for content and >viruses by the DIT Information Services MailScanner >Service, and is believed to be clean. >http://www.dit.ie -- This message has been scanned for content and viruses by the DIT Information Services MailScanner Service, and is believed to be clean. http://www.dit.ie --- -- Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
Re: [uml-user] 2.4.28 guest kernel Oops on FC3 host
[EMAIL PROTECTED] said: > I'm trying to run a 2.4.28 guest kernel (with SKAS) on FC3 and it > blows up almost immediately in the boot process with: I've had all sorts of problems with FC3 hosts (on x86_64, but it looks like i386 is just as broken). There was a 2.6.9 kernel that worked OK, and I just dropped back to it when an update gave me yet another broken host kernel. FWIW, the current kernel seems OK. Jeff --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
Re: [uml-user] 2.4.28 guest kernel Oops on FC3 host
On Thursday 03 February 2005 18:21, Net Llama! wrote: > I'm trying to run a 2.4.28 guest kernel (with SKAS) on FC3 and it blows up > almost immediately in the boot process with: > > Checking that ptrace can change system call numbers...<0> > Kernel panic: > check_ptrace : expected SIGTRAP, got status = 256 > In idle task - not syncing > <6>SysRq : Show Regs > EIP: :[<>] CPU: 0 Not tainted EFLAGS: > Not tainted > EAX: EBX: ECX: EDX: > ESI: EDI: EBP: DS: ES: > Call Trace: [<0805d5fa>] [<08054c8b>] [<0804ca09>] [<080bf294>] > [<0804cfb9>] [<080494b2>] [<080bf294>] [<08049459>] [<080bf2b9>] > [<080bf294>] [<080b9595>] [<080bf294>] [<080b9574>] [<080bf294>] > [<080bf065>] [<080bf294>] [<080bea11>] > > This seems to be a FC3 related issue, as the same kernel boots ok on RHES3 > and RH9 hosts. Anyone seen this problem before, or know of a solution? I've seen (not personally, by reports) such problems on FC3, too... No idea about solutions, sorry. -- Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
Re: [uml-user] uml insmod fc2
On Sunday 30 January 2005 06:33, chill bill wrote: > Hi: > I'm really amazed by how to insmod my owen module with UML > Now, I'm doing kernel programming about how to improve buddy=20 > Using UML-path-2.6.9-bb4 rootfs=3Droot_fs.fc2-pritstine-client > So, the version about gcc, insmod-tools, make were the same! > But, when I make the kernel(in 2.6.9) module ok in my host >also can insmod *.ko normally=20 > (insmod buddy_frq.ko) > copy it to uml , then failed , such error message : Do you think a binary kernel module can work unmodified with UML? Think really hard before answering... and after answering "no", try building it against the UML kernel, not against the host one. > buddy_frq: version magic '2.6.9 PENTIUMII REGPARM gcc-3.3' should be > '2.6= > .9-bb4 gcc-3.3' insmod: error inserting 'buddy_frq.ko': -1 Invalid > module= > format=20 > >could you help me? thanks >best wishes -- Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
Re: [uml-user] 2.4.28 guest kernel Oops on FC3 host
On Thu, 3 Feb 2005, Jeff Dike wrote: > [EMAIL PROTECTED] said: > > I'm trying to run a 2.4.28 guest kernel (with SKAS) on FC3 and it > > blows up almost immediately in the boot process with: > > I've had all sorts of problems with FC3 hosts (on x86_64, but it looks like > i386 is just as broken). There was a 2.6.9 kernel that worked OK, and I just > dropped back to it when an update gave me yet another broken host kernel. I honestly didn't know that I could use the FC3 kernels for the host. I had built my own vanilla 2.6.10 with the assorted 'bb' patches. Do i need to rebuild the FC3 kernel RPM with UML patches applied, or does the standard FC3 kernel already have full SKAS support? > FWIW, the current kernel seems OK. kernel-2.6.10-1.760 ? -- ~~ Lonni J Friedman[EMAIL PROTECTED] LlamaLand http://netllama.linux-sxs.org --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
Re: [uml-user] 2.4.28 guest kernel Oops on FC3 host
On Thursday 03 February 2005 20:03, Net Llama! wrote: > On Thu, 3 Feb 2005, Jeff Dike wrote: > > [EMAIL PROTECTED] said: > > > I'm trying to run a 2.4.28 guest kernel (with SKAS) on FC3 and it > > > blows up almost immediately in the boot process with: > > > > I've had all sorts of problems with FC3 hosts (on x86_64, but it looks > > like i386 is just as broken). There was a 2.6.9 kernel that worked OK, > > and I just dropped back to it when an update gave me yet another broken > > host kernel. > > I honestly didn't know that I could use the FC3 kernels for the host. I > had built my own vanilla 2.6.10 with the assorted 'bb' patches. Do i need > to rebuild the FC3 kernel RPM with UML patches applied, or does the > standard FC3 kernel already have full SKAS support? IIRC not... (someone posted / discussed about "ported" patches for the FC3 kernel). > > FWIW, the current kernel seems OK. > > kernel-2.6.10-1.760 ? -- Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
Re: [uml-user] The console drops characters
On Saturday 29 January 2005 13:29, Andre Majorel wrote: > My UML's virtual consoles drop characters. If I connect to a UML > console (E.G. "screen /dev/pts/4") and cat a small file, parts of > it don't show. If I type too fast, some of the keystrokes are lost > (or perhaps just not echoed, I'm not sure). I think not echoed... please verify by typing a "echo blalalalalla" command, if possible. The fix I'm working on only cares about not echoed characters, so it is important for me to get info about this. > The problem can be reproduced both remotely (ssh host) and locally > (logged in at one of the hosts virtual consoles, E.G. /dev/tty2) > Has anyone seen this ? I saw no mention of anything similar in the > FAQ. It's not a FAQ definitely... Rob Landley reported this not long ago, and I've just started fixing it. I've found time ago a locking problem (causing race conditions) which could also give symptoms like the one you both see. However, to my surprise, I've never seen reports about it until recently, when you both complained... what I think is that the race condition was not triggered before for different, timing-related changes. I'm working on a patch on the locking issue, however that patch won't be in 2.6.11 release because an error in the changed locking could have freezes as consequence. > Running UML with con=pts con0=fd:0,fd:1. Both the UML and the host > are version 2.6.10 from kernel.org. -- Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
Re: [uml-user] 2.4.28 guest kernel Oops on FC3 host
[EMAIL PROTECTED] said: > I honestly didn't know that I could use the FC3 kernels for the host. > I had built my own vanilla 2.6.10 with the assorted 'bb' patches. Do > i need to rebuild the FC3 kernel RPM with UML patches applied, or does > the standard FC3 kernel already have full SKAS support? No, it doesn't. I've been playing with skas0 on this box, so I haven't needed the skas patch for it. > kernel-2.6.10-1.760 ? 2.6.10-1.741_FC3smp is what I have right now. And, I have to be less certain that it's a good one. I'm running stock 2.6.10 now, and that seems OK, and I think the FC3 1.760 is OK too, but not positive. --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
[uml-user] UMl and gdb?
Hello! I've been tring to use gdb within UML. Is it supported/possible? when I try I get this: kernel BUG at mm/memory.c:891! Kernel panic - not syncing: BUG! EIP: 0073:[<4017e7ac>] CPU: 0 Not tainted ESP: 007b:b03c EFLAGS: 0293 Not tainted EAX: ffda EBX: 0001 ECX: 0137 EDX: e000 ESI: b03c EDI: EBP: b048 DS: 007b ES: 007b Call Trace: 16cdba40: [<08086f2d>] notifier_call_chain+0x2d/0x50 16cdba60: [<080787b2>] panic+0x72/0x120 16cdba80: [<080a394b>] get_user_pages+0x15b/0x370 16cdbab0: [<08081ad0>] access_process_vm+0x90/0x1b0 16cdbb00: [<0805d29a>] sys_ptrace+0x11a/0x580 16cdbb20: [<080601b8>] handle_page_fault+0x168/0x200 16cdbb60: [<08060380>] segv+0x90/0x280 16cdbba0: [<08062b3a>] execute_syscall_skas+0xaa/0xb0 16cdbbf0: [<0805eb12>] unblock_signals+0x12/0x20 16cdbc10: [<0805f219>] record_syscall_start+0x59/0x70 16cdbc30: [<08062b78>] handle_syscall+0x38/0x70 16cdbc50: [<08061c1a>] handle_trap+0x2a/0x130 16cdbc60: [<08072201>] save_registers+0x41/0x80 16cdbc80: [<08062151>] userspace+0x231/0x240 16cdbcd0: [<08063026>] force_flush_all_skas+0x36/0x40 16cdbcf0: [<080627f3>] fork_handler+0xb3/0xd0 then UML exits.. :) any ideas? the guest is 2.6.11-rc3, and I've tried to run vmlinux inside gdb, but gdb says: Program exited with code 01. (gdb) bt No stack. so.. :) any clues? Regards, -- Zoltan NAGY, Software Engineer --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
Re: [uml-user] 2.4.28 guest kernel Oops on FC3 host
On Thu, 3 Feb 2005, Jeff Dike wrote: > [EMAIL PROTECTED] said: > > I honestly didn't know that I could use the FC3 kernels for the host. > > I had built my own vanilla 2.6.10 with the assorted 'bb' patches. Do > > i need to rebuild the FC3 kernel RPM with UML patches applied, or does > > the standard FC3 kernel already have full SKAS support? > > No, it doesn't. I've been playing with skas0 on this box, so I haven't needed > the skas patch for it. pardon my ignorance, but what is skas0, and where or how can i impliment it? > > kernel-2.6.10-1.760 ? > > 2.6.10-1.741_FC3smp is what I have right now. And, I have to be less certain > that it's a good one. I'm running stock 2.6.10 now, and that seems OK, and > I think the FC3 1.760 is OK too, but not positive. I guess this loops back to my question about on skas0, since i'm running a 2.6.10 stock kernel. thanks. -- ~~ Lonni J Friedman[EMAIL PROTECTED] LlamaLand http://netllama.linux-sxs.org --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
Re: [uml-user] 2.4.28 guest kernel Oops on FC3 host
[EMAIL PROTECTED] said: > pardon my ignorance, but what is skas0, and where or how can i > impliment it? See my incremental patches page - http://user-mode-linux.sf.net/patches.html In short, it's a BlaisorBlade brainstorm (idea by him, implementation by me and Bodo) which gives you some of the performance and all of the security of skas, without needing to patch the host. Jeff --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
Re: [uml-user] 2.4.28 guest kernel Oops on FC3 host
On 02/03/2005 06:48 PM, Jeff Dike wrote: [EMAIL PROTECTED] said: pardon my ignorance, but what is skas0, and where or how can i impliment it? See my incremental patches page - http://user-mode-linux.sf.net/patches.html In short, it's a BlaisorBlade brainstorm (idea by him, implementation by me and Bodo) which gives you some of the performance and all of the security of skas, without needing to patch the host. Interesting, thanks. Unless i'm missing someething, this looks like its for a 2.6.x guest kernel only? -- ~ L. Friedman[EMAIL PROTECTED] Linux Step-by-step & TyGeMo:http://netllama.ipfox.com 16:35:01 up 33 days, 0 min, 1 user, load average: 1.11, 1.24, 0.83 --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
Re: [uml-user] The console drops characters
On 2005-02-03 21:46 +0100, Blaisorblade wrote: > On Saturday 29 January 2005 13:29, Andre Majorel wrote: > > > My UML's virtual consoles drop characters. If I connect to a UML > > console (E.G. "screen /dev/pts/4") and cat a small file, parts of > > it don't show. If I type too fast, some of the keystrokes are lost > > (or perhaps just not echoed, I'm not sure). > > I think not echoed... please verify by typing a "echo blalalalalla" > command, if possible. The fix I'm working on only cares about not > echoed characters, so it is important for me to get info about this. Just checked. I've had several occurrences of not-echoed and one occurrence of not-seen (but that may be my flaky return key). Thank you. -- André Majorel http://www.teaser.fr/~amajorel/> Do not use this account for regular correspondence. See the URL above for contact information. --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
Re: [uml-user] UMl and gdb?
[EMAIL PROTECTED] said: > I've been tring to use gdb within UML. Is it supported/possible? Sure: usermode:~# gdb getpid GNU gdb 19990928 Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu"... (gdb) l 1 int main(){ 2 int i; 3 4 for(i=0;i<100;i++) 5 getpid(); 6 } (gdb) b 5 Breakpoint 1 at 0x8048400: file getpid.c, line 5. (gdb) r Starting program: /root/getpid Breakpoint 1, main () at getpid.c:5 5 getpid(); (gdb) c Continuing. Breakpoint 1, main () at getpid.c:5 5 getpid(); How about some more details? Jeff --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
Re: [uml-user] Sharing a filesystem between UMLs
On 2005-02-02 19:22 -0800, Todd A. Jacobs wrote: > On Wed, Feb 02, 2005 at 11:08:17PM +0100, Andre Majorel wrote: > > > Would you rate hostfs as more or less secure than NFS ? > > Depends on your point of view, but I'd say hostfs is less secure. By > definition, you're giving a UML process access to the host in this > scenario, which seems less than airtight. > > A well-secured NFS implementation running inside UML would seem to be a > more secure alternative, at least from the host system's point of view. > YMMV. I hadn't thought of putting the NFS server in a UML. Although the spoofing issue remains, that's better than what I had in mind. It's not clear to me why a VFS API would be easier to exploit than a TCP/IP stack and a set of four or five daemons implementing a protocol than wasn't designed with security in mind but I'm too ignorant to argue either way. Got to look into shfs too. Thank you all for the advice. -- André Majorel http://www.teaser.fr/~amajorel/> Do not use this account for regular correspondence. See the URL above for contact information. --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
Re: [uml-user] 2.4.28 guest kernel Oops on FC3 host
On Friday 04 February 2005 01:40, Net Llama! wrote: > On 02/03/2005 06:48 PM, Jeff Dike wrote: > > [EMAIL PROTECTED] said: > >>pardon my ignorance, but what is skas0, and where or how can i > >>impliment it? > > > > See my incremental patches page - > > http://user-mode-linux.sf.net/patches.html > > > > In short, it's a BlaisorBlade brainstorm (idea by him, implementation by > > me and Bodo) which gives you some of the performance and all of the > > security of skas, without needing to patch the host. > > Interesting, thanks. Unless i'm missing someething, this looks like its > for a 2.6.x guest kernel only? Yes, and still development - only (welcome as a tester, not for production use)... given its "development" status, I don't think that it will be back-ported to 2.4 guests... if you want absolute stability you won't run skas0 anyway. Also, 2.4 is lagging *a lot*, since new development has to happen on 2.6 (and just keeping up-to-date is very time-consuming). -- Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
Re: [uml-user] 2.4.28 guest kernel Oops on FC3 host
[EMAIL PROTECTED] said: > Interesting, thanks. Unless i'm missing someething, this looks like > its for a 2.6.x guest kernel only? What you're missing is that I'm in the process of porting the 2.6 patches back to 2.4, so this will show up there at some point. Jeff --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
Re: [uml-user] Fwd: RE: [uml-devel] UML remote GUI problems
Did you set tightvnc up to use port 5900 as well? On Thu, 3 Feb 2005, Blaisorblade wrote: I'm forwarding this to the list because I've not the time to look at every UML user issue, and especially not now. I hope someone else can help you. -- Forwarded Message -- Subject: RE: [uml-devel] UML remote GUI problems Date: Thursday 03 February 2005 20:24 From: Greg Furlong <[EMAIL PROTECTED]> To: Blaisorblade <[EMAIL PROTECTED]> I have sshd running on the Linux machine and then i tried to run port forwarding through putty on port 5900. I then ran the command export DISPLAY=host-ip. I then used tightVNC to connect to the ip address that i had assigned while setting up the port forwarding. I keep getting an error Failed to server address. Did you type the address correctly. Regards = Original Message From Blaisorblade <[EMAIL PROTECTED]> = On Friday 28 January 2005 17:30, Greg Furlong wrote: I am a final year student taking a degree in Computing at Dublin Institute of Technology - Ireland. In my final year project I am doing a project using User Mode Linux. My project has set out to research the capabilities of User Mode Linux in a teaching environment. So far I have set up a server and now have users logging on from a terminal. They use a COW file so as not to corrupt the file system. Next I want to investigate and test the capabilities of User Mode Linux over a network using a Graphical User Interface. The problem that I am having is that I am finding it difficult to set up the GUI system. I was wondering if anybody could give me some pointers in the right direction Without knowing which are your difficulties? It's difficult. or could tell me of a tutorial on how to set it up. I have already looked at the user mode Linux website on sourceforge but have been unable to successfully complete the GUI instructions. What's the problem? You must install Xnest inside your guest system... it will then be able to forward connection to another X system (on which you have to authorize TCP connections from the UML system). Then it should work, more or less. I am running Red Hat Linux 9 2.4.20-8 User mode Linux Patch 2.4.27-1 Remote Terminal Putty On windows? well, there are also Xservers on Windows (the cygwin one for instance)... -- Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade -- This message has been scanned for content and viruses by the DIT Information Services MailScanner Service, and is believed to be clean. http://www.dit.ie -- This message has been scanned for content and viruses by the DIT Information Services MailScanner Service, and is believed to be clean. http://www.dit.ie --- --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
Re: [uml-user] UMl and gdb?
Jeff Dike wrote: How about some more details? here it goes... the program I'm tring to debug is at http://nagyz.nefty.hu/uml/ I start the guest: [EMAIL PROTECTED]:~/uml$ linux/vmlinux ubd0=root mem=256M con0=null,fd:2 con1=fd:0,fd:1 eth0=tuntap,,,192.168.1.1 Checking for /proc/mm...found Checking for the skas3 patch in the host...found Checking PROT_EXEC mmap in /tmp...OK Linux version 2.6.11-rc3 ([EMAIL PROTECTED]) (gcc version 3.3.5 (Debian 1:3.3.5-8)) #1 Thu Feb 3 20:28:14 CET 2005 ... Debian GNU/Linux 3.1 devbox tty1 devbox login: connect it up: devbox:~# ifconfig lo 127.0.0.1 up devbox:~# ifconfig eth0 192.168.1.2 up * modprobe tun FATAL: Module tun not found. * ifconfig tap0 192.168.1.1 netmask 255.255.255.255 up * bash -c echo 1 > /proc/sys/net/ipv4/ip_forward * route add -host 192.168.1.2 dev tap0 * bash -c echo 1 > /proc/sys/net/ipv4/conf/tap0/proxy_arp devbox:~# route add default gw 192.168.1.1 devbox:~# ssh into it, export DISPLAY=someothermachine:0, then make, and gdb ./test: devbox:~/t# make gcc -O3 -W -Wall -ggdb `sdl-config --cflags` `sdl-config --libs` -o test test.c devbox:~/t# export DISPLAY=212.40.116.85:0 devbox:~/t# gdb ./test GNU gdb 6.3-debian Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-linux"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) r Starting program: /root/t/test ssh stops.. having a look at the guest's main window... it blowed! kernel BUG at mm/memory.c:891! Kernel panic - not syncing: BUG! EIP: 0073:[<4017e7ac>] CPU: 0 Not tainted ESP: 007b:b05c EFLAGS: 0293 Not tainted EAX: ffda EBX: 0001 ECX: 018f EDX: e000 ESI: b05c EDI: EBP: b068 DS: 007b ES: 007b Call Trace: 1724fa40: [<08086f2d>] notifier_call_chain+0x2d/0x50 1724fa60: [<080787b2>] panic+0x72/0x120 1724fa80: [<080a394b>] get_user_pages+0x15b/0x370 1724fab0: [<08081ad0>] access_process_vm+0x90/0x1b0 1724fb00: [<0805d29a>] sys_ptrace+0x11a/0x580 1724fb20: [<080601b8>] handle_page_fault+0x168/0x200 1724fb60: [<08060380>] segv+0x90/0x280 1724fba0: [<08062b3a>] execute_syscall_skas+0xaa/0xb0 1724fc10: [<0805f219>] record_syscall_start+0x59/0x70 1724fc30: [<08062b78>] handle_syscall+0x38/0x70 1724fc50: [<08061c1a>] handle_trap+0x2a/0x130 1724fc60: [<08072201>] save_registers+0x41/0x80 1724fc80: [<08062151>] userspace+0x231/0x240 1724fcd0: [<08063026>] force_flush_all_skas+0x36/0x40 1724fcf0: [<080627f3>] fork_handler+0xb3/0xd0 * route del -host 192.168.1.2 dev tap0 * bash -c echo 0 > /proc/sys/net/ipv4/conf/tap0/proxy_arp [EMAIL PROTECTED]:~/uml$ that's all... I could not get more info out of it.. but I'd like to know if there's anything more I could do to help. Regards, -- Zoltan NAGY, Software Engineer --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
Re: [uml-user] UMl and gdb?
On Friday 04 February 2005 07:21, Zoltan NAGY wrote: > Jeff Dike wrote: > >How about some more details? > > here it goes... > > the program I'm tring to debug is at http://nagyz.nefty.hu/uml/ > I start the guest: > [EMAIL PROTECTED]:~/uml$ linux/vmlinux ubd0=root mem=256M con0=null,fd:2 > con1=fd:0,fd:1 eth0=tuntap,,,192.168.1.1 > Checking for /proc/mm...found > Checking for the skas3 patch in the host...found > Checking PROT_EXEC mmap in /tmp...OK > Linux version 2.6.11-rc3 ([EMAIL PROTECTED]) (gcc version 3.3.5 (Debian > 1:3.3.5-8)) #1 Thu Feb 3 20:28:14 CET 2005 > This GDB was configured as "i386-linux"...Using host libthread_db > library "/lib/libthread_db.so.1". No TLS it seems, luckily. > (gdb) r > Starting program: /root/t/test > ssh stops.. having a look at the guest's main window... it blowed! > kernel BUG at mm/memory.c:891! > Kernel panic - not syncing: BUG! > Call Trace: > 1724fa40: [<08086f2d>] notifier_call_chain+0x2d/0x50 > 1724fa60: [<080787b2>] panic+0x72/0x120 > 1724fa80: [<080a394b>] get_user_pages+0x15b/0x370 > 1724fab0: [<08081ad0>] access_process_vm+0x90/0x1b0 > 1724fb00: [<0805d29a>] sys_ptrace+0x11a/0x580 > 1724fb20: [<080601b8>] handle_page_fault+0x168/0x200 > 1724fb60: [<08060380>] segv+0x90/0x280 > 1724fba0: [<08062b3a>] execute_syscall_skas+0xaa/0xb0 > 1724fc10: [<0805f219>] record_syscall_start+0x59/0x70 > 1724fc30: [<08062b78>] handle_syscall+0x38/0x70 > 1724fc50: [<08061c1a>] handle_trap+0x2a/0x130 > 1724fc60: [<08072201>] save_registers+0x41/0x80 > 1724fc80: [<08062151>] userspace+0x231/0x240 > 1724fcd0: [<08063026>] force_flush_all_skas+0x36/0x40 > 1724fcf0: [<080627f3>] fork_handler+0xb3/0xd0 > > that's all... > > I could not get more info out of it.. but I'd like to know if there's > anything more I could do to help. What's the status of CONFIG_3_LEVEL_PGTABLES? I'm asking because the BUG'ing line reads like this: get_user_pages(...) ... BUG_ON(pgd_none(*pgd)); pud = pud_offset(pgd, pg); BUG_ON(pud_none(*pud)); pmd = pmd_offset(pud, pg); BUG_ON(pmd_none(*pmd)); //this IS line 891. pte = pte_offset_map(pmd, pg); BUG_ON(pte_none(*pte)); From my patchlist, I'm going to choose a patch which changes somethings which actually relate to this bug... if it does not work, then retest both by enabling and disablign the above CONFIG_ option. Hope this helps! -- Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade From: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]>, Jeff Dike <[EMAIL PROTECTED]> The previous ifdef to check whether to use the host's vsyscall page was buggy. This bug can cause crashes. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> --- linux-2.6.11-paolo/arch/um/Kconfig_i386 |4 linux-2.6.11-paolo/arch/um/Kconfig_x86_64 |4 linux-2.6.11-paolo/arch/um/kernel/mem.c | 12 3 files changed, 16 insertions(+), 4 deletions(-) diff -puN arch/um/Kconfig_i386~uml-vsyscall arch/um/Kconfig_i386 --- linux-2.6.11/arch/um/Kconfig_i386~uml-vsyscall 2005-02-04 06:22:14.731673232 +0100 +++ linux-2.6.11-paolo/arch/um/Kconfig_i386 2005-02-04 06:22:14.738672168 +0100 @@ -18,3 +18,7 @@ config 3_LEVEL_PGTABLES config ARCH_HAS_SC_SIGNALS bool default y + +config ARCH_REUSE_HOST_VSYSCALL_AREA + bool + default y diff -puN arch/um/Kconfig_x86_64~uml-vsyscall arch/um/Kconfig_x86_64 --- linux-2.6.11/arch/um/Kconfig_x86_64~uml-vsyscall 2005-02-04 06:22:14.733672928 +0100 +++ linux-2.6.11-paolo/arch/um/Kconfig_x86_64 2005-02-04 06:22:14.739672016 +0100 @@ -9,3 +9,7 @@ config 3_LEVEL_PGTABLES config ARCH_HAS_SC_SIGNALS bool default n + +config ARCH_REUSE_HOST_VSYSCALL_AREA + bool + default n diff -puN arch/um/kernel/mem.c~uml-vsyscall arch/um/kernel/mem.c --- linux-2.6.11/arch/um/kernel/mem.c~uml-vsyscall 2005-02-04 06:22:14.735672624 +0100 +++ linux-2.6.11-paolo/arch/um/kernel/mem.c 2005-02-04 06:22:14.739672016 +0100 @@ -152,6 +152,7 @@ void __init kmap_init(void) static void init_highmem(void) { pgd_t *pgd; + pud_t *pud; pmd_t *pmd; pte_t *pte; unsigned long vaddr; @@ -163,7 +164,8 @@ static void init_highmem(void) fixrange_init(vaddr, vaddr + PAGE_SIZE*LAST_PKMAP, swapper_pg_dir); pgd = swapper_pg_dir + pgd_index(vaddr); - pmd = pmd_offset(pgd, vaddr); + pud = pud_offset(pgd, vaddr); + pmd = pmd_offset(pud, vaddr); pte = pte_offset_kernel(pmd, vaddr); pkmap_page_table = pte; @@ -173,9 +175,10 @@ static void init_highmem(void) static void __init fixaddr_user_init( void) { -#if FIXADDR_USER_START != 0 +#if CONFIG_ARCH_REUSE_HOST_VSYSCALL_AREA long size = FIXADDR_USER_END - FIXADDR_USER_START; pgd_t *pgd; + pud_t *pud; pmd_t *pmd; pte_t *pte; unsigned long paddr, vaddr = FIXADDR_USER_START; @@ -187,9 +190,10 @@ static void __init fixaddr_u
Re: [uml-user] privilege escalation?
On Thursday 13 January 2005 19:28, Frank 'xraz' Fricke wrote: > Hi List! > I built UML from 2.6.10 sources with no additional uml-specific patches. > My Host is also 2.6.10 with skas. I discovered that when (my) uml is > running as root _every_ user-id inside the uml may chmod _every_ file on a > hostfs mount and therfore become root etc... I've verified that what you say is indeed true and if it happens on other releases. The current result, in fact, is that on both 2.6.9-bb4, 2.6.10 (I actually tested onto the -bs5, but there cannot be any difference), what you say does happen: [EMAIL PROTECTED]:~ (0)$ chmod 4755 /bin/bash chmod: changing permissions of `/bin/bash': Operation not permitted [EMAIL PROTECTED]:~ (0)$ chmod 4755 /mnt/host/bin/bash [EMAIL PROTECTED]:~ (0)$ ll /mnt/host/bin/bash -rwsr-xr-x 1 root root 662724 2004-10-20 02:15 /mnt/host/bin/bash* > This also happens if the hostfs mount is not the root-fs. > Is the following behaviour desired? Surely not, I hope! However, remember that UML is often best run as unprivileged user and inside one chroot. > If not: what could cause it? Well, there is little that you can setup about this issue, apart the fact of running UML itself as root - I've longly had the idea to add a check to prevent UML from being run as root... (or at least give a very verbose warning about the potential problems). That said, this is one UML bug. > [EMAIL PROTECTED]:~$ grep root /proc/mounts > rootfs / rootfs rw 0 0 > /dev/root / hostfs rw 0 0 > > [EMAIL PROTECTED]:~$ id > uid=1000(xraz) gid=104(xraz) groups=104(xraz),9997(chefs) > > [EMAIL PROTECTED]:~$ ls -la /bin/dash > -rwxr-xr-x 1 root root 83960 Aug 22 20:28 /bin/dash > > [EMAIL PROTECTED]:~$ chmod 4755 /bin/dash > > [EMAIL PROTECTED]:~$ ls -la /bin/dash > -rwsr-xr-x 1 root root 83960 Aug 22 20:28 /bin/dash > > [EMAIL PROTECTED]:~$ /bin/dash -c id > uid=1000(xraz) gid=104(xraz) euid=0(root) groups=104(xraz),9997(chefs) > What is going wrong? > Because i suppose this is a local error and not an uml-bug i don't yet > include debuginfo about my uml & system here. Well, this was not known to me, and surely is not intended... However I don't think for now that such info is needed. That said, it has been longly-known that every user inside UML can create file as the user running UML, in hostfs, even if that is root - that is not considered to be a problem. I had tried to creat() a file with the S_ISUID (i.e. to make it suid) hoping that UML would have created a setuid file (as root since I ran UML as root), but the test failed because UML had an explicit check for such exploits, which disallowed this. -- Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
[uml-user] Re: [uml-devel] Re: [POLL] Putting UML/2.4 into "fixes-only" mode
On Saturday 29 January 2005 06:39, you wrote: > [EMAIL PROTECTED] said: > > It's a huge work, but what is more important, it could obviously hurt > > stability... > Yes. > > So, I'd suggest to follow this policy to choose the work to merge: > > > > - reduce *a lot* what is going to be merged... no new features, no > > code cleanups (especially NOT the Makefiles cleanups)... > > > > - concentrate on stability... and on backing out the hostfs rewrite. > This makes all kinds of sense. But, from my point of view, if I'm going > maintain both 2.4 and 2.6 trees, I want them to be as similar as possible. > We can go through the patches, and I got a nice list of them, and I was > planning on going through them and applying all of the ones that made sense > in 2.4. > So, your proposal makes sense from the point of a large number of users, > but you're signing me up for a whole lot of extra work. So, I'm not too > inclined to run a stability 2.4 tree, as much sense as it makes. > Are you? Or someone else? I've got this nice list of patches, and I'll > be happy to go through them and categorize them in terms of their effects > on stability. Well, there are two things that you can do to *avoid* increasing your work: - avoid backporting cleanups, like the bh one... it's just lost time. - avoid if possible to backport new features... - concentrate on the recent security fixes, if possible... the syscall-security-1/6 fixes were not enough on 2.6 to fix everything, so for me it's evident they cannot suffice on 2.4. Also, it's not the kind of work which is easy to delegate (to me at least) - those patches hack the UML core and I've not followed them well - for missing time and for their difficulty. Also, now, I'm doing some more work on the 2.4 tree - I've some fixes I found useful, like the 2.6.4 scheduler fixes which weren't merged in 2.4 and some more recent ones. I did that to try fixing the /dev/urandom bug, before realizing that the problem is in some code related to the urandom driver... the reported panic is just a "scheduling in interrupt" one. It means also that the problem is due probably to something in UML that is used by the driver. Suggestions: - timing code - interrupt code (they are entropy sources). -- Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade --- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl ___ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user