Re: [uml-devel] [UM] Long loop in __getnsdayoftime() after resume from ram

2015-04-26 Thread Richard Weinberger
Am 26.04.2015 um 20:32 schrieb Richard Weinberger: On Fri, Apr 24, 2015 at 9:58 PM, Thomas Meyer tho...@m3y3r.de wrote: Any ideas? Can you give the attached patch a try? Let's see if it proves my theory. Looks like UML's clocksource needs fixing. Please give also this patch a try. I should

Re: [uml-devel] [UM] Long loop in __getnsdayoftime() after resume from ram

2015-04-26 Thread Richard Weinberger
Hi! Am 26.04.2015 um 22:57 schrieb Thomas Meyer: Am Sonntag, den 26.04.2015, 20:32 +0200 schrieb Richard Weinberger: On Fri, Apr 24, 2015 at 9:58 PM, Thomas Meyer tho...@m3y3r.de wrote: Am Montag, den 20.10.2014, 11:56 +0200 schrieb Richard Weinberger: Am 20.10.2014 um 11:51 schrieb Thomas

Re: [uml-devel] [UM] Long loop in __getnsdayoftime() after resume from ram

2015-04-26 Thread Richard Weinberger
On Fri, Apr 24, 2015 at 9:58 PM, Thomas Meyer tho...@m3y3r.de wrote: Am Montag, den 20.10.2014, 11:56 +0200 schrieb Richard Weinberger: Am 20.10.2014 um 11:51 schrieb Thomas Meyer: Hmm, does this always happen? Yes, my single core system seems to trigger this every time after resume

[uml-devel] [PATCH] um: Remove hppfs

2015-04-22 Thread Richard Weinberger
hppfs (honeypot procfs) was an attempt to use UML as honeypot. It was never stable nor in heavy use. As Al Viro and Christoph Hellwig pointed some major issues out it is better to let it die. Signed-off-by: Richard Weinberger rich...@nod.at --- arch/um/Kconfig.um | 15 -- fs/Makefile

[uml-devel] Kill hppfs

2015-04-22 Thread Richard Weinberger
hch and Al found that hppfs has some serious issues[0]. As the filesystem as never marked as stable nor in heavy use we decided to rip it out. If someone is using it, speak up now. I plan to remove it in the v4.2 merge window. Now we have FUSE which can be used to implement such a filesystem in a

[uml-devel] [GIT PULL] UML updates for 4.1

2015-04-15 Thread Richard Weinberger
Andrey Ryabinin (1): x86, UML: fix integer overflow in ELF_ET_DYN_BASE Richard Weinberger (22): hostfs: hostfs_file_open: Switch to data locking model hostfs: hostfs_file_open: Fix a fd leak in hostfs_file_open hostfs: Allow

Re: [uml-devel] [PATCH v3] um: Print minimum physical memory requirement

2015-04-13 Thread Richard Weinberger
On Fri, Apr 3, 2015 at 4:51 PM, Thomas Meyer tho...@m3y3r.de wrote: Print a more sensible message about the minimum physical memory requirement. Signed-off-by: Thomas Meyer tho...@m3y3r.de All of your three patches are queued for 4.1! :-) -- Thanks, //richard

[uml-devel] [PATCH 4/7] um: Remove SKAS3/4 support

2015-03-26 Thread Richard Weinberger
. With SKAS0 mode (separated kernel address space using 0 host patches), default since 2005, SKAS3/4 is obsolete and can be removed. Signed-off-by: Richard Weinberger rich...@nod.at --- arch/um/include/shared/os.h | 2 - arch/um/include/shared/skas/proc_mm.h| 44 -- arch/um

[uml-devel] [PATCH 2/7] um: Remove ia64 cruft

2015-03-26 Thread Richard Weinberger
That code is a relict from the early days of UML. ia64 support was never completed nor worked. Let's rip it out. Signed-off-by: Richard Weinberger rich...@nod.at --- arch/um/Makefile-ia64 | 1 - arch/um/sys-ia64/Makefile | 11 --- arch/um/sys-ia64/sysdep

[uml-devel] [PATCH 1/7] um: Remove dead code from stacktrace

2015-03-26 Thread Richard Weinberger
Remove left over code from commit 970e51feaddb (um: Add support for CONFIG_STACKTRACE) Signed-off-by: Richard Weinberger rich...@nod.at --- arch/um/kernel/sysrq.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/arch/um/kernel/sysrq.c b/arch/um/kernel/sysrq.c index

[uml-devel] [PATCH 6/7] um: Remove broken highmem support

2015-03-26 Thread Richard Weinberger
Highmem was always buggy and experimental on UML(i386). In times where 64 bit computers are default we can remove that experimental code. Signed-off-by: Richard Weinberger rich...@nod.at --- arch/um/Kconfig.um| 12 arch/um/include/asm/fixmap.h | 4 --- arch/um/include/asm

[uml-devel] [PATCH 5/7] um: Remove broken SMP support

2015-03-26 Thread Richard Weinberger
At times where UML used the TT mode to operate it had kind of SMP support. It never got finished nor was stable. Let's rip out that cruft and stop confusing developers which do tree-wide SMP cleanups. If someone wants SMP support UML it has do be done from scratch. Signed-off-by: Richard

[uml-devel] [PATCH 3/7] um: Remove ppc cruft

2015-03-26 Thread Richard Weinberger
That code is a relict from the early days of UML. ppc support was never completed nor worked. Let's rip it out. Signed-off-by: Richard Weinberger rich...@nod.at --- arch/um/Makefile-ppc| 9 --- arch/um/sys-ppc/Makefile| 65 arch/um

