Re: [uml-devel] [GIT PULL] UML fixes for 4.4-rc5

2015-12-08 Thread Linus Torvalds
On Tue, Dec 8, 2015 at 1:39 PM, Richard Weinberger wrote: > > This pull request contains various bug fixes, most of them are > fall out from the merge window. > > Richard Weinberger (2): > um: Fix fpstate handling Ugh. This is very ugly. It's apparently the result of commit 530e5c827182 ("x

Re: [uml-devel] uml instance crashes when started from script

2015-12-08 Thread Richard Weinberger
Hi! Am 06.12.2015 um 16:34 schrieb Vegard Nossum: > Hi, > > I've been running into some odd crashes when starting my UML instance from > Python. This is my script: > > import subprocess > subprocess.check_call(['path/to/vmlinux', 'mem=2048M', 'rootfstype=hostfs', > 'rw', 'init=/bin/bash']) >

Re: [uml-devel] [PATCH v2 1/2] um: Set secure access mode for temporary file

2015-12-08 Thread Richard Weinberger
Am 08.12.2015 um 21:37 schrieb Tristan Schmelcher: > On 6 December 2015 at 09:43, Mickaël Salaün wrote: >> Well, I'm concerned to use umask because it is not thread-safe and drivers >> may use create_mem_file() in a multi-theaded context. > > You are right. We should perhaps set the umask to 070

[uml-devel] [GIT PULL] UML fixes for 4.4-rc5

2015-12-08 Thread Richard Weinberger
Linus, The following changes since commit 527e9316f8ec44bd53d90fb9f611fa752bb9: Linux 4.4-rc4 (2015-12-06 15:43:12 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml.git for-linus-4.4-rc5 for you to fetch changes up to 887a9853092c09e205

Re: [uml-devel] [PATCH] arch: um: fix error when linking vmlinux.

2015-12-08 Thread Richard Weinberger
On Wed, Nov 18, 2015 at 3:12 PM, Lorenzo Colitti wrote: > On gcc Ubuntu 4.8.4-2ubuntu1~14.04, linking vmlinux fails with: > > arch/um/os-Linux/built-in.o: In function `os_timer_create': > /android/kernel/android/arch/um/os-Linux/time.c:51: undefined reference to > `timer_create' > arch/um/os-Linu

Re: [uml-devel] [PATCH] um: fix returns without va_end

2015-12-08 Thread Richard Weinberger
On Tue, Dec 1, 2015 at 9:18 PM, Geyslan G. Bem wrote: > When using va_list ensure that va_start will be followed by va_end. > > Signed-off-by: Geyslan G. Bem > --- > arch/um/drivers/net_user.c | 10 ++ > 1 file changed, 6 insertions(+), 4 deletions(-) > > diff --git a/arch/um/drivers/net

Re: [uml-devel] [PATCH v2 1/2] um: Set secure access mode for temporary file

2015-12-08 Thread Tristan Schmelcher
On 6 December 2015 at 09:43, Mickaël Salaün wrote: > Well, I'm concerned to use umask because it is not thread-safe and drivers > may use create_mem_file() in a multi-theaded context. You are right. We should perhaps set the umask to 0700 permanently during process start. But I am not sure if th