Real Name | 4 Jun 10:26 2014
Picon

[uml-user] How to run UML with valgrind and GDB?

Hi,
  I tried to run UML (linux-3.12.6-x86) kernel with valgrind and GDB. 
But valgrind always terminated because SIGSEGV signal. I searched with 
google, just got some very old resource about run linux-2.6.xx with valgrind.

 So, is it possible to run linux (>3.12) with valgrind? If yes, how to do it?

thanks

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
enjoy mindful | 30 May 09:29 2014
Picon

[uml-user] how to find out which functions have been record in exception table?

Hi, all
  I build linux-3.12.6 uml with default configure.

tar -jxf linux-3.12.6.tar.bz2
cd linux-3.12.6
make ARCH=um defconfig
make ARCH=um linux

I'm confused about the exception table of the uml kernel.

$ objdump --full-contents --section=__ex_table linux

linux:     file format elf32-i386

Contents of section __ex_table:
 82a5048 3e6fdcff bcbaf6ff 396fdcff b4baf6ff  >o......9o......
 82a5058 336fdcff acbaf6ff 306fdcff bfbaf6ff  3o......0o......
 82a5068 2b6fdcff 9cbaf6ff 286fdcff afbaf6ff  +o......(o......
 82a5078 236fdcff 8cbaf6ff 206fdcff 9fbaf6ff  #o...... o......
 82a5088 1b6fdcff 7cbaf6ff 186fdcff 8fbaf6ff  .o..|....o......
 82a5098 136fdcff 6cbaf6ff 106fdcff 7fbaf6ff  .o..l....o......
 82a50a8 0b6fdcff 5cbaf6ff 086fdcff 6fbaf6ff  .o..\....o..o...
 82a50b8 036fdcff 4cbaf6ff 006fdcff 5fbaf6ff  .o..L....o.._...
 82a50c8 fb6edcff 3cbaf6ff f86edcff 4fbaf6ff  .n..<....n..O...
 82a50d8 f36edcff 2cbaf6ff f06edcff 3fbaf6ff  .n..,....n..?...
 82a50e8 eb6edcff 1cbaf6ff e86edcff 2fbaf6ff  .n.......n../...
 82a50f8 e36edcff 0cbaf6ff e06edcff 1fbaf6ff  .n.......n......
 82a5108 db6edcff fcb9f6ff d86edcff 0fbaf6ff  .n.......n......
 82a5118 d36edcff ecb9f6ff d06edcff ffb9f6ff  .n.......n......
 82a5128 cb6edcff dcb9f6ff c86edcff efb9f6ff  .n.......n......
(Continue reading)

Nalli, Sanketh | 30 May 03:22 2014
Picon

[uml-user] invalid /proc/PID/exe in UML processes

Hi,

So I start UML with the cmdline

./linux rootfstype=hostfs rw mem=1G init=/bin/bash

 

When the bash shell comes up, I run my prog : ./my_prog

 

6173 pts/8    00:00:00 linux

6180 pts/8    00:00:00 linux

6181 pts/8    00:00:00 linux

6182 pts/8    00:00:00 linux

6183 pts/8    00:00:00 linux

6188 pts/8    00:00:13 linux

 

 

The last item in the list with PID is 6188 is my program.

I can tell because my_prog increments a counter in an infinite loop

And consumes CPU cycles. It shows up on “top” as the dominant process.

 

My question:

1.       /proc/6188/exe is invalid. Why ??

I mean, it doesn’t point to anything.

Shouldn’t it point to my_prog or something ?

 

2.       What do the 4 UML processes 6173, 6180, 6181, 6182 do ? (6183 is /bin/bash whos “exe” symlink is also doesn’t point to anything !!)

3.       When a UML process, say my_prog (PID 6188) makes a system call, where is the system call executed – is it within the addr space of 6173 (the UML kernel process) or 6188 (my_prog running in UML ??)

 

-Sanketh

 

 

------------------------------------------------------------------------------
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
Nalli, Sanketh | 28 May 22:39 2014
Picon

[uml-user] UML with PIN

Hey,

Has anyone successfully tried running UML with PIN attached to it ?

https://software.intel.com/en-us/articles/pin-a-dynamic-binary-instrumentation-tool

 

Also, can you explain the output of ps –e, after I run UML :

1256 pts/7    00:00:00 linux

1266 pts/7    00:00:00 linux

1267 pts/7    00:00:00 linux

1268 pts/7    00:00:00 linux

1269 pts/7    00:00:00 linux

 

Why are there these many processes ?

What is a good resource to understand UML better ?

------------------------------------------------------------------------------
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
Richard Weinberger | 26 May 16:36 2014
Picon

Re: [uml-user] UML: Get's stuck

Am 20.05.2014 16:32, schrieb Jonathan Rudenberg:
> On 2014-03-16, 11:09 AM, Richard Weinberger wrote:
>> Am 14.03.2014 15:57, schrieb Thomas Meyer:
>>>
>>> only some processes get stuck.
>>>
>>> After enabling hung task detection in the kernel I see this in the logs:
>>>
>>> [ 8040.100000] INFO: task jbd2/ubda-8:308 blocked for more than 120
>>> seconds.
> ...
>>>
>>> any ideas? some synchronisation error in ext4?
>>
>> Hmm, maybe you suffer from the same issue this patch tries to address:
>> https://lkml.org/lkml/2014/2/14/733
> 
> I'm running into a very similar issue on vanilla 3.14.4 and 3.15-rc5, both appear to have that patch
already applied.
> 
> I've tested ext4, ext3, btrfs, all with the same issue: processes writing to disk in the guest randomly
hang permanently after a few minutes of uptime. The guest reports 100%
> iowait, the host has no load and is totally fine.

Can you share your UML disk image?
Maybe your userspace triggers some odds.
What distro is it?

Does it only happen with ubd disks?
IOW does NFS or hostfs work?

Thanks,
//richard

------------------------------------------------------------------------------
The best possible search technologies are now affordable for all companies.
Download your FREE open source Enterprise Search Engine today!
Our experts will assist you in its installation for $59/mo, no commitment.
Test it for FREE on our Cloud platform anytime!
http://pubads.g.doubleclick.net/gampad/clk?id=145328191&iu=/4140/ostg.clktrk
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]

Signed-off-by: Sergei Trofimovich <slyfox <at> gentoo.org>
CC: Jeff Dike <jdike <at> addtoit.com>
CC: Richard Weinberger <richard <at> nod.at>
CC: Al Viro <viro <at> zeniv.linux.org.uk>
CC: user-mode-linux-devel <at> lists.sourceforge.net
CC: user-mode-linux-user <at> lists.sourceforge.net
CC: linux-kernel <at> vger.kernel.org
Signed-off-by: Richard Weinberger <richard <at> nod.at>
Signed-off-by: Luis Henriques <luis.henriques <at> canonical.com>
---
 arch/um/os-Linux/start_up.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/um/os-Linux/start_up.c b/arch/um/os-Linux/start_up.c
index 425162e..2f53b89 100644
--- a/arch/um/os-Linux/start_up.c
+++ b/arch/um/os-Linux/start_up.c
 <at>  <at>  -15,6 +15,8  <at>  <at> 
 #include <sys/mman.h>
 #include <sys/stat.h>
 #include <sys/wait.h>
+#include <sys/time.h>
+#include <sys/resource.h>
 #include <asm/unistd.h>
 #include "init.h"
 #include "os.h"
--
1.8.3.2

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


Gmane