[uml-devel] [PATCH 7/7] um: hostfs: Reduce number of syscalls in readdir

2015-03-26 Thread Richard Weinberger
Currently hostfs issues every time a seekdir(), in fact it has to do this only upon the first call. Also telldir() can be omitted as we can obtain the directory offset from readdir(). Signed-off-by: Richard Weinberger rich...@nod.at --- fs/hostfs/hostfs.h | 3 ++- fs/hostfs/hostfs_kern.c

Re: [uml-devel] [PATCH 1/2] mm: Introducing arch_remap hook

2015-03-21 Thread Richard Weinberger
Am 20.03.2015 um 16:53 schrieb Laurent Dufour: Some architecture would like to be triggered when a memory area is moved through the mremap system call. This patch is introducing a new arch_remap mm hook which is placed in the path of mremap, and is called before the old area is unmapped (and

Re: [uml-devel] starting an 32 bit x86 chroot uml image at a ahrdened Gentoo amd64 system fails

2015-03-21 Thread Richard Weinberger
Am 16.03.2015 um 14:23 schrieb Toralf Förster: On 03/15/2015 05:56 PM, Richard Weinberger wrote: Then please move the hardened gcc to /dev/null. ;-) yes, at least to compile the UML linux If you can tell me what hardening feature is the root cause I can think of a solution

Re: [uml-devel] [PATCH 07/15] hostfs: Remove open coded strcpy()

2015-03-16 Thread Richard Weinberger
Am 16.03.2015 um 13:03 schrieb Geert Uytterhoeven: On Mon, Mar 16, 2015 at 12:41 PM, Richard Weinberger rich...@nod.at wrote: --- a/fs/hostfs/hostfs_kern.c +++ b/fs/hostfs/hostfs_kern.c @@ -105,11 +105,10 @@ static char *__dentry_name(struct dentry *dentry, char *name) This code looks

[uml-devel] [PATCH 15/15] hostfs: No need to box and later unbox the file mode

2015-03-16 Thread Richard Weinberger
There is really no point in having a function with 10 arguments. Reported-by: Daniel Walter d.wal...@0x90.at Signed-off-by: Richard Weinberger rich...@nod.at --- fs/hostfs/hostfs.h | 3 +-- fs/hostfs/hostfs_kern.c | 5 + fs/hostfs/hostfs_user.c | 17 +++-- 3 files changed

[uml-devel] [PATCH 12/15] hostfs: Remove superfluous initializations in hostfs_open()

2015-03-16 Thread Richard Weinberger
Only initialize what we really need. Signed-off-by: Richard Weinberger rich...@nod.at --- fs/hostfs/hostfs_kern.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c index 80ced3d..cf80a30 100644 --- a/fs/hostfs/hostfs_kern.c

[uml-devel] [PATCH 11/15] hostfs: hostfs_open: Reset open flags upon each retry

2015-03-16 Thread Richard Weinberger
...otherwise we might end up with an incorrect mode mode. Signed-off-by: Richard Weinberger rich...@nod.at --- fs/hostfs/hostfs_kern.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c index 8bbceae..80ced3d 100644 --- a/fs/hostfs

[uml-devel] [PATCH 06/15] hostfs: Add a BUG_ON to detect behavior changes of dentry_path_raw()

2015-03-16 Thread Richard Weinberger
hostfs' __dentry_name() relies on the fact that dentry_path_raw() will place the path name at the end of the provided buffer. While this is okay, add a BUG_ON() to detect behavior changes as soon as possible. Signed-off-by: Richard Weinberger rich...@nod.at --- fs/hostfs/hostfs_kern.c | 7

[uml-devel] [PATCH 03/15] hostfs: Allow fsync on directories

2015-03-16 Thread Richard Weinberger
speaking correct common userspace like dpkg(1) stumbles over that and makes it impossible to use hostfs as root filesystem. The fix is easy, wire up the existing host open/fsync functions to the directory file operations. Reported-by: Daniel Gröber d...@darkboxed.org Signed-off-by: Richard Weinberger

[uml-devel] [PATCH 14/15] hostfs: Use page_offset()

2015-03-16 Thread Richard Weinberger
The kernel offers a helper function for that, use it. Signed-off-by: Richard Weinberger rich...@nod.at --- fs/hostfs/hostfs_kern.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c index f154747..f82f98a5 100644 --- a/fs

[uml-devel] [PATCH 10/15] hostfs: Remove superfluous test in hostfs_open()

2015-03-16 Thread Richard Weinberger
Signed-off-by: Richard Weinberger rich...@nod.at --- fs/hostfs/hostfs_kern.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c index 06b3e3f..8bbceae 100644 --- a/fs/hostfs/hostfs_kern.c +++ b/fs/hostfs/hostfs_kern.c @@ -318,9

[uml-devel] [PATCH 05/15] hostfs: Make hostfs_readpage more readable

2015-03-16 Thread Richard Weinberger
...to make life easier for future readers of that code. Signed-off-by: Richard Weinberger rich...@nod.at --- fs/hostfs/hostfs_kern.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c index 8163aac..67e556c 100644

[uml-devel] [PATCH 09/15] hostfs: Report append flag in -show_options()

2015-03-16 Thread Richard Weinberger
hostfs has an append mount option. Report it. Signed-off-by: Richard Weinberger rich...@nod.at --- fs/hostfs/hostfs_kern.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c index c60d886..06b3e3f 100644 --- a/fs/hostfs/hostfs_kern.c +++ b/fs

[uml-devel] [PATCH 02/15] hostfs: hostfs_file_open: Fix a fd leak in hostfs_file_open

