Luis Henriques | 10 Dec 15:29 2013

[3.5.y.z extended stable] Patch "um: add missing declaration of 'getrlimit()' and friends" has been added to staging queue

This is a note to let you know that I have just added a patch titled

    um: add missing declaration of 'getrlimit()' and friends

to the linux-3.5.y-queue branch of the 3.5.y.z extended stable tree 
which can be found at:

 http://kernel.ubuntu.com/git?p=ubuntu/linux.git;a=shortlog;h=refs/heads/linux-3.5.y-queue

If you, or anyone else, feels it should not be added to this tree, please 
reply to this email.

For more information about the 3.5.y.z tree, see
https://wiki.ubuntu.com/Kernel/Dev/ExtendedStable

Thanks.
-Luis

------

From e79e33d9a4e1a528efc11b7cc3d5eba0871451f8 Mon Sep 17 00:00:00 2001
From: Sergei Trofimovich <slyfox <at> gentoo.org>
Date: Sun, 30 Dec 2012 01:37:30 +0300
Subject: um: add missing declaration of 'getrlimit()' and friends

commit fdfa4c952844fce881df8c76de9c7180cbe913ab upstream.

arch/um/os-Linux/start_up.c: In function 'check_coredump_limit':
arch/um/os-Linux/start_up.c:338:16: error: storage size of 'lim' isn't known
arch/um/os-Linux/start_up.c:339:2: error: implicit declaration of function 'getrlimit' [-Werror=implicit-function-declaration]
(Continue reading)

Tamil Mani | 21 Nov 13:00 2013
Picon

Re: [uml-user] Building UML with busybox as root file system

thank you. got it :)


On Tue, Nov 19, 2013 at 8:58 PM, Teto <mattator <at> gmail.com> wrote:

Have you tried setting your init to the busybox binary ? try adding
"init=<pathToBusyboxInYourFileSystem>" o nthe command line

