anton.ivanov | 7 Mar 19:37 2014
Picon

[PATCH 1/3] BUG: Missing pipe handling

From: Anton Ivanov <antivano <at> cisco.com>

UML does not handle sigpipe. As a result when running it under
expect or redirecting the IO from the console to an external program
it will crash if the program stops or exits.

Signed-off-by: Anton Ivanov <antivano <at> cisco.com>
---
 arch/um/os-Linux/main.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/um/os-Linux/main.c b/arch/um/os-Linux/main.c
index 7a86dd5..048166d 100644
--- a/arch/um/os-Linux/main.c
+++ b/arch/um/os-Linux/main.c
 <at>  <at>  -149,6 +149,7  <at>  <at>  int __init main(int argc, char **argv, char **envp)
 #endif

 	do_uml_initcalls();
+	change_sig(SIGPIPE, 0);
 	ret = linux_main(argc, argv);

 	/*
--

-- 
1.7.10.4

------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
(Continue reading)

anton.ivanov | 8 Mar 07:51 2014
Picon

[PATCH 1/3] BUG: UML does not handle sigpipe. As a result when running it under expect or redirecting the IO from the console to an external program it will crash if the program stops or exits.

From: Anton Ivanov <antivano <at> cisco.com>

Signed-off-by: Anton Ivanov <antivano <at> cisco.com>
---
 arch/um/os-Linux/main.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/um/os-Linux/main.c b/arch/um/os-Linux/main.c
index 7a86dd5..048166d 100644
--- a/arch/um/os-Linux/main.c
+++ b/arch/um/os-Linux/main.c
 <at>  <at>  -149,6 +149,7  <at>  <at>  int __init main(int argc, char **argv, char **envp)
 #endif

 	do_uml_initcalls();
+	change_sig(SIGPIPE, 0);
 	ret = linux_main(argc, argv);

 	/*
--

-- 
1.7.10.4

------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
Anton Ivanov (antivano | 28 Feb 09:27 2014
Picon

Contribution - Bug fixes and contributions to UML

Hi Richard, Hi Jeff, hi list,

On behalf of Cisco systems, I am authorized to make a offer a set bug
fixes as well as contribute several additional features and performance
improvements to UML. All of these have been used internally for a couple
of years and will ship as parts of product(s) in the near future. Some
of these improve performance by up to 8 times on use cases which are of
interest to us and are likely to be of interest to the community.

As the full patchset is now in the 100k+ zone, so I am going to do only
the announcement now and submit the patches one by one after that over
the next 1-2 weeks.

We will submit separately bug fixes for:

1. Critical memory corruption on startup observed on heavily loaded
machines (especially when multiple UMLs run simultaneously).
2. Fix(es) for incorrect handling of error conditions when UML is run
under expect and conX=fd: is used to communicate with another process.
The same error may be observed on internal UML IPCs too leading to
immediate crash.

I will also file bugs for both vs Debian UML package so that patches for
both can go in ASAP.

In addition to the bug fixes, the new features include:

1. Several transports. All can do up to multi-gigabit throughput on some
scenarios. We are contributing their counterparts to qemu/kvm as well.

(Continue reading)

Boaz Harrosh | 27 Feb 20:05 2014

sysreq t back traces stopped working please help

Hi Richard, uml hackers

Since some time my "echo t > /proc/sysrq-trigger" stopped producing the proper global back-traces for all
Kernel threads.
All I get is:

Feb 27 12:47:32 fc18-buml18 kernel: [189390.940000]      ksoftirqd/0     3     58344.325336    124146   120               0               0               0.000000              
0.000000     
          0.000000 /
Feb 27 12:47:32 fc18-buml18 kernel: [189390.940000]     kworker/0:0H     5      3160.151405         5   100               0               0               0.000000              
0.000000     
          0.000000 /
Feb 27 12:47:32 fc18-buml18 kernel: [189390.940000]          khelper     7         8.451419         2   100               0               0               0.000000               0.000000     
          0.000000 /
Feb 27 12:47:32 fc18-buml18 kernel: [189390.940000]        kdevtmpfs     8      5439.251379       169   120               0               0               0.000000              
0.000000     
          0.000000 /
Feb 27 12:47:32 fc18-buml18 kernel: [189390.940000]            netns     9        10.451418         2   100               0               0               0.000000               0.000000     
          0.000000 /
Feb 27 12:47:32 fc18-buml18 kernel: [189390.940000]        writeback    37        13.451416         2   100               0               0               0.000000               0.000000     
          0.000000 /
Feb 27 12:47:32 fc18-buml18 kernel: [189390.940000]           bioset    39        12.451417         2   100               0               0               0.000000               0.000000     
          0.000000 /
Feb 27 12:47:32 fc18-buml18 kernel: [189390.940000]          kblockd    41        11.951416         2   100               0               0               0.000000               0.000000     
          0.000000 /
Feb 27 12:47:32 fc18-buml18 kernel: [189390.940000]          kswapd0    66        22.451413         3   120               0               0               0.000000               0.000000     
          0.000000 /
Feb 27 12:47:32 fc18-buml18 kernel: [189390.940000]    fsnotify_mark    67      1686.151405         6   120               0               0               0.000000              
0.000000     
          0.000000 /
(Continue reading)

Toralf Förster | 19 Feb 22:45 2014
Picon
Picon

where is pid 16666


Fuzzying a 32 bit Linux guest (linux v3.14-rc3-168-g960dfc4) with trinity (1.1-1082-gda55d79) yields
again into the situation, that the fuzz job does not continue after a trinity run was finished and the next
trinity job was prepared to start. There seems to be an endless loop thru the radix-tree code.

The UML guest itself is responding and works well, login with ssh into it works fine.
After running into this with ext4 file systems in former times now I run into this while using a BTRFS file
system for the victim files.
What let me wonder is, why I cannot see a PID 16666 within the UML guest :
(pls look for         pid = 16666                                                  <----------------------------------)

At the host I run this command to track the host proces which is respinsible that the UML trinity job does not continue:

$> sudo gdb /home/tfoerste/devel/linux/linux 13369 -n -batch -ex 'bt full'

warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
0x08349f4c in radix_tree_next_chunk (root=0x11, iter=0x3f25fca0, flags=18) at lib/radix-tree.c:770
770                                             if (node->slots[offset])
#0  0x08349f4c in radix_tree_next_chunk (root=0x11, iter=0x3f25fca0, flags=18) at lib/radix-tree.c:770
        tag = 0
        rnode = 0x3eb3b6d8
        node = 0x3ed37020
#1  0x080cd51e in find_get_pages (mapping=0x3eb4c8a8, start=0, nr_pages=14, pages=0x12) at mm/filemap.c:844
        iter = {index = 0, next_index = 0, tags = 1059454120}
        slot = 0x11
        ret = 0
#2  0x080d760a in pagevec_lookup (pvec=0x3f25fd04, mapping=0x11, start=17, nr_pages=17) at mm/swap.c:969
No locals.
#3  0x080d7a0a in truncate_inode_pages_range (mapping=0x3eb4c8a8, lstart=0, lend=-1) at mm/truncate.c:241
(Continue reading)

Toralf Förster | 11 Jan 11:47 2014
Picon
Picon

Re: negative pid -516 possible ?


I do fuzz testing with trinity (latest git version) a stable 32 bit Gentoo Linux user mode linux image.
The host is a stable 32 bit vanilla 3.12.7 kernel, the guest runs latest git tree + 2 patches (attached).

The trinity call in the UML guest is :
$> trinity -q -l off -N 10000 -C 2 -x move_pages -x mremap -v /mnt/ramdisk

After a while there's no progress on the command line seen at the host system - the trinity process seems to
just hangs/idling. When this does occur I cannot longer ssh into the system. The system however runs
furthermore. In another terminal I still see the output of this command:

$> ssh root <at> trinity "tail -f /var/log/messages"

That's why I do know that the system does not hang completely. The output of top at the host system gives me the
pid of the linux exe. A gdb call gives for that pid :

$ date; sudo gdb /home/tfoerste/devel/linux/linux 25224 -n -batch -ex 'bt full'
Sat Jan 11 11:36:47 CET 2014

warning: Could not load shared library symbols for linux-gate.so.1.
Do you need "set solib-search-path" or "set sysroot"?
0xb7800424 in __kernel_vsyscall ()
#0  0xb7800424 in __kernel_vsyscall ()
No symbol table info available.
#1  0x083d63ff in __nanosleep_nocancel ()
No symbol table info available.
#2  0x0807266c in idle_sleep (nsecs=602496380195307520) at arch/um/os-Linux/time.c:183
        ts = {tv_sec = 0, tv_nsec = 8436602}
#3  0x0805fc0f in arch_cpu_idle () at arch/um/kernel/process.c:208
No locals.
(Continue reading)

Sebastian b | 24 Dec 21:07 2013
Picon

Salutations, User Mode Linux Devel


http://cdn.spotcream.com/images/welcome.php?vqwrwngegf1122myrrv













































============================
niakoz <at> yahoo.com.ar

A soft answer turns away wrath, but a harsh word stirs up anger. -- Solomon (Proverbs 15:1)
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Toralf Förster | 21 Dec 15:36 2013
Picon
Picon

negative pid -516 possible ?


Trinity'ing a 32 bit linux user mode linux (still the raid x tree issue ....) gives for a guest :

tfoerste <at> n22 ~ $ date; sudo gdb /home/tfoerste/devel/linux/linux 10044 -n -batch -ex 'bt full'
Sat Dec 21 15:33:03 CET 2013
0xb7710424 in __kernel_vsyscall ()
#0  0xb7710424 in __kernel_vsyscall ()
No symbol table info available.
#1  0x083d5d2f in __nanosleep_nocancel ()
No symbol table info available.
#2  0x0807267c in idle_sleep (nsecs=602496466104653440) at arch/um/os-Linux/time.c:183
        ts = {tv_sec = 0, tv_nsec = 6471789}
#3  0x0805fc0f in arch_cpu_idle () at arch/um/kernel/process.c:208
No locals.
#4  0x080a8981 in cpu_idle_loop () at kernel/cpu/idle.c:98
No locals.
#5  cpu_startup_entry (state=CPUHP_ONLINE) at kernel/cpu/idle.c:140
No locals.
#6  0x08421d02 in rest_init () at init/main.c:401
        pid = -516
#7  0x080487e1 in start_kernel () at init/main.c:655
        command_line = 0x85b6400 <command_line> "earlyprintk ubda=/home/tfoerste/virtual/uml/trinity
ubdb=/mnt/ramdisk/trinity_swap eth0=tuntap,tap0,72:ef:3d:9f:c3:5a mem=1025M con0=fd:0,fd:1
con=pts rootfstype=ext4  root=98:0"
#8  0x08049e09 in start_kernel_proc (unused=0x0) at arch/um/kernel/skas/process.c:46
        pid = -516
#9  0x0805f7cb in new_thread_handler () at arch/um/kernel/process.c:129
        fn = 0x0
#10 0x00000000 in ?? ()
No symbol table info available.

Is this a valid number ?

--

-- 
MfG/Sincerely
Toralf Förster
pgp finger print:1A37 6F99 4A9D 026F 13E2 4DCF C4EA CDDE 0076 E94E
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

Richard Weinberger | 9 Dec 08:33 2013
Picon

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

Hi Greg,

please add commit fdfa4c952844fce881df8c76de9c7180cbe913ab (um: add missing 
declaration of 'getrlimit()' and friends) to -stable.
The change was introduced in 3.9 and needs backporting to all stable trees.

Thanks,
//richard
Antoine Martin | 9 Dec 06:29 2013
Picon

3.4.73 affected by "uml: signal.c build errors"

Hi Richard,

Not sure how this got fixed in HEAD, but the same fix needs to be applied on top of 3.4.73
I've just added the includes to arch/um/os-Linux/start_up.c, as per:
https://lkml.org/lkml/2012/10/24/791
And the kernel builds again.

Compile-tested-by: Antoine Martin <antoine <at> nagafix.co.uk>

Cheers
Antoine
------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

Gmane