2015-03-16 Thread Richard Weinberger
In case of a race between to callers of hostfs_file_open() it can happen that a file describtor is leaked. Signed-off-by: Richard Weinberger rich...@nod.at --- fs/hostfs/hostfs_kern.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c index

[uml-devel] [PATCH 01/15] hostfs: hostfs_file_open: Switch to data locking model

2015-03-16 Thread Richard Weinberger
Instead of serializing hostfs_file_open() we can use a per inode mutex to protect -mode. Signed-off-by: Richard Weinberger rich...@nod.at --- fs/hostfs/hostfs_kern.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs

[uml-devel] [PATCH 07/15] hostfs: Remove open coded strcpy()

2015-03-16 Thread Richard Weinberger
Signed-off-by: Richard Weinberger rich...@nod.at --- fs/hostfs/hostfs_kern.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c index 3082a7e..7260f16 100644 --- a/fs/hostfs/hostfs_kern.c +++ b/fs/hostfs/hostfs_kern.c

[uml-devel] [PATCH 04/15] hostfs: Handle bogus st.mode

2015-03-16 Thread Richard Weinberger
Make sure that we return EIO if one passes an invalid st.mode into hostfs. Signed-off-by: Richard Weinberger rich...@nod.at --- fs/hostfs/hostfs_kern.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c index 92b008f

[uml-devel] [PATCH 08/15] hostfs: Use __getname() in follow_link

2015-03-16 Thread Richard Weinberger
Be consistent with all other functions in hostfs and just use __getname(). Signed-off-by: Richard Weinberger rich...@nod.at --- fs/hostfs/hostfs_kern.c | 25 +++-- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs

[uml-devel] Hostfs updates

2015-03-16 Thread Richard Weinberger
Host got a visit from the janitor. [PATCH 01/15] hostfs: hostfs_file_open: Switch to data locking model [PATCH 02/15] hostfs: hostfs_file_open: Fix a fd leak in [PATCH 03/15] hostfs: Allow fsync on directories [PATCH 04/15] hostfs: Handle bogus st.mode [PATCH 05/15] hostfs: Make hostfs_readpage

Re: [uml-devel] starting an 32 bit x86 chroot uml image at a ahrdened Gentoo amd64 system fails

2015-03-15 Thread Richard Weinberger
Am 15.03.2015 um 13:07 schrieb Toralf Förster: On 03/15/2015 12:27 PM, Richard Weinberger wrote: found the culprit : CONFIG_MPENTIUMM=y works where CONFIG_MCORE2=y do not work I do have an i5: I have to double check this. Maybe you hint an UML bug. processor : 3 vendor_id

Re: [uml-devel] starting an 32 bit x86 chroot uml image at a ahrdened Gentoo amd64 system fails

2015-03-15 Thread Richard Weinberger
Am 15.03.2015 um 13:07 schrieb Toralf Förster: On 03/15/2015 12:27 PM, Richard Weinberger wrote: found the culprit : CONFIG_MPENTIUMM=y works where CONFIG_MCORE2=y do not work BTW: Just ran a x86 UML with CONFIG_MCORE2=y. Works perfectly fine. But I have a different CPU. Thanks, //richard

Re: [uml-devel] starting an 32 bit x86 chroot uml image at a ahrdened Gentoo amd64 system fails

2015-03-15 Thread Richard Weinberger
Am 15.03.2015 um 11:54 schrieb Toralf Förster: On 03/13/2015 03:31 PM, Richard Weinberger wrote: And what about a regular unhardened host? Does it work if you boot a random x86_64 livecd? tested with GRML - failed too. BTW: In GRML you need to remount /dev/shm with exec. Did you? Thanks

Re: [uml-devel] starting an 32 bit x86 chroot uml image at a ahrdened Gentoo amd64 system fails

2015-03-15 Thread Richard Weinberger
Am 15.03.2015 um 11:54 schrieb Toralf Förster: On 03/13/2015 03:31 PM, Richard Weinberger wrote: And what about a regular unhardened host? Does it work if you boot a random x86_64 livecd? tested with GRML - failed too. (And I switched the compiler to gcc-4.8.3-vanilla before and compiled

Re: [uml-devel] starting an 32 bit x86 chroot uml image at a ahrdened Gentoo amd64 system fails

2015-03-15 Thread Richard Weinberger
Am 15.03.2015 um 17:51 schrieb Toralf Förster: On 03/15/2015 03:36 PM, Richard Weinberger wrote: BTW: Just ran a x86 UML with CONFIG_MCORE2=y. Works perfectly fine. The picture isn't clear. After twiddling with the kernel config I got a working .config with CORE2=y. This runs fine

Re: [uml-devel] starting an 32 bit x86 chroot uml image at a ahrdened Gentoo amd64 system fails

2015-03-13 Thread Richard Weinberger
Am 13.03.2015 um 14:40 schrieb Toralf Förster: On 03/10/2015 10:21 PM, Richard Weinberger wrote: Am 10.03.2015 um 19:56 schrieb Toralf Förster: On 03/10/2015 07:43 PM, Richard Weinberger wrote: Also please send me your .config. attached This .config works perfecly fine here. So, what does

Re: [uml-devel] starting an 32 bit x86 chroot uml image at a ahrdened Gentoo amd64 system fails

2015-03-13 Thread Richard Weinberger
Am 13.03.2015 um 14:40 schrieb Toralf Förster: On 03/10/2015 10:21 PM, Richard Weinberger wrote: Am 10.03.2015 um 19:56 schrieb Toralf Förster: On 03/10/2015 07:43 PM, Richard Weinberger wrote: Also please send me your .config. attached This .config works perfecly fine here. So, what does

Re: [uml-devel] starting an 32 bit x86 chroot uml image at a ahrdened Gentoo amd64 system fails

2015-03-10 Thread Richard Weinberger
Am 10.03.2015 um 18:43 schrieb Toralf Förster: On 03/10/2015 04:49 PM, Richard Weinberger wrote: Then just reboot into a pristine kernel and retest. :-) With latest host vanilla 4.0.0-rc3 kernel I get a similar picture: Hmm, does not look at all like your initial report. But maybe it is just