2013/11/19 Tamil Mani <rf.tamilmani <at> gmail.com>:
> Hi ,
> I downloaded the latest version of linux-3.11.8 ,configured it as UML and
> got the statically compiled binary (linux).
>
> Then i downloaded the latest busybox 1.21.1 and compiled with default
> configuration. Then i converted the busybox binary into a  ext4 filesystem.
>
> while running linux as UML,
>
> ./linux ubda=./busybox mem=128M
>
> i'm getting the following error
>
>  EXT4-fs (ubda): mounted filesystem with ordered data mode. Opts: (null)
> [    1.170000] VFS: Mounted root (ext4 filesystem) readonly on device 98:0.
> [    1.170000] Kernel panic - not syncing: No init found.  Try passing init=
> option to kernel. See Linux Documentation/init.txt for guidance.
> [    1.170000] CPU: 0 PID: 1 Comm: swapper Not tainted 3.11.8 #6
> [    1.170000] 67c3fe78 67c3feb0 60058699 6004c888 60600531 00000000
> 00000000 67c3fec0
> [    1.170000]        604f6fe3 67c3ffc0 604f1e3b 00000000 3000000008
> 67c3ffd0 67c3fef0 657fe900
> [    1.170000]        6004c888 00000f76 6004c888 00000003 67c3fe40 60600529
> fffffffe 67c3ffa0
> [    1.170000] Call Trace:
> [    1.170000] 67c3fe88:  [<60058699>] dump_stack_print_info+0xa5/0xae
> [    1.170000] 67c3fe90:  [<6004c888>] put_cred_rcu+0x0/0xa4
> [    1.170000] 67c3feb8:  [<604f6fe3>] dump_stack+0x17/0x19
> [    1.170000] 67c3fec8:  [<604f1e3b>] panic+0xf7/0x1ee
> [    1.170000] 67c3fef8:  [<6004c888>] put_cred_rcu+0x0/0xa4
> [    1.170000] 67c3ff08:  [<6004c888>] put_cred_rcu+0x0/0xa4
> [    1.170000] 67c3ff38:  [<600ac7ce>] do_execve_common+0x49b/0x4f0
> [    1.170000] 67c3ff48:  [<6004d600>]
> async_synchronize_cookie_domain+0x56/0x112
> [    1.170000] 67c3ffc8:  [<604f0c88>] kernel_init+0xb6/0xba
> [    1.170000] 67c3ffd8:  [<6001c374>] new_thread_handler+0x7a/0x95
> [    1.170000]
> [    1.170000]
> [    1.170000] Modules linked in:
> [    1.170000] Pid: 1, comm: swapper Not tainted 3.11.8
> [    1.170000] RIP: 0033:[<000000006048c0a7>]
> [    1.170000] RSP: 00007fff11356248  EFLAGS: 00000246
> [    1.170000] RAX: 0000000000000000 RBX: 00000000000048ec RCX:
> ffffffffffffffff
> [    1.170000] RDX: 0000000000000000 RSI: 0000000000000013 RDI:
> 00000000000048ec
> [    1.170000] RBP: 00007fff11356270 R08: 0000000000000000 R09:
> 00007fff11356270
> [    1.170000] R10: 0000000000000000 R11: 0000000000000246 R12:
> 00000000000048e8
> [    1.170000] R13: 00007fff11356458 R14: 00007fff11356e3a R15:
> 0000000000000007
> [    1.170000] Call Trace:
> [    1.170000] 67c3fe38:  [<6001d2f6>] show_trace+0x8e/0x95
> [    1.170000] 67c3fe48:  [<6001e808>] panic_exit+0x2b/0x41
> [    1.170000] 67c3fe68:  [<6004c298>] notifier_call_chain+0x32/0x5c
> [    1.170000] 67c3fea8:  [<6004c2cb>] __atomic_notifier_call_chain+0x9/0xb
> [    1.170000] 67c3feb8:  [<6004c2dc>] atomic_notifier_call_chain+0xf/0x11
> [    1.170000] 67c3fec8:  [<604f1e56>] panic+0x112/0x1ee
> [    1.170000] 67c3fef8:  [<6004c888>] put_cred_rcu+0x0/0xa4
> [    1.170000] 67c3ff08:  [<6004c888>] put_cred_rcu+0x0/0xa4
> [    1.170000] 67c3ff38:  [<600ac7ce>] do_execve_common+0x49b/0x4f0
> [    1.170000] 67c3ff48:  [<6004d600>]
> async_synchronize_cookie_domain+0x56/0x112
> [    1.170000] 67c3ffc8:  [<604f0c88>] kernel_init+0xb6/0xba
> [    1.170000] 67c3ffd8:  [<6001c374>] new_thread_handler+0x7a/0x95
> [    1.170000]
> Aborted
>
> To summarize,i'm getting a kernel panic due to the missing of init. Please
> help me in fixing the problem
>
> Thanks & regards,
> Tamil
>
> ------------------------------------------------------------------------------
> Shape the Mobile Experience: Free Subscription
> Software experts and developers: Be at the forefront of tech innovation.
> Intel(R) Software Adrenaline delivers strategic insight and game-changing
> conversations that shape the rapidly evolving mobile landscape. Sign up now.
> http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
> _______________________________________________
> User-mode-linux-user mailing list
> User-mode-linux-user <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
>


------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
Tamil Mani | 19 Nov 11:23 2013
Picon

[uml-user] Building UML with busybox as root file system

Hi ,
I downloaded the latest version of linux-3.11.8 ,configured it as UML and got the statically compiled binary (linux).

Then i downloaded the latest busybox 1.21.1 and compiled with default configuration. Then i converted the busybox binary into a  ext4 filesystem.

while running linux as UML,

./linux ubda=./busybox mem=128M

i'm getting the following error

 EXT4-fs (ubda): mounted filesystem with ordered data mode. Opts: (null)