Re: [uml-devel] starting an 32 bit x86 chroot uml image at a ahrdened Gentoo amd64 system fails

2015-03-10 Thread Richard Weinberger
Am 10.03.2015 um 15:38 schrieb Toralf Förster: On 03/08/2015 11:44 PM, Richard Weinberger wrote: Okay. Does it work on a regular host system? I.e. not broken^Whardened. I run x86 UML's very often on x86_64... Ok, I have here just a hardened system, so I'll look for issues related

Re: [uml-devel] starting an 32 bit x86 chroot uml image at a ahrdened Gentoo amd64 system fails

2015-03-10 Thread Richard Weinberger
Am 10.03.2015 um 19:24 schrieb Toralf Förster: On 03/10/2015 06:53 PM, Richard Weinberger wrote: What is addr2line -e linux 60250c0e? $ addr2line -e linux 60250c0e /home/tfoerste/devel/linux/include/linux/skbuff.h:1502 $ addr2line -e linux 60238a01 /home/tfoerste

Re: [uml-devel] starting an 32 bit x86 chroot uml image at a ahrdened Gentoo amd64 system fails

2015-03-10 Thread Richard Weinberger
Am 10.03.2015 um 19:39 schrieb Toralf Förster: On 03/10/2015 07:33 PM, Richard Weinberger wrote: So you see *random* crashes? yes, the 1st RIP is varying, just the 2nd stays at 6001b011 Okay. Can you please find the last working release? I'm still a bit puzzled. Also please send me

Re: [uml-devel] starting an 32 bit x86 chroot uml image at a ahrdened Gentoo amd64 system fails

2015-03-10 Thread Richard Weinberger
Am 10.03.2015 um 19:56 schrieb Toralf Förster: On 03/10/2015 07:43 PM, Richard Weinberger wrote: Also please send me your .config. attached This .config works perfecly fine here. So, what does your userspace? Does UML crash while booting up? BTW: You do not specify mem=, so you have only very

Re: [uml-devel] starting an 32 bit x86 chroot uml image at a ahrdened Gentoo amd64 system fails

2015-03-08 Thread Richard Weinberger
On Sun, Mar 8, 2015 at 10:13 PM, Toralf Förster toralf.foers...@gmx.de wrote: Well, in fact, since I switched from x86 to amd64 under Gentoo, I never managed to get that chroot to be booted. During boot of the UML guest it just hangs around devtmpfs: mounted w/o any output Booting a

Re: [uml-devel] starting an 32 bit x86 chroot uml image at a ahrdened Gentoo amd64 system fails

2015-03-08 Thread Richard Weinberger
Am 08.03.2015 um 23:40 schrieb Toralf Förster: On 03/08/2015 10:38 PM, Richard Weinberger wrote: Booting a chroot?! Well, wrong wording. it is an UML guest image. Okay. Does it work on a regular host system? I.e. not broken^Whardened. I run x86 UML's very often on x86_64... Thanks

Re: [uml-devel] Warning in syscall_trace_enter

2015-03-03 Thread Richard Weinberger
On Tue, Mar 3, 2015 at 5:55 AM, Lorenzo Colitti lore...@google.com wrote: Hi, when compiling UML with -Wall -Werror, I get: Don't build with -Werror. arch/um/kernel/ptrace.c: In function ‘syscall_trace_enter’: arch/um/kernel/ptrace.c:178:32: warning: ignoring return value of

Re: [uml-devel] Warning in syscall_trace_enter

2015-03-03 Thread Richard Weinberger
Am 03.03.2015 um 09:39 schrieb Lorenzo Colitti: On Tue, Mar 3, 2015 at 5:32 PM, Richard Weinberger richard.weinber...@gmail.com wrote: IIRC the big plan is to make tracehook_report_syscall_entry() tree-wide void. Ack, thanks. In the meantime, for trees we already build with -Werror, we'll

Re: [uml-devel] Warning in syscall_trace_enter

2015-03-03 Thread Richard Weinberger
Am 03.03.2015 um 10:26 schrieb Geert Uytterhoeven: On Tue, Mar 3, 2015 at 9:48 AM, Richard Weinberger rich...@nod.at wrote: Am 03.03.2015 um 09:39 schrieb Lorenzo Colitti: On Tue, Mar 3, 2015 at 5:32 PM, Richard Weinberger richard.weinber...@gmail.com wrote: IIRC the big plan is to make

Re: [uml-devel] Kmsg dumper patches?

2015-01-26 Thread Richard Weinberger
On Sun, Jan 18, 2015 at 1:27 PM, Thomas Meyer tho...@m3y3r.de wrote: Hi, Any news. On this? http://sourceforge.net/p/user-mode-linux/mailman/message/32947218/ http://sourceforge.net/p/user-mode-linux/mailman/message/32947219/

[uml-devel] [PATCH] um: x86: Removed orphaned barrier.h

2015-01-18 Thread Richard Weinberger
Since commit 9af2452a1839 (um: Include generic barrier.h) UML uses the generic barrier.h, remove this orphaned file. Reported-by: Borislav Petkov b...@suse.de Signed-off-by: Richard Weinberger rich...@nod.at --- arch/x86/um/asm/barrier.h | 71 --- 1

Re: [uml-devel] [PATCH] hostfs: Use noop_fsync for directories

2015-01-13 Thread Richard Weinberger
Am 13.01.2015 um 23:19 schrieb Christoph Hellwig: On Tue, Jan 13, 2015 at 11:15:58PM +0100, Richard Weinberger wrote: Daniel reported that dpkg(1) dies if the root filesystem is a hostfs because it does not expect fsync(2) to fail with EINVAL on directories. While fsync(2) is allowed to fail

[uml-devel] [PATCH] hostfs: Use noop_fsync for directories

2015-01-13 Thread Richard Weinberger
. Cc: sta...@vger.kernel.org Reported-and-tested-by: Daniel Gröber d...@darkboxed.org Signed-off-by: Richard Weinberger rich...@nod.at --- fs/hostfs/hostfs_kern.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c index fd62cae..a7ac856 100644

Re: [uml-devel] was is the max. memory for a 32 bit UML decreased ?

2015-01-10 Thread Richard Weinberger
Am 10.01.2015 um 17:08 schrieb Toralf Förster: yes, it never worked with values above 2026M (tested at an old ThinkPad T420, running a 32 bit Gentoo Linux with host kernel 3.17.4 ) The theoretical max. was always 2GiB due to the limited address space on ia32. 2GiB - UML binary - ASLR

Re: [uml-devel] was is the max. memory for a 32 bit UML decreased ?