[    1.170000] VFS: Mounted root (ext4 filesystem) readonly on device 98:0.
[    1.170000] Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[    1.170000] CPU: 0 PID: 1 Comm: swapper Not tainted 3.11.8 #6
[    1.170000] 67c3fe78 67c3feb0 60058699 6004c888 60600531 00000000 00000000 67c3fec0
[    1.170000]        604f6fe3 67c3ffc0 604f1e3b 00000000 3000000008 67c3ffd0 67c3fef0 657fe900
[    1.170000]        6004c888 00000f76 6004c888 00000003 67c3fe40 60600529 fffffffe 67c3ffa0
[    1.170000] Call Trace:
[    1.170000] 67c3fe88:  [<60058699>] dump_stack_print_info+0xa5/0xae
[    1.170000] 67c3fe90:  [<6004c888>] put_cred_rcu+0x0/0xa4
[    1.170000] 67c3feb8:  [<604f6fe3>] dump_stack+0x17/0x19
[    1.170000] 67c3fec8:  [<604f1e3b>] panic+0xf7/0x1ee
[    1.170000] 67c3fef8:  [<6004c888>] put_cred_rcu+0x0/0xa4
[    1.170000] 67c3ff08:  [<6004c888>] put_cred_rcu+0x0/0xa4
[    1.170000] 67c3ff38:  [<600ac7ce>] do_execve_common+0x49b/0x4f0
[    1.170000] 67c3ff48:  [<6004d600>] async_synchronize_cookie_domain+0x56/0x112
[    1.170000] 67c3ffc8:  [<604f0c88>] kernel_init+0xb6/0xba
[    1.170000] 67c3ffd8:  [<6001c374>] new_thread_handler+0x7a/0x95
[    1.170000]
[    1.170000]
[    1.170000] Modules linked in:
[    1.170000] Pid: 1, comm: swapper Not tainted 3.11.8
[    1.170000] RIP: 0033:[<000000006048c0a7>]
[    1.170000] RSP: 00007fff11356248  EFLAGS: 00000246
[    1.170000] RAX: 0000000000000000 RBX: 00000000000048ec RCX: ffffffffffffffff
[    1.170000] RDX: 0000000000000000 RSI: 0000000000000013 RDI: 00000000000048ec
[    1.170000] RBP: 00007fff11356270 R08: 0000000000000000 R09: 00007fff11356270
[    1.170000] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000000048e8
[    1.170000] R13: 00007fff11356458 R14: 00007fff11356e3a R15: 0000000000000007
[    1.170000] Call Trace:
[    1.170000] 67c3fe38:  [<6001d2f6>] show_trace+0x8e/0x95
[    1.170000] 67c3fe48:  [<6001e808>] panic_exit+0x2b/0x41
[    1.170000] 67c3fe68:  [<6004c298>] notifier_call_chain+0x32/0x5c
[    1.170000] 67c3fea8:  [<6004c2cb>] __atomic_notifier_call_chain+0x9/0xb
[    1.170000] 67c3feb8:  [<6004c2dc>] atomic_notifier_call_chain+0xf/0x11
[    1.170000] 67c3fec8:  [<604f1e56>] panic+0x112/0x1ee
[    1.170000] 67c3fef8:  [<6004c888>] put_cred_rcu+0x0/0xa4
[    1.170000] 67c3ff08:  [<6004c888>] put_cred_rcu+0x0/0xa4
[    1.170000] 67c3ff38:  [<600ac7ce>] do_execve_common+0x49b/0x4f0
[    1.170000] 67c3ff48:  [<6004d600>] async_synchronize_cookie_domain+0x56/0x112
[    1.170000] 67c3ffc8:  [<604f0c88>] kernel_init+0xb6/0xba
[    1.170000] 67c3ffd8:  [<6001c374>] new_thread_handler+0x7a/0x95
[    1.170000]
Aborted

To summarize,i'm getting a kernel panic due to the missing of init. Please help me in fixing the problem

Thanks & regards,
Tamil
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
Thomas Meyer | 5 Nov 21:21 2013
Picon

[uml-user] UML: Get's stuck

Hi,

I'm running Fedora 20 inside a 3.12 UML kernel and the "yum upgrade -y"
command seems to get stuck after a while/few minutes.

Any ideas what's going one here? How to debug this?

It looks like the process running yum is in state ptrace stopped, but
doesn't continue.

The process tree looks also strange:

20330 pts/3    S+     1:18  |   \_ ./linux ubd0=ext3fs.img mem=768M systemd.unit=multi-user.target umid=fedora20
20337 pts/3    S+     0:00  |       \_ ./linux ubd0=ext3fs.img mem=768M systemd.unit=multi-user.target umid=fedora20
20338 pts/3    S+     0:03  |       \_ ./linux ubd0=ext3fs.img mem=768M systemd.unit=multi-user.target
umid=fedora20 
20339 pts/3    S+     0:00  |       \_ ./linux ubd0=ext3fs.img mem=768M systemd.unit=multi-user.target
umid=fedora20 
20347 pts/3    t+     0:00  |       \_ ./linux ubd0=ext3fs.img mem=768M systemd.unit=multi-user.target
umid=fedora20 
20405 pts/3    t+     0:00  |       \_ ./linux ubd0=ext3fs.img mem=768M systemd.unit=multi-user.target
umid=fedora20 
20469 pts/3    t+     0:00  |       \_ ./linux ubd0=ext3fs.img mem=768M systemd.unit=multi-user.target
umid=fedora20 
20615 pts/3    S+     0:00  |       \_ xterm -T Virtual Console #1 (fedora20) -e port-helper -uml-socket /tmp/xterm-pipeiW6d5k
20625 ?        Ss     0:00  |       |   \_ port-helper -uml-socket /tmp/xterm-pipeiW6d5k
20626 ?        Zs     0:00  |       \_ [linux] <defunct>
20630 pts/3    t+     0:00  |       \_ ./linux ubd0=ext3fs.img mem=768M systemd.unit=multi-user.target
umid=fedora20 
20642 pts/3    t+     0:00  |       \_ ./linux ubd0=ext3fs.img mem=768M systemd.unit=multi-user.target
umid=fedora20 
20650 pts/3    t+     0:00  |       \_ ./linux ubd0=ext3fs.img mem=768M systemd.unit=multi-user.target
umid=fedora20 
20651 pts/3    t+     0:00  |       \_ ./linux ubd0=ext3fs.img mem=768M systemd.unit=multi-user.target
umid=fedora20 
20663 pts/3    t+     0:00  |       \_ ./linux ubd0=ext3fs.img mem=768M systemd.unit=multi-user.target
umid=fedora20 
20681 pts/3    t+     0:00  |       \_ ./linux ubd0=ext3fs.img mem=768M systemd.unit=multi-user.target
umid=fedora20 
20684 pts/3    t+     0:00  |       \_ ./linux ubd0=ext3fs.img mem=768M systemd.unit=multi-user.target
umid=fedora20 
20690 pts/3    t+     0:00  |       \_ ./linux ubd0=ext3fs.img mem=768M systemd.unit=multi-user.target
umid=fedora20 
20691 pts/3    t+     0:00  |       \_ ./linux ubd0=ext3fs.img mem=768M systemd.unit=multi-user.target
umid=fedora20 
20699 pts/3    t+     0:00  |       \_ ./linux ubd0=ext3fs.img mem=768M systemd.unit=multi-user.target
umid=fedora20 
20709 pts/3    t+     0:00  |       \_ ./linux ubd0=ext3fs.img mem=768M systemd.unit=multi-user.target
umid=fedora20 
20722 pts/3    t+     0:00  |       \_ ./linux ubd0=ext3fs.img mem=768M systemd.unit=multi-user.target
umid=fedora20 
20754 pts/3    S+     0:00  |       \_ xterm -T Virtual Console #2 (fedora20) -e port-helper -uml-socket /tmp/xterm-pipetxRIbS
20757 ?        Ss     0:00  |       |   \_ port-helper -uml-socket /tmp/xterm-pipetxRIbS
20755 pts/3    S+     0:00  |       \_ xterm -T Virtual Console #6 (fedora20) -e port-helper -uml-socket /tmp/xterm-pipedhXmGp
20762 ?        Ss     0:00  |       |   \_ port-helper -uml-socket /tmp/xterm-pipedhXmGp
20758 ?        Zs     0:00  |       \_ [linux] <defunct>
20760 pts/3    t+     0:00  |       \_ ./linux ubd0=ext3fs.img mem=768M systemd.unit=multi-user.target
umid=fedora20 
20763 ?        Zs     0:00  |       \_ [linux] <defunct>
20797 pts/3    S+     0:00  |       \_ xterm -T Virtual Console #3 (fedora20) -e port-helper -uml-socket /tmp/xterm-pipeULItXd
20812 ?        Ss     0:00  |       |   \_ port-helper -uml-socket /tmp/xterm-pipeULItXd
20813 ?        Zs     0:00  |       \_ [linux] <defunct>
20815 pts/3    S+     0:00  |       \_ xterm -T Virtual Console #5 (fedora20) -e port-helper -uml-socket /tmp/xterm-pipeaKUbD3
20876 ?        Ss     0:00  |       |   \_ port-helper -uml-socket /tmp/xterm-pipeaKUbD3
20877 ?        Zs     0:00  |       \_ [linux] <defunct>
20896 pts/3    t+     0:00  |       \_ ./linux ubd0=ext3fs.img mem=768M systemd.unit=multi-user.target
umid=fedora20 
20909 pts/3    t+     0:00  |       \_ ./linux ubd0=ext3fs.img mem=768M systemd.unit=multi-user.target
umid=fedora20 
21005 pts/3    t+     0:00  |       \_ ./linux ubd0=ext3fs.img mem=768M systemd.unit=multi-user.target
umid=fedora20 
21007 pts/3    Z+     0:00  |       \_ [uml_net] <defunct>
21019 pts/3    t+     0:00  |       \_ ./linux ubd0=ext3fs.img mem=768M systemd.unit=multi-user.target
umid=fedora20 
21112 pts/3    t+     0:00  |       \_ ./linux ubd0=ext3fs.img mem=768M systemd.unit=multi-user.target
umid=fedora20 
21125 pts/3    Z+     0:00  |       \_ [uml_net] <defunct>
22164 pts/3    t+     0:00  |       \_ ./linux ubd0=ext3fs.img mem=768M systemd.unit=multi-user.target
umid=fedora20 
22211 pts/3    t+     0:00  |       \_ ./linux ubd0=ext3fs.img mem=768M systemd.unit=multi-user.target
umid=fedora20 
22224 pts/3    t+     0:00  |       \_ ./linux ubd0=ext3fs.img mem=768M systemd.unit=multi-user.target
umid=fedora20 
22380 pts/3    t+     0:51  |       \_ ./linux ubd0=ext3fs.img mem=768M systemd.unit=multi-user.target
umid=fedora20 
21965 pts/3    t+     0:00  |       \_ ./linux ubd0=ext3fs.img mem=768M systemd.unit=multi-user.target
umid=fedora20 
21968 pts/3    t+     0:00  |       \_ ./linux ubd0=ext3fs.img mem=768M systemd.unit=multi-user.target
umid=fedora20 
21983 pts/3    t+     0:00  |       \_ ./linux ubd0=ext3fs.img mem=768M systemd.unit=multi-user.target
umid=fedora20 
22053 pts/3    t+     0:00  |       \_ ./linux ubd0=ext3fs.img mem=768M systemd.unit=multi-user.target
umid=fedora20 
22058 pts/3    t+     0:00  |       \_ ./linux ubd0=ext3fs.img mem=768M systemd.unit=multi-user.target
umid=fedora20 
22887 pts/3    t+     0:00  |       \_ ./linux ubd0=ext3fs.img mem=768M systemd.unit=multi-user.target
umid=fedora20 