2015-01-10 Thread Richard Weinberger
Am 10.01.2015 um 19:11 schrieb Toralf Förster: On 01/10/2015 06:45 PM, Richard Weinberger wrote: Am 10.01.2015 um 18:37 schrieb Toralf Förster: On 01/10/2015 06:25 PM, Richard Weinberger wrote: Am 10.01.2015 um 17:08 schrieb Toralf Förster: yes, it never worked with values above 2026M (tested

Re: [uml-devel] was is the max. memory for a 32 bit UML decreased ?

2015-01-05 Thread Richard Weinberger
On Tue, Jun 24, 2014 at 10:52 PM, Toralf Förster toralf.foers...@gmx.de wrote: IIRC in former times I could assign an UML instance 2047M, but nowadays even 2044M is too big. This depends on the host side. UML heavily depends on the host memory layout. Now with ASLR and such stuff the layout

[uml-devel] [GIT PULL] UML fixes for v3.19-rc3

2015-01-04 Thread Richard Weinberger
. Daniel Borkmann (1): x86, um: actually mark system call tables readonly Richard Weinberger (1): um: Skip futex_atomic_cmpxchg_inatomic() test arch/um/Kconfig.common | 1 + arch/x86/um/sys_call_table_32.c | 2 +- arch/x86/um

Re: [uml-devel] [BUG] uml panics with Segfault with no mm in v3.19-rc

2014-12-10 Thread Richard Weinberger
Hi! Am 10.12.2014 um 11:46 schrieb Miklos Szeredi: The guilty commit is: 00f634bc522d asm-generic: add generic futex for !CONFIG_SMP Thanks a lot Miklos! Your bisecting faster than I do. Let's dig into the issue! Thanks, //richard And the backtrace: #0 0x77866457 in kill ()

Re: [uml-devel] [BUG] uml panics with Segfault with no mm in v3.19-rc

2014-12-10 Thread Richard Weinberger
Am 10.12.2014 um 12:03 schrieb Arnd Bergmann: On Wednesday 10 December 2014 11:49:23 Richard Weinberger wrote: Hi! Am 10.12.2014 um 11:46 schrieb Miklos Szeredi: The guilty commit is: 00f634bc522d asm-generic: add generic futex for !CONFIG_SMP Thanks a lot Miklos! Your bisecting faster

Re: [uml-devel] [BUG] uml panics with Segfault with no mm in v3.19-rc

2014-12-10 Thread Richard Weinberger
Am 10.12.2014 um 12:59 schrieb Geert Uytterhoeven: On Wed, Dec 10, 2014 at 11:49 AM, Richard Weinberger rich...@nod.at wrote: Am 10.12.2014 um 11:46 schrieb Miklos Szeredi: The guilty commit is: 00f634bc522d asm-generic: add generic futex for !CONFIG_SMP Thanks a lot Miklos! Your

[uml-devel] [PATCH] um: Skip futex_atomic_cmpxchg_inatomic() test

2014-12-10 Thread Richard Weinberger
...@szeredi.hu Suggested-by: Geert Uytterhoeven ge...@linux-m68k.org Signed-off-by: Richard Weinberger rich...@nod.at --- arch/um/Kconfig.common | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/um/Kconfig.common b/arch/um/Kconfig.common index 87bc868..d195a87 100644 --- a/arch/um/Kconfig.common

Re: [uml-devel] Fwd: Re: trinity doesn't exit after its finished

2014-11-20 Thread Richard Weinberger
On Thu, Nov 20, 2014 at 8:01 PM, Toralf Förster toralf.foers...@gmx.de wrote: A recent question at trinity's mailing list (http://news.gmane.org/gmane.comp.security.fuzzing.trinity) points probably to a hostfs issue - therefore I'd like to forward the answer f Dave Jones here. ANd /me

Re: [uml-devel] starting an UML image sometimes failed, next (identical) attempt works

2014-11-19 Thread Richard Weinberger
On Wed, Nov 19, 2014 at 6:06 PM, Toralf Förster toralf.foers...@gmx.de wrote: console [mc-1] enabled Failed to initialize ubd device 0 :Couldn't determine size of device's file This is ubd_file_size(). Can you find out where exactly it is failing? Just add a few printk()s into it. -- Thanks,

Re: [uml-devel] Build regressions/improvements in v3.18-rc4

2014-11-12 Thread Richard Weinberger
Geert, On Wed, Nov 12, 2014 at 10:48 AM, Geert Uytterhoeven ge...@linux-m68k.org wrote: On Wed, Nov 12, 2014 at 10:46 AM, Geert Uytterhoeven ge...@linux-m68k.org wrote: JFYI, when comparing v3.18-rc4[1] to v3.18-rc3[3], the summaries are: - build errors: +5/-6 +

Re: [uml-devel] Build regressions/improvements in v3.18-rc4

2014-11-12 Thread Richard Weinberger
Am 12.11.2014 um 11:22 schrieb Geert Uytterhoeven: On Wed, Nov 12, 2014 at 11:19 AM, Richard Weinberger richard.weinber...@gmail.com wrote: + /home/kisskb/slave/src/fs/hostfs/hostfs_user.c: error: 'AT_FDCWD' undeclared (first use in this function): = 378 + /home/kisskb/slave/src/fs

Re: [uml-devel] kernel stalls in balance_dirty_pages_ratelimited()

2014-10-23 Thread Richard Weinberger
Anton, Am 23.10.2014 um 09:34 schrieb Anton Ivanov: Hi Richard, I have had a question in my mind on this for quite a while around this bug (and a quite a few others). Fell free to ask, I'll try hand to find time to answer. UML by the nature of being UP includes the generic spinlock

Re: [uml-devel] [PATCH v3 3/3] um: enable trace irqflags support

2014-10-20 Thread Richard Weinberger
On Mon, Oct 20, 2014 at 1:18 PM, Thomas Meyer tho...@m3y3r.de wrote: Am 20.10.2014 11:28 schrieb Daniel Walter sa...@0x90.at: - Original Message - From: Thomas Meyer tho...@m3y3r.de To: user-mode-linux-devel user-mode-linux-devel@lists.sourceforge.net Sent: Sunday, October 19,

Re: [uml-devel] [PATCH] um: Remove unused bp stack-frame pointer

2014-10-18 Thread Richard Weinberger
Am 18.10.2014 um 16:23 schrieb Manfred Schlaegl: The pointer to bp stack-frame is no longer used. Removed it. Good catch! This also removes a corresponding compiler-warning. Which warning exactly? Thanks, //richard

Re: [uml-devel] [PATCH] um: Remove unused bp stack-frame pointer

2014-10-18 Thread Richard Weinberger
Am 18.10.2014 um 17:12 schrieb Manfred Schlaegl: On 2014-10-18 16:42, Richard Weinberger wrote: Am 18.10.2014 um 16:23 schrieb Manfred Schlaegl: The pointer to bp stack-frame is no longer used. Removed it. Good catch! Thank you. This also removes a corresponding compiler-warning. Which

Re: [uml-devel] [PATCH] um: Remove unused bp stack-frame pointer

2014-10-18 Thread Richard Weinberger
Am 18.10.2014 um 17:24 schrieb Manfred Schlaegl: On 2014-10-18 17:19, Richard Weinberger wrote: Am 18.10.2014 um 17:12 schrieb Manfred Schlaegl: On 2014-10-18 16:42, Richard Weinberger wrote: Am 18.10.2014 um 16:23 schrieb Manfred Schlaegl: The pointer to bp stack-frame is no longer used

[uml-devel] [GIT PULL] UML changes for v3.18-rc1

2014-10-13 Thread Richard Weinberger
Linus, The following changes since commit c798360cd1438090d51eeaa8e67985da11362eba: Merge branch 'for-3.18' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu (2014-10-10 07:26:02 -0400) are available in the git repository at:

Re: [uml-devel] [PATCH] um: always use the same type for __syscall_stub_start

2014-10-11 Thread Richard Weinberger
Am 11.10.2014 um 13:29 schrieb Nicolas Iooss: syscall_stub_start is declared with different types in C files: arch/um/kernel/physmem.c: extern int __syscall_stub_start; arch/um/kernel/skas/mmu.c: extern int __syscall_stub_start; arch/um/os-Linux/skas/mem.c: extern unsigned long

Re: [uml-devel] [PATCH] um: always use the same type for __syscall_stub_start

2014-10-11 Thread Richard Weinberger
Am 11.10.2014 um 14:15 schrieb Nicolas Iooss: 2014-10-11 13:42 GMT+02:00 Richard Weinberger: Am 11.10.2014 um 13:29 schrieb Nicolas Iooss: syscall_stub_start is declared with different types in C files: arch/um/kernel/physmem.c: extern int __syscall_stub_start; arch/um/kernel/skas/mmu.c

Re: [uml-devel] [PATCH 08/44] kernel: Move pm_power_off to common code

2014-10-07 Thread Richard Weinberger
Am 07.10.2014 07:28, schrieb Guenter Roeck: arch/um/kernel/reboot.c| 2 -- Acked-by: Richard Weinberger rich...@nod.at Thanks, //richard -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer

Re: [uml-devel] panic() call from non-kernel stack in uml_postsetup

2014-10-03 Thread Richard Weinberger
On Fri, Oct 3, 2014 at 1:21 AM, Thomas Meyer tho...@m3y3r.de wrote: Hi, When you pass an initrd to UML and the size of the initrd is too big for the current kernel memory, a panic() call is done with the message(Out of memory). But this message never hits the stdout as the following stack

Re: [uml-devel] Remove default root?

2014-09-29 Thread Richard Weinberger
On Mon, Sep 29, 2014 at 7:36 PM, Thomas Meyer tho...@m3y3r.de wrote: Hi, I tried to install the latest Fedora 21 from the Network Install Image DVD ( https://fedoraproject.org/get-prerelease#server

Re: [uml-devel] [systemd-devel] Timed out waiting for device dev-disk-by...

2014-09-29 Thread Richard Weinberger
On Mon, Sep 29, 2014 at 8:29 PM, Thomas Meyer tho...@m3y3r.de wrote: Hi, I get a timeout in the Fedora 21 alpha: [ TIME ] Timed out waiting for device dev-disk-by\x2duuid-008af19d\x2d2562\x2d49bd\x2d8907\x2d721ea08f3e14.device. But all devices are available from early kernel start: # ls

Re: [uml-devel] [PATCH] Fix for occasional userspace process in D/Z state bug

2014-09-26 Thread Richard Weinberger
Am 26.09.2014 13:49, schrieb anton.iva...@kot-begemot.co.uk: From: Anton Ivanov antiv...@cisco.com This is a fix for a very old UML bug which can be triggered with stock UML. It takes a lot of effort to trigger it there because the lseek()/read() | write() mechanics of the UBD driver

Re: [uml-devel] Fwd: Mail delivery failed: returning message to sender

2014-09-23 Thread Richard Weinberger
Rob, Am 23.09.2014 16:58, schrieb Rob Landley: As long as somebody's paying attention to UML again: what would be involved in adding support for arm/mips/sh4/sparc... I've mostly wandered off to use qemu these days, and I package system images with native compilers you can boot up and

Re: [uml-devel] [PATCH] um: Register UML with systemd-machined

2014-09-14 Thread Richard Weinberger
On Sun, Sep 14, 2014 at 12:42 PM, Thomas Meyer tho...@m3y3r.de wrote: Call machined's CreateMachine to create a scope unit for the current uml instance. Can you please describe in detail why we need this feature? In general I'm fine with adding such functionality but please make it optional.

Re: [uml-devel] UML Performance improvement patchset

2014-09-04 Thread Richard Weinberger
On Thu, Sep 4, 2014 at 9:00 PM, anton.iva...@kot-begemot.co.uk wrote: Patch dependencies: [PATCH v3 01/10] Epoll based interrupt controller Full redesign of the existing UML poll based controller. The old poll controller incurs huge penalties for IRQ sharing and many devices setup due to

Re: [uml-devel] How can I enable the config option STACKTRACE_SUPPORT for an UML guest ? [was: Fwd: Re: trinity seems not to reap all childs]

2014-08-14 Thread Richard Weinberger
On Wed, Aug 13, 2014 at 9:11 PM, Toralf Förster toralf.foers...@gmx.de wrote: The long story is below. As of now UML has no CONFIG_STACKTRACE_SUPPORT. But Daniel (CC'd) is working on it. Forwarded Message Subject: Re: trinity seems not to reap all childs Date: Wed, 13 Aug

Re: [uml-devel] [PATCH] resource: Fix the case of null pointer access

2014-08-12 Thread Richard Weinberger
Am 12.08.2014 16:46, schrieb Vivek Goyal: Richard and Daniel reported that UML is broken due to changes to resource traversal functions. Problem is that iomem_resource.child can be null and new code does not consider that possibility. Old code used a for loop and that loop will not even

Re: [uml-devel] [PATCH] resource: Fix the case of null pointer access

2014-08-12 Thread Richard Weinberger
Am 12.08.2014 17:04, schrieb Vivek Goyal: On Tue, Aug 12, 2014 at 04:49:35PM +0200, Richard Weinberger wrote: Am 12.08.2014 16:46, schrieb Vivek Goyal: Richard and Daniel reported that UML is broken due to changes to resource traversal functions. Problem is that iomem_resource.child can

Re: [uml-devel] resource: provide new functions to walk through resources breaks UML

2014-08-11 Thread Richard Weinberger
Hi Vivek, Am 11.08.2014 14:22, schrieb Vivek Goyal: On Sun, Aug 10, 2014 at 06:56:14PM +0200, Richard Weinberger wrote: Hi Vivek, Daniel Walter reported that UML is currently broken. The offending commit is: Hi Richard, Thanks for pointing it out. I will look into it. Would you

Re: [uml-devel] resource: provide new functions to walk through resources breaks UML

2014-08-11 Thread Richard Weinberger
Am 11.08.2014 20:44, schrieb Vivek Goyal: On Mon, Aug 11, 2014 at 02:25:56PM +0200, Richard Weinberger wrote: Hi Vivek, Am 11.08.2014 14:22, schrieb Vivek Goyal: On Sun, Aug 10, 2014 at 06:56:14PM +0200, Richard Weinberger wrote: Hi Vivek, Daniel Walter reported that UML is currently

[uml-devel] resource: provide new functions to walk through resources breaks UML

2014-08-10 Thread Richard Weinberger
Hi Vivek, Daniel Walter reported that UML is currently broken. The offending commit is: commit 8c86e70acead629aacb4afcd818add66bf6844d9 Author: Vivek Goyal vgo...@redhat.com Date: Fri Aug 8 14:25:50 2014 -0700 resource: provide new functions to walk through resources It dies in

Re: [uml-devel] [PATCH] uml/net_kern: Eliminate NULL test after alloc_bootmem

2014-07-23 Thread Richard Weinberger
Himangi, Am 19.07.2014 13:34, schrieb Himangi Saraogi: alloc_bootmem and related functions never return NULL. Thus a NULL test or memset after calls to these functions is unnecessary. The following Coccinelle semantic patch was used for making the change: @@ expression E; statement S;

[uml-devel] [PATCH 21/43] um: Use get_signal() signal_setup_done()

2014-07-21 Thread Richard Weinberger
From: Richard Weinberger rich...@nod.at Use the more generic functions get_signal() signal_setup_done() for signal delivery. Signed-off-by: Richard Weinberger rich...@nod.at --- arch/um/include/shared/frame_kern.h | 12 -- arch/um/kernel/signal.c | 27

[uml-devel] [PULL] UML fixes

2014-07-20 Thread Richard Weinberger
. Richard Weinberger (4): Revert um: Fix wait_stub_done() error handling um: Ensure that a stub page cannot get unmapped um: Fix hung task in fix_range_common() um: segv: Save regs only in case of a kernel mode fault

Re: [uml-devel] [PATCH] remove csum_partial_copy_generic_i386 to clean up exception table

2014-07-18 Thread Richard Weinberger
Am 18.07.2014 01:13, schrieb Real Name: On Sat, Jun 28, 2014 at 12:06:28PM +0800, Real Name wrote: On Sat, Jun 21, 2014 at 03:28:52PM +0800, Real Name wrote: On Thu, Jun 05, 2014 at 11:49:49PM +0200, Richard Weinberger wrote: Am 05.06.2014 06:15, schrieb Honggang Li: arch/x86/um/checksum_32.S

Re: [uml-devel] trinity commit 23dc478aba breaks syscall mremap at a 32 bit user mode linux

2014-07-12 Thread Richard Weinberger
Am 12.07.2014 19:16, schrieb Toralf Förster: On 05/02/2014 04:14 PM, Richard Weinberger wrote: Am 02.05.2014 16:07, schrieb Toralf Förster: On 05/02/2014 09:46 AM, Richard Weinberger wrote: Am 01.05.2014 23:34, schrieb Toralf Förster: On 05/01/2014 10:57 PM, Richard Weinberger wrote: Toralf

Re: [uml-devel] [PATCH] checkstack: use $UTS_MACHINE as target architecture

2014-07-08 Thread Richard Weinberger
Am 08.07.2014 10:16, schrieb Konstantin Khlebnikov: On Tue, Jul 8, 2014 at 12:01 PM, Richard Weinberger richard.weinber...@gmail.com wrote: On Tue, Jul 8, 2014 at 7:48 AM, Konstantin Khlebnikov koc...@gmail.com wrote: On Tue, Jul 8, 2014 at 2:05 AM, Andrew Morton a...@linux-foundation.org

Re: [uml-devel] [PATCH] checkstack: use $UTS_MACHINE as target architecture

2014-07-08 Thread Richard Weinberger
Am 08.07.2014 10:47, schrieb Konstantin Khlebnikov: On Tue, Jul 8, 2014 at 12:33 PM, Richard Weinberger rich...@nod.at wrote: Am 08.07.2014 10:30, schrieb Konstantin Khlebnikov: On Tue, Jul 8, 2014 at 12:20 PM, Richard Weinberger rich...@nod.at wrote: Am 08.07.2014 10:16, schrieb Konstantin

Re: [uml-devel] [PATCH] checkstack: use $UTS_MACHINE as target architecture

2014-07-08 Thread Richard Weinberger
Am 08.07.2014 11:03, schrieb Konstantin Khlebnikov: I know. But debugging/profiling of kernel code is much easier when it runs in userspace. I think this is the last use case where uml might beat normal hardware accelerated qemu/kvm. But without SMP and with that high overhead on each syscall

Re: [uml-devel] [PATCH] checkstack: use $UTS_MACHINE as target architecture

2014-07-08 Thread Richard Weinberger
Am 08.07.2014 11:09, schrieb Geert Uytterhoeven: On Tue, Jul 8, 2014 at 11:06 AM, Richard Weinberger rich...@nod.at wrote: Am 08.07.2014 11:03, schrieb Konstantin Khlebnikov: I know. But debugging/profiling of kernel code is much easier when it runs in userspace. I think this is the last use

Re: [uml-devel] [PATCH] checkstack: use $UTS_MACHINE as target architecture

2014-07-08 Thread Richard Weinberger
Am 08.07.2014 11:22, schrieb Geert Uytterhoeven: On Tue, Jul 8, 2014 at 11:14 AM, Richard Weinberger rich...@nod.at wrote: And that you don't need root permissions to run it. You can use KVM also without being root. It depends on the rights of /dev/kvm. Which are controlled by... root

Re: [uml-devel] [PATCH v2] delete unnecessary bootmem struct page array

2014-06-16 Thread Richard Weinberger
Am 16.06.2014 05:28, schrieb Real Name: On Sat, Jun 14, 2014 at 11:44:04AM +0200, Richard Weinberger wrote: Hi! Am 03.06.2014 07:30, schrieb Real Name: From: Honggang Li enjoymind...@gmail.com The patch based on linux-next-2014-06-02. The old init_maps function does two things: 1

Re: [uml-devel] [PATCH v2] delete unnecessary bootmem struct page array

2014-06-14 Thread Richard Weinberger
Hi! Am 03.06.2014 07:30, schrieb Real Name: From: Honggang Li enjoymind...@gmail.com The patch based on linux-next-2014-06-02. The old init_maps function does two things: 1) allocates and initializes one struct page array for bootmem 2) count the number of total pages After removed

Re: [uml-devel] [PATCH] remove csum_partial_copy_generic_i386 to clean up exception table

2014-06-05 Thread Richard Weinberger
Am 05.06.2014 06:15, schrieb Honggang Li: arch/x86/um/checksum_32.S had been copy paste from x86. When build x86 uml, csum_partial_copy_generic_i386 mess up the exception table. In fact, exception table dose not work in uml kernel. Are you sure that exception tables do not work on UML? I

<    1   2   3   4   5   6   7   8   >