with kind regards
thomas

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
Dan Carpenter | 29 Oct 20:06 2013
Picon

[uml-user] [patch] uml: check length in exitcode_proc_write()

We don't cap the size of buffer from the user so we could write past
the end of the array here.  Only root can write to this file.

Reported-by: Nico Golde <nico <at> ngolde.de>
Reported-by: Fabian Yamaguchi <fabs <at> goesec.de>
Signed-off-by: Dan Carpenter <dan.carpenter <at> oracle.com>

diff --git a/arch/um/kernel/exitcode.c b/arch/um/kernel/exitcode.c
index 829df49..41ebbfe 100644
--- a/arch/um/kernel/exitcode.c
+++ b/arch/um/kernel/exitcode.c
 <at>  <at>  -40,9 +40,11  <at>  <at>  static ssize_t exitcode_proc_write(struct file *file,
 		const char __user *buffer, size_t count, loff_t *pos)
 {
 	char *end, buf[sizeof("nnnnn\0")];
+	size_t size;
 	int tmp;

-	if (copy_from_user(buf, buffer, count))
+	size = min(count, sizeof(buf));
+	if (copy_from_user(buf, buffer, size))
 		return -EFAULT;

 	tmp = simple_strtol(buf, &end, 0);

------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
Michael Opdenacker | 27 Oct 08:06 2013

[PATCH] um: remove used STDIO_CONSOLE Kconfig param

This removes the STDIO_CONSOLE Kconfig parameter which
is defined but no longer used anywhere in the makefiles and source code.

Signed-off-by: Michael Opdenacker <michael.opdenacker <at> free-electrons.com>
---
 arch/um/Kconfig.char | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/arch/um/Kconfig.char b/arch/um/Kconfig.char
index b9d7c42..f10738d 100644
--- a/arch/um/Kconfig.char
+++ b/arch/um/Kconfig.char
 <at>  <at>  -6,10 +6,6  <at>  <at>  config STDERR_CONSOLE
 	help
 	  console driver which dumps all printk messages to stderr.

-config STDIO_CONSOLE
-	bool
-	default y
-
 config SSL
 	bool "Virtual serial line"
 	help
--

-- 
1.8.1.2

Han | 24 Sep 21:05 2013
Picon

[uml-user] cannot bring up the serial line

Hi, 

I am following the instruction in the User Mode Linux book (Jeff Dike) and trying to bring up its serial line. But not working so far. 

What I did was: 

1.  edit the /etc/inittab file and enabled this line:

T0:2345:respawn:/sbin/getty -L ttyS0 9600 vt100

2.  added command line option when booting UML:

ssl=pts 

Once the UML boots,  I cannot find anything in 'dmesg' about the serial line.  And I got following msg after a few minutes: 

INIT: Id "T0" respawning too fast: disabled for 5 minutes

What did I miss?  I also tried the following line in inittab but still not working:

S0:23:respawn:/sbin/agetty ttyS0 9600 vt100-nav


Any advices? 

thanks
Han
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
madhusudan r | 13 Sep 07:33 2013
Picon

[uml-user] Configure UML to generate core file

Hi,

The UML I run on Ubuntu crashes occasionally, but does not generate any core file. I'd like to know the necessary configuration to be applied on UML so it generates a core when it crashes. Also, additional configuration which will ease the process of analyzing the core would be appreciated.

Thanks,
Madhu

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
Teto | 25 Aug 21:31 2013
Picon

[uml-user] UML+Mounting host fs + chroot in the mounted host drive

Hi,

First a bit of context, I am looking for a kernel test & debug
platform. I hesitate between QEmu and UML for this but I like the
hostfs ability of UML (less complicated than 9p in qemu). As I run
those tests on different computers and synchronize things via git, I
prefer to do without a root filesystem/any binary.

My current technique is to boot the kernel to test with a custom
initrd that mounts the host filesystem, chroot to this mounted
directory so that I can use my host binaries (custom ip route
binaries already installed in my host etc...). I've seen no thread
presenting this though it's very practical so I was wondering if that
violated some rules (could harm host system for instance ?) or is it
because it's not how UML is meant to be used (it aims at isolating).

I wondered if I could use my host drive as a root filesystem
(read-only, using a qcow2 file to save changes) to boot UML instead of
creating/downloading a filesystem ?

Best regards
MAtt

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
Han | 23 Aug 20:35 2013
Picon

[uml-user] tsc.c in UML

Hi,

I am using Linux kernel 2.6.27 for building UML kernel.  It seems like "arch/x86/kernel/tsc.c" is not built in and the symbol "cpu_khz" is not available.  

My question is:  what's the reason that "tsc.c" not included in UML?  Is there any config or simple way(patch?)  to include it in UML? 

I have not tried the same on the newer kernels yet as my target system uses 2.6.27 only so I prefer to stick with 2.6.27 if possible. 

thanks
Han

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
Han | 7 Aug 00:15 2013
Picon

[uml-user] how to build programs for running in UML

Hi, 

I am trying to build and run some of my C programs in UML.  One way I tried is to build (i.e. compile) the program on the host,  then run it in UML.  The problem is that the UML rootfs I used lacks many of the /usr/lib/ shared libraries, hence the program failed to run.  

My question is:  what is the best practice to build and run C programs for UML?  Do people normally compile the program on the host and then run it in UML?   Or  compile the program directly in UML and then run it? 

If folks compile the C programs in UML directly,  where the "gcc" comes from?  Is it built part of the rootfs,  or some add-ons?  Any pointers for that?  

(meantime, I am trying to load a rootfs that has gcc but had issues with that.... )  

Thanks.
Han
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Gmane