[uml-devel] [GIT PULL] UML changes for 3.5-rc1

2012-05-22 Thread Richard Weinberger
ple sigframes um: bury unused _TIF_RESTORE_SIGMASK um/x86: merge (and trim) 32- and 64-bit variants of ptrace.h um: stub_rt_sigsuspend isn't needed these days anymore um: missing checks of __put_user()/__get_user() return values Richard Weinberger (9): um: Remov

Re: [uml-devel] UML: Please help with __module_text_address crashing

2012-05-25 Thread Richard Weinberger
On 25.05.2012 11:19, Boaz Harrosh wrote: > Whats keeping this patch from hitting mainline? to much ugliness? > Is there a way to work without it (somehow) > UML's tty driver is a corner case. (It is a console but does not support virtual consoles, etc...) TTY folks are currently moving most driver

Re: [uml-devel] [PATCH 13/24] TTY: um/line, use tty from tty_port

2012-06-04 Thread Richard Weinberger
mail/linux/kernel/1201.3/01705.html Am 04.06.2012 13:35, schrieb Jiri Slaby: > This means switching to the tty refcounted model so that we will not > race with interrupts. > > Signed-off-by: Jiri Slaby > Cc: Jeff Dike > Cc: Richard Weinberger > Cc: user-mode-linux-devel@lists.s

Re: [uml-devel] [PATCH 13/24] TTY: um/line, use tty from tty_port

2012-06-04 Thread Richard Weinberger
Hi! Am 04.06.2012 17:20, schrieb Jiri Slaby: > On 06/04/2012 02:01 PM, Richard Weinberger wrote: >> I have two questions: 1. Are these patches also usable on 3.4 and >> 3.3 or do they depend on 3.5's TTY changes? > > Hi, I don't think they depend on any changes.

Re: [uml-devel] [PATCH 13/24] TTY: um/line, use tty from tty_port

2012-06-04 Thread Richard Weinberger
Am 04.06.2012 17:41, schrieb Jiri Slaby: > Hmm, I remember. I suggest you to split the patch into several pieces. > For example moving the code from ->open into ->install can be done > separately. Otherwise it's hard to tell what's wrong with the patch as > a whole. > > Also, it would be good to s

Re: [uml-devel] [PATCH 13/24] TTY: um/line, use tty from tty_port

2012-06-04 Thread Richard Weinberger
Am 04.06.2012 18:27, schrieb Boaz Harrosh: > On 06/04/2012 06:42 PM, Richard Weinberger wrote: > >> Am 04.06.2012 17:41, schrieb Jiri Slaby: >>> Hmm, I remember. I suggest you to split the patch into several pieces. >>> For example moving the code from -&g

Re: [uml-devel] [PATCH 13/24] TTY: um/line, use tty from tty_port

2012-06-04 Thread Richard Weinberger
Am 04.06.2012 18:55, schrieb Boaz Harrosh: > No still crashing the same, way. BTW I do not have a systemd Distro. It's > plain old FC12. Though in the lab I have the same crash with FC15. > > The crash is immediately after I login at the initial prompt. (every time) Okay, I'll test my patches wit

[uml-devel] [PATCH 5/6] um: fully use tty_port

2012-06-04 Thread Richard Weinberger
... use all tty_port helpers Signed-off-by: Richard Weinberger --- arch/um/drivers/line.c | 102 +-- arch/um/drivers/line.h |6 ++- arch/um/drivers/ssl.c | 15 ++ arch/um/drivers/stdio_console.c | 20 4 files

[uml-devel] [PATCH 3/6] um: remove line_ioctl()

2012-06-04 Thread Richard Weinberger
line_ioctl() has no real function. Signed-off-by: Richard Weinberger --- arch/um/drivers/line.c | 86 --- arch/um/drivers/line.h |2 - arch/um/drivers/ssl.c |1 - arch/um/drivers/stdio_console.c |1 - 4 files changed

[uml-devel] um: TTY fixes (?)

2012-06-04 Thread Richard Weinberger
This patch set moves the UML console driver to the new TTY port interface. It does ref counting and uses the tty_port_*-helpers. Please note, it's not yet UML mconsole safe! Anyway, I see some really strange things and I'm not sure whether my patch is sane or not... If I implement tty_operations-

[uml-devel] [PATCH 4/6] um: Remove dead code

2012-06-04 Thread Richard Weinberger
Signed-off-by: Richard Weinberger --- arch/um/drivers/ssl.c | 26 -- 1 files changed, 0 insertions(+), 26 deletions(-) diff --git a/arch/um/drivers/ssl.c b/arch/um/drivers/ssl.c index a39d53e..cba95d9 100644 --- a/arch/um/drivers/ssl.c +++ b/arch/um/drivers/ssl.c

[uml-devel] [PATCH 1/6] TTY: um/line, add tty_port

2012-06-04 Thread Richard Weinberger
From: Jiri Slaby And use count from there. Signed-off-by: Jiri Slaby Cc: Jeff Dike Cc: Richard Weinberger Cc: user-mode-linux-devel@lists.sourceforge.net Signed-off-by: Richard Weinberger --- arch/um/drivers/line.c |7 --- arch/um/drivers/line.h |2 +- 2 files changed, 5

[uml-devel] [PATCH 6/6] um: remove count_lock

2012-06-04 Thread Richard Weinberger
this lock is no longer needed. Signed-off-by: Richard Weinberger --- arch/um/drivers/line.c |6 -- 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/arch/um/drivers/line.c b/arch/um/drivers/line.c index 95d5e78..555ccfc 100644 --- a/arch/um/drivers/line.c +++ b/arch/um

[uml-devel] [PATCH 2/6] TTY: um/line, use tty from tty_port

2012-06-04 Thread Richard Weinberger
From: Jiri Slaby This means switching to the tty refcounted model so that we will not race with interrupts. Signed-off-by: Jiri Slaby Cc: Jeff Dike Cc: Richard Weinberger Cc: user-mode-linux-devel@lists.sourceforge.net Signed-off-by: Richard Weinberger --- arch/um/drivers/chan_kern.c

Re: [uml-devel] um: TTY fixes (?)

2012-06-04 Thread Richard Weinberger
Am 04.06.2012 23:17, schrieb Alan Cox: >> On all other ttys login works but bash dies because of of -EIO. >> After vhangup() the tty returns -EIO upon read()/write(). > > You can't re-open the tty because a process is holding on to it, not > closing it and not killable. Fedora shouldn't

Re: [uml-devel] um: TTY fixes (?)

2012-06-05 Thread Richard Weinberger
Am 05.06.2012 13:15, schrieb Alan Cox: > Actually I'd prefer a clever solution which can spot all the fds are the > same process so we can keep compatibility but I've not found a sensible > way to do that. Me too. For UML users the current situation is odd. They have to select between: - Having a

Re: [uml-devel] um: TTY fixes (?)

2012-06-06 Thread Richard Weinberger
Am 04.06.2012 23:17, schrieb Alan Cox: > We can half ignore it on console for the simple reason that you don't > "dial in" to the console. I suspect it may be abusable but I've not found > a way to do so. > BTW: Can't we add such a mode to tty_port? E.g. tty_port->non_dialin_console. 8) Nobody d

Re: [uml-devel] um: TTY fixes (?)

2012-06-07 Thread Richard Weinberger
Am 07.06.2012 09:35, schrieb Boaz Harrosh: > > OK I've run with these for a few days and they are doing > the Job perfectly. Not a single problem. Good to know. > You may add tested-by: Boaz Harrosh > on all patches if you'd like. > > Please push them ASAP to Linus. They fix a real life breaka

Re: [uml-devel] um: TTY fixes (?)

2012-06-07 Thread Richard Weinberger
Am 07.06.2012 11:19, schrieb Alan Cox: > On Thu, 07 Jun 2012 01:17:24 +0200 > Richard Weinberger wrote: > >> Am 04.06.2012 23:17, schrieb Alan Cox: >>> We can half ignore it on console for the simple reason that you >>> don't "dial in" to the co

Re: [uml-devel] um: TTY fixes (?)

2012-06-07 Thread Richard Weinberger
Am 07.06.2012 12:14, schrieb Boaz Harrosh: > On 06/07/2012 12:22 PM, Alan Cox wrote: >> On 06/07/2012 11:45 AM, Richard Weinberger wrote: > >>> >>> We cannot push this patch to Linus or -stable. >>> The problem is that will break other things. >>>

Re: [uml-devel] um: TTY fixes (?)

2012-06-07 Thread Richard Weinberger
Alan, Jiri! If I omit ->hangup(), mingetty (And all other getty implementations) are unable to open /dev/ttyX. open() returns -EIO. Currently I'm testing it on FC12. Also if I do something like "echo foo >/dev/tty1" it fails with -EIO. And now the strange thing, opening and writing an unknown (un

Re: [uml-devel] um: TTY fixes (?)

2012-06-07 Thread Richard Weinberger
Am 07.06.2012 18:37, schrieb Alan Cox: > Yes I know exactly what is going on. However getting a more tolerant > behaviour is going to take a couple more kernels. > So, then please tell me what's the proper way to fix the UML console driver? - tty_port plus ->hangup() works only with a patched ut

Re: [uml-devel] um: TTY fixes (?)

2012-06-07 Thread Richard Weinberger
Am 07.06.2012 18:50, schrieb Alan Cox: > On Thu, 07 Jun 2012 18:32:42 +0200 > Richard Weinberger wrote: > >> Am 07.06.2012 18:37, schrieb Alan Cox: >>> Yes I know exactly what is going on. However getting a more tolerant >>> behaviour is going to take a couple

Re: [uml-devel] [PATCH] um: pass siginfo to guest process

2012-06-07 Thread Richard Weinberger
Am 07.06.2012 22:59, schrieb Martin Pärtel: > Signal handlers in UML guest processes now get correct siginfo_t fields > for SIGTRAP, SIGFPE, SIGILL and SIGBUS. Specifically, si_addr and si_code > are now correct where previously they were si_addr = NULL and si_code = 128. What exactly is broken? I

Re: [uml-devel] [PATCH] um: pass siginfo to guest process

2012-06-07 Thread Richard Weinberger
Am 07.06.2012 23:39, schrieb Martin Pärtel: > On 06/08/2012 12:26 AM, Richard Weinberger wrote: > >> Am 07.06.2012 22:59, schrieb Martin Pärtel: >>> Signal handlers in UML guest processes now get correct siginfo_t fields >>> for SIGTRAP, SIGFPE, SIGILL and SIG

Re: [uml-devel] [PATCH] um: pass siginfo to guest process

2012-06-07 Thread Richard Weinberger
Am 08.06.2012 00:42, schrieb Martin Pärtel: > Oh, darn, indeed. Well, getting si_code right fixed my immediate problem, but > I might look at this again some time next week unless you've fixed it > yourself by then. Thanks! > I can wait for your patch. No need to hurry. :) Thanks, //richard

Re: [uml-devel] [PATCH] um: fix ubd_file_size for read-only files

2012-06-07 Thread Richard Weinberger
Am 07.06.2012 16:39, schrieb Martin Pärtel: > Made ubd_file_size not request write access. Fixes use of read-only images. > > Signed-off-by: Martin Pärtel Applied! Thanks, //richard -- Live Security Virtual Conference

Re: [uml-devel] um: TTY fixes (?)

2012-07-12 Thread Richard Weinberger
Am Thu, 12 Jul 2012 16:49:28 +0200 schrieb Karel Zak : > I just fixed login(1) and agetty (--hangup option). The change will > be available in util-linux v2.23 (rc1 will be this month). > Thank you! //richard -- Live

Re: [uml-devel] feature-removal-schedule entry from 2009

2012-07-17 Thread Richard Weinberger
Am Tue, 17 Jul 2012 17:29:46 -0400 schrieb Theodore Ts'o : > On Tue, Jul 17, 2012 at 12:19:38PM -0500, Rob Landley wrote: > > That should be over on _this_ list then... > > > > (Discussion of IRQF_SAMPLE_RANDOM removal.) > > I took a closer look at the arch/um code, and it wasn't as hard as I >

Re: [uml-devel] [PATCH v3] um: pass siginfo to guest process

2012-07-31 Thread Richard Weinberger
On 31.07.2012 14:05, Martin Pärtel wrote: > What's the status with this? > Oh sorry, I forgot you to answer. It's queued for 3.6 and will be pushed to Linus tomorrow with all other patches. Thanks, //richard -- Live Sec

[uml-devel] [GIT PULL] UML fixes for 3.6-rc1

2012-08-01 Thread Richard Weinberger
: um/line, add tty_port TTY: um/line, use tty from tty_port Martin Pärtel (2): um: fix ubd_file_size for read-only files um: pass siginfo to guest process Richard Weinberger (6): um: remove line_ioctl() um: Remove dead code um: fully use tty_port um

Re: [uml-devel] [PATCH] um: fix missing include with glibc 2.16

2012-08-01 Thread Richard Weinberger
On 31.07.2012 10:28, Vianney le Clément de Saint-Marcq wrote: > From: Vianney le Clément de Saint-Marcq > > As of glibc 2.16, sys/wait.h does no longer include sys/resource.h, > which is needed for getrlimit(). This patch fixes compiling UML with > glibc 2.16. > > Signed-off-by: Vianney le Clément

Re: [uml-devel] [patch] 3.6rc1 tracehook

2012-08-06 Thread Richard Weinberger
Am 06.08.2012 17:37, schrieb Renzo Davoli: > --- > diff -Naur linux-3.6-rc1/arch/um/include/asm/ptrace-generic.h > linux-3.6-rc1.tracehook/arch/um/include/asm/ptrace-generic.h > --- linux-3.6-rc1/arch/um/include/asm/ptrace-generic.h2012-08-03 > 01:38:10.0 +0200 > +++ linux-3.6-rc1

Re: [uml-devel] linux-next: Tree for July 26 (uml)

2012-08-14 Thread Richard Weinberger
Am 14.08.2012 16:26, schrieb David Howells: > Rusty Russell wrote: > CC arch/x86/um/../kernel/module.o arch/x86/um/../kernel/module.c:96:5: error: redefinition of 'apply_relocate_add' include/linux/moduleloader.h:64:19: note: previous definition of 'apply_relocat

Re: [uml-devel] linux-next: Tree for July 26 (uml)

2012-08-14 Thread Richard Weinberger
Am 14.08.2012 16:51, schrieb David Howells: > Richard Weinberger wrote: > >> Is there no way to get this information from the UML subarch? >> Which is currently X86_32 or X86_64. > > Or ppc or ia64? Or are those defunct? Those are defunct. AFAIK viro is workin

Re: [uml-devel] linux-next: Tree for July 26 (uml)

2012-08-14 Thread Richard Weinberger
Am 14.08.2012 16:54, schrieb David Howells: > David Howells wrote: > >> I can certainly try pasting the lines from x86/Kconfig to uml/Kconfig.common >> to switch the REL/RELA bits, but it would be nice to get this from the actual >> arch if possible to reduce redundancy. > > The attached patch w

Re: [uml-devel] linux-next: Tree for July 26 (uml)

2012-08-14 Thread Richard Weinberger
Am 14.08.2012 17:06, schrieb David Howells: > Richard Weinberger wrote: > >> I think arch/x86/um/Kconfig makes more sense. > > warthog>ls arch/um > defconfig Kconfig.common Kconfig.um Makefile-os-Linux scripts/ > drivers/ Kconfig.debug kernel/

Re: [uml-devel] linux-next: Tree for July 26 (uml)

2012-08-14 Thread Richard Weinberger
config X86_32 > def_bool !64BIT > select HAVE_AOUT > + select MODULES_USE_ELF_REL > > config X86_64 > def_bool 64BIT > + select MODULES_USE_ELF_RELA > > config RWSEM_XCHGADD_ALGORITHM > def_bool X86_XADD && 64BIT Looks sane

Re: [uml-devel] build error on 3.6-rc1 and later

2012-08-20 Thread Richard Weinberger
Am 20.08.2012 18:49, schrieb Sage Weil: > I'm getting > > arch/um/os-Linux/time.c: In function 'deliver_alarm': > arch/um/os-Linux/time.c:117:3: error: too few arguments to function > 'alarm_handler' > In file included from arch/um/os-Linux/time.c:13:0: > arch/um/os-Linux/internal.h:1:6: note: de

Re: [uml-devel] Emulate I2C subsystem/slaves

2012-09-03 Thread Richard Weinberger
Am 02.09.2012 22:45, schrieb Peter Hüwe: > I'm curious if there have ever been any attempts to emulate i2c devices under > uml in order to facilitate driver development by using stub drivers. I know none. > If there weren't any attemps yet, what to you thing would be the best > strategy > to

Re: [uml-devel] Emulate I2C subsystem/slaves

2012-09-09 Thread Richard Weinberger
Am 09.09.2012 14:15, schrieb Peter Hüwe: > Am Sonntag, 9. September 2012, 13:28:38 schrieb Jean Delvare: >> Thanks for the info. I thought UML was no longer used with all the >> virtualization solutions available, but apparently I was wrong. > I guess it's mainly used for sandboxing, testing and de

Re: [uml-devel] Emulate I2C subsystem/slaves

2012-09-09 Thread Richard Weinberger
Am 09.09.2012 14:52, schrieb Peter Hüwe: > Am Sonntag, 9. September 2012, 14:23:06 schrieb Richard Weinberger: >> UML does not have IO_MEM but some sub-systems have "depend HAS_IOMEM" which >> is often too coarse grained. >> To deal with that I've introduced

Re: [uml-devel] Emulate I2C subsystem/slaves

2012-09-09 Thread Richard Weinberger
Am 09.09.2012 14:52, schrieb Peter Hüwe: > Am Sonntag, 9. September 2012, 14:23:06 schrieb Richard Weinberger: >> UML does not have IO_MEM but some sub-systems have "depend HAS_IOMEM" which >> is often too coarse grained. >> To deal with that I've introduced

Re: [uml-devel] Emulate I2C subsystem/slaves

2012-09-09 Thread Richard Weinberger
Am 09.09.2012 15:11, schrieb Peter Hüwe: Maybe some parts of the I2C sub-system can also just depend on GENERIC_IO instead of HAS_IOMEM. An arch has GENERIC_IO=y if it supports everything defined in generic-asm/io.h which is more than enough for most stub drivers. >>> >>> The on

Re: [uml-devel] Emulate I2C subsystem/slaves

2012-09-09 Thread Richard Weinberger
Geert Uytterhoeven schrieb: >On Sun, Sep 9, 2012 at 3:27 PM, Richard Weinberger >wrote: >>> For my stub driver I don't need any of that, I'd be fine with the >move of >>> HAS_IOMEM as proposed by Jean. >> >> IMHO you should replace the HAS_IOME

Re: [uml-devel] [PATCH/RFC] um: Preinclude include/linux/kern_levels.h

2012-09-09 Thread Richard Weinberger
Am 09.09.2012 17:09, schrieb Joe Perches: > On Sun, 2012-09-09 at 10:33 +0200, Geert Uytterhoeven wrote: >> Ping? > > Richard? Are you going to pick up this patch? > It seems sensible. > > Geert, I suggest sending it directly to Linus as a fix > if Richard doesn't respond in a few days. I'll pi

Re: [uml-devel] Emulate I2C subsystem/slaves

2012-09-09 Thread Richard Weinberger
Am 09.09.2012 21:12, schrieb Peter Hüwe: >> That's why it may break. If you remove the depends on HAS_IOMEM, it will be >> built on s390 and fail if that codes uses io memory functions. Depending >> on GENERIC_IO fixes that. > > Everything I can select in I2C subsystem compiles fine on s390. > (us

Re: [uml-devel] Emulate I2C subsystem/slaves

2012-09-11 Thread Richard Weinberger
Am Mon, 10 Sep 2012 21:21:52 +0200 schrieb Peter Hüwe : > Am Montag, 10. September 2012, 09:29:18 schrieb Jean Delvare: > > If everybody is happy with this, I'll queue it up for 3.7. > > I'm happy with this ;) > As no UML specific changes are needed I'm also fine.^^ Thanks, //richard ---

Re: [uml-devel] [PATCH/resend/bypass] um: Preinclude include/linux/kern_levels.h

2012-09-25 Thread Richard Weinberger
Am Tue, 25 Sep 2012 22:37:13 +0200 schrieb Geert Uytterhoeven : > On Tue, Sep 25, 2012 at 9:43 PM, Al Viro > wrote: > > On Tue, Sep 25, 2012 at 12:20:55PM -0700, Linus Torvalds wrote: > >> IOW, this part of the patch: > >> > >> - c_flags = -Wp,-MD,$(depfile) $(USER_CFLAGS) -include user.h >

[uml-devel] [GIT PULL] UML fixes for 3.6-final

2012-09-27 Thread Richard Weinberger
rt Uytterhoeven (1): um: Preinclude include/linux/kern_levels.h Richard Weinberger (1): um: Fix IPC on um arch/um/include/asm/processor-generic.h|9 - arch/um/include/shared/common-offsets.h| 10 -- arch/um/include/shared/user.h | 11 +

[uml-devel] [GIT PULL] UML changes for 3.7-rc1

2012-10-09 Thread Richard Weinberger
Linus, please issue the following pull request. UML receives this time only cleanups. The most outstanding change is the 'include "foo.h"' do 'include ' conversion done by Al Viro. It touches many files, that's why the diffstat is rather big. Thanks, //richard The following changes since

Re: [uml-devel] linux-3.6.x ARCH=um will not build

2012-10-13 Thread Richard Weinberger
Am 13.10.2012 15:13, schrieb Dave Humphreys (Bob): > Apologies if this repeats any previous attempts made by me: problems with > something called 'gmane' > > === > ... > CC arch/um/os-Linux/signal.o > arch/um/os-Linux/signal.c:18:8: error: conflicting types for 'sig_info' > /nfs4xp/softwa

Re: [uml-devel] [PATCH] UM: linux/coredump.h needs siginfo_t

2012-10-15 Thread Richard Weinberger
Am 15.10.2012 15:10, schrieb David Howells: > linux/coredump.h should #include asm/siginfo.h for the siginfo_t type. > > Without this the following error occurs when compiling UM defconfig: > > include/linux/coredump.h:15:25: error: unknown type name 'siginfo_t' > > Signed-off-by: David Ho

Re: [uml-devel] linux-3.6.x ARCH=um will not build

2012-10-20 Thread Richard Weinberger
On 20.10.2012 22:33, Lekensteyn wrote: > On Sat, Oct 13, 2012 at 1:27 PM, Richard Weinberger wrote: >> Am 13.10.2012 15:13, schrieb Dave Humphreys (Bob): >>> arch/um/os-Linux/signal.c:18:8: error: conflicting types for 'sig_info' >>> /nfs4xp/software/krn/li

Re: [uml-devel] [PATCH] hostfs: fix a not needed double check

2012-11-24 Thread Richard Weinberger
Am Sat, 24 Nov 2012 10:02:32 +0100 schrieb Marco Stornelli : > Il 18/11/2012 09:59, Marco Stornelli ha scritto: > > Il 20/10/2012 12:02, Marco Stornelli ha scritto: > >> With the commit 3be2be0a32c18b0fd6d623cda63174a332ca0de1 we removed > >> vmtruncate, > >> but actaully there is no need to call

Re: [uml-devel] [PATCH] net : enable tx time stamping in the vde driver.

2012-12-06 Thread Richard Weinberger
Richard Cochran schrieb: >On Thu, Dec 06, 2012 at 04:25:05PM +0100, Paul Chavent wrote: >> This new version moves the skb_tx_timestamp in the main uml >> driver. This should avoid the need to call this function in each >> transport (vde, slirp, tuntap, ...). It also add support for ethtool >> g

Re: [uml-devel] [PATCH 2/2] um: fix build failure due to mess-up of sig_info protorype

2012-12-30 Thread Richard Weinberger
vious declaration > of 'sig_info' was here > > Signed-off-by: Sergei Trofimovich > CC: Jeff Dike > CC: Richard Weinberger > CC: "Martin Pärtel" > CC: Al Viro > CC: user-mode-linux-devel@lists.sourceforge.net > CC: user-mode-linux-u...@lists.sourcefor

Re: [uml-devel] UML Network Related Crashing

2013-01-06 Thread Richard Weinberger
Am Sun, 06 Jan 2013 12:16:02 + schrieb "Dave Humphreys (Bob)" : > I note that my message sent yesterday ended up heavily truncated, so > I have turned on the line-wrap for this one. Sorry about that. Now it passed my spamfilter. ;-) CC'in Al, maybe he has an idea. Does the crash only happen

Re: [uml-devel] File corruption with hostfs and GNU Gold linker

2013-01-07 Thread Richard Weinberger
Am Mon, 7 Jan 2013 17:55:29 -0800 schrieb Tristan Schmelcher : > Hello, > > I am using UML as part of a hermetic build system and I have > encountered an odd file corruption problem with the GNU Gold linker. > When linking a binary inside a UML VM with Gold, if the output path > is on a hostfs mo

Re: [uml-devel] File corruption with hostfs and GNU Gold linker

2013-01-08 Thread Richard Weinberger
Am Tue, 8 Jan 2013 13:30:09 -0800 schrieb Tristan Schmelcher : > Here's a minimal test program that repros the problem. I wrote already a test program. :) Currently fixing hostfs... Thanks, //richard -- Master SQL Serve

Re: [uml-devel] [PATCH 2/2] um: fix build failure due to mess-up of sig_info protorype

2013-01-11 Thread Richard Weinberger
Am Sat, 12 Jan 2013 00:55:17 +0300 schrieb Sergei Trofimovich : > On Sun, 30 Dec 2012 10:40:43 +0100 > Richard Weinberger wrote: > > > Am Sun, 30 Dec 2012 01:37:31 +0300 > > schrieb Sergei Trofimovich : > > > > > arch/um/os-Linux/signal.c:18:8: error: confl

Re: [uml-devel] "Couldn't grant pty"

2013-01-12 Thread Richard Weinberger
Am Sat, 12 Jan 2013 09:55:05 + schrieb "Dave (Bob)" : > Maybe someone can help me with this... > > I have been trying to tie down an issue that I have with "UML Network > Related Crashing" so that Richard can reproduce my problem. > > I am currently trying to use both a 32 bit UML and a 64 b

Re: [uml-devel] "Couldn't grant pty"

2013-01-12 Thread Richard Weinberger
Am Sat, 12 Jan 2013 19:34:34 +0700 schrieb Antoine Martin : > > DEB1-32 login: get_pty : Couldn't grant pty - errno = -2 > > open_pts : Failed to open pts > > get_pty : Couldn't grant pty - errno = -2 > > open_pts : Failed to open pts > > get_pty : Couldn't grant pty - errno = -2 > > open_pts : Fa

Re: [uml-devel] "Couldn't grant pty"

2013-01-12 Thread Richard Weinberger
Am Sat, 12 Jan 2013 16:51:52 +0100 (CET) > The difference in the boot-up log is: > > Checking for host processor cmov support...Yes > Checking that host ptys support output SIGIO...Yes > Checking that host ptys support SIGIO on close...No, enabling > workaround devtmpfs: initialized > > as oppose

Re: [uml-devel] "Couldn't grant pty"

2013-01-12 Thread Richard Weinberger
Am Sat, 12 Jan 2013 18:05:28 +0100 (CET) schrieb "Dave Humphreys (Bob)" : > > Richard, > > In the 64 bit environment (with additional 32 bit glibc) that works, > I do: (/uml_test is a mount point for a filesystem) > > mount --bind /dev //dev > mount --bind /proc //proc > mount --bind /sys //sys

Re: [uml-devel] Network related UML Crashing

2013-01-12 Thread Richard Weinberger
Am Sat, 12 Jan 2013 19:31:13 +0100 (CET) schrieb "Dave Humphreys (Bob)" : > Re: [uml-devel] "Couldn't grant pty" > > Now that I have been able to run the Debiam 32 bit root_fs, I have > returned to the network related crashing. > > This is by way of a status update, I will do more to tie down wh

Re: [uml-devel] File corruption with hostfs and GNU Gold linker

2013-01-25 Thread Richard Weinberger
Hi! Am Fri, 25 Jan 2013 14:27:21 -0800 schrieb Tristan Schmelcher : > Hello again, Richard. Wondering if you have a rough patch that you'd > like me to try out. If not, I'd be happy to work on the fix if you > could give me some pointers to where the issue is in the hostfs code. Not really. I th

Re: [uml-devel] [PATCH] UM: fix make headers_install after UAPI header installation

2013-03-19 Thread Richard Weinberger
Am Tue, 19 Mar 2013 16:03:40 +0100 schrieb Florian Fainelli : > Richard, Jeff, David, > > Does the following fix look valid to you? Thanks! Please give me more than 48h to review a patch. :) I'm very busy with $DAYJOB and UML is currently only a private project. Thanks, //richard -

Re: [uml-devel] [PATCH] UM: fix make headers_install after UAPI header installation

2013-04-04 Thread Richard Weinberger
Am 04.04.2013 16:09, schrieb David Howells: > Florian Fainelli wrote: > >> David, am I completely irrelevant here or do you think this should indeed >> need >> fixing? > > I think headers installation for UM is pointless, but that's just my opinion. Same here. :) Florian, does it break somethin

Re: [uml-devel] BUG: failure at block/blk-core.c:2985/blk_flush_plug_list()

2013-04-05 Thread Richard Weinberger
Am Wed, 3 Apr 2013 00:11:18 -0400 (EDT) schrieb "Peter Butler" : > Running UML from vanilla kernel 3.8.5 compiled with default kernel > configuration and booted with Fedora 18 root fs (as downloaded from > http://fs.devloop.org.uk/). Boots fine about 3/4 of the time, the > rest of the time it cra

Re: [uml-devel] BUG: failure at block/blk-core.c:2985/blk_flush_plug_list()

2013-04-06 Thread Richard Weinberger
Am 06.04.2013 04:26, schrieb Peter Butler: > Looks like the mainline fails early in the build process (?) > > after 'make mrproper' and 'make defconfig' I get this: > > bash $ make ARCH=um linux Please try with "make ARCH=um linux SUBARCH=x86" or "make ARCH=um linux SUBARCH=x86_64". Thanks, //ri

[uml-devel] [PATCH] um: Use generic idle loop

2013-04-15 Thread Richard Weinberger
Signed-off-by: Richard Weinberger --- arch/um/Kconfig.common | 1 + arch/um/kernel/process.c | 27 ++- 2 files changed, 3 insertions(+), 25 deletions(-) diff --git a/arch/um/Kconfig.common b/arch/um/Kconfig.common index bceee66..5783406 100644 --- a/arch/um

[uml-devel] [PATCH] um: Use generic idle loop

2013-04-16 Thread Richard Weinberger
Signed-off-by: Richard Weinberger --- arch/um/Kconfig.common | 1 + arch/um/kernel/process.c | 27 --- 2 files changed, 5 insertions(+), 23 deletions(-) diff --git a/arch/um/Kconfig.common b/arch/um/Kconfig.common index bceee66..5783406 100644 --- a/arch/um

Re: [uml-devel] [PATCHv2] uml: Fix which_tmpdir failure when /dev/shm is a symlink, and in other edge cases

2013-06-20 Thread Richard Weinberger
Am 20.06.2013 15:36, schrieb Tristan Schmelcher: > *sigh* found another bug. Gonna sit on the patch for a bit before > sending v3, just in case I find more issues. No need to hurry. :-) As the patch is non-trivial it's 3.11 material anyway. Thanks, //richard ---

Re: [uml-devel] [PATCH] include/asm-generic/io.h: add 'UML' case just like 'no-MMU'

2013-06-26 Thread Richard Weinberger
Am 26.06.2013 11:33, schrieb Chen Gang: > On 06/26/2013 05:03 PM, Richard Weinberger wrote: >> Am 26.06.2013 10:58, schrieb Chen Gang: >>>> On 06/26/2013 04:39 PM, Richard Weinberger wrote: >>>>>>>>>>>>>>&

Re: [uml-devel] [PATCH] include/asm-generic/io.h: add 'UML' case just like 'no-MMU'

2013-06-26 Thread Richard Weinberger
Am 26.06.2013 10:34, schrieb Chen Gang: > On 06/26/2013 04:05 PM, Richard Weinberger wrote: >>>>>>>> diff --git a/include/asm-generic/io.h b/include/asm-generic/io.h >>>>>>>> index d5afe96..e80331d 100644 >>>>>>>

Re: [uml-devel] [PATCH] include/asm-generic/io.h: add 'UML' case just like 'no-MMU'

2013-06-26 Thread Richard Weinberger
Am 26.06.2013 12:01, schrieb Chen Gang: > On 06/26/2013 05:48 PM, Geert Uytterhoeven wrote: >> On Wed, Jun 26, 2013 at 11:38 AM, Richard Weinberger wrote: >>>>>> Since the API itself already contents the meaning: "return NULL means >>>>>> the ar

Re: [uml-devel] [PATCH] include/asm-generic/io.h: add 'UML' case just like 'no-MMU'

2013-06-26 Thread Richard Weinberger
Am 26.06.2013 10:58, schrieb Chen Gang: > On 06/26/2013 04:39 PM, Richard Weinberger wrote: >>>>>>>>>> The drivers internal code has already check the related return value, >>>>>>>>>> so it is the architecture's duty to 't

Re: [uml-devel] [PATCH] include/asm-generic/io.h: add 'UML' case just like 'no-MMU'

2013-06-26 Thread Richard Weinberger
Hi! Am 26.06.2013 08:31, schrieb Chen Gang: > For "User Mode Linux", it may enable 'MMU', but not need implement > ioremap and iounmap, so "include/asm-generic/io.h" need notice this > case to keep itself 'generic'. > > The related error (with allmodconfig, without pcap): > > CC [M] drivers

Re: [uml-devel] [PATCH] include/asm-generic/io.h: add 'UML' case just like 'no-MMU'

2013-06-26 Thread Richard Weinberger
Hi! Am 26.06.2013 09:56, schrieb Chen Gang: > On 06/26/2013 02:54 PM, Richard Weinberger wrote: >> Hi! >> >> Am 26.06.2013 08:31, schrieb Chen Gang: >>> For "User Mode Linux", it may enable 'MMU', but not need implement >>> ioremap

Re: [uml-devel] [PATCHv3] uml: Fix which_tmpdir failure when /dev/shm is a symlink, and in other edge cases

2013-07-08 Thread Richard Weinberger
Am 08.07.2013 22:19, schrieb Tristan Schmelcher: > From: Tristan Schmelcher > > which_tmpdir did the wrong thing if /dev/shm was a symlink (e.g., to > /run/shm), > if there were multiple mounts on top of each other, if the mount(s) were > obscured by a later mount, or if /dev/shm was a prefix of

[uml-devel] [PULL] UML fixes for 3.11-rc2

2013-07-19 Thread Richard Weinberger
Linus, please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml.git for-linus Special thanks goes to Toralf Föster for continuously testing UML and reporting issues! Thanks, //richard Richard Weinberger (5

Re: [uml-devel] [PATCH] um: Accept /dev/fd/* uml block devices

2013-07-28 Thread Richard Weinberger
Am 27.07.2013 17:23, schrieb Gabriel de Perthuis: > Useful for > * limiting privileges > * opening block devices O_EXCL So, the goal of this patch is to allow passing a file descriptor number as block device instead of a file? I assume you have already a wrapper around UML which exec()'s it such

Re: [uml-devel] Using UML in libguestfs

2013-08-09 Thread Richard Weinberger
Am 09.08.2013 23:15, schrieb Richard W.M. Jones: > On Fri, Aug 09, 2013 at 09:43:55PM +0100, Richard W.M. Jones wrote: >> * I'm trying to use a serial port to communicate between guest and >> host, using ssl3=fd:. This causes the Linux process to crash soon >> (but not immediately) after the guest

Re: [uml-devel] How to reliably kill all vmlinux processes for a single VM?

2013-08-13 Thread Richard Weinberger
Am 13.08.2013 12:36, schrieb Richard W.M. Jones: > On Mon, Aug 12, 2013 at 09:53:00AM +0100, Richard W.M. Jones wrote: >> On Mon, Aug 12, 2013 at 10:15:24AM +0200, richard -rw- weinberger wrote: >>> Found the root cause, patch is on the way. >> >> I can test patches if you CC me on them. > > I'm s

Re: [uml-devel] [PATCH] print_worker_info: Handle pointer with more care

2013-08-16 Thread Richard Weinberger
Am 16.08.2013 18:28, schrieb Tejun Heo: > On Fri, Aug 16, 2013 at 06:15:07PM +0200, Richard Weinberger wrote: >> On UML I hit the case that pwq is NULL. >> Then we oops at &pwq->wq... > > Hmmm? I'm confused. &pwq->wq is pwq's pointer + wq's off

Re: [uml-devel] [PATCH] print_worker_info: Handle pointer with more care

2013-08-16 Thread Richard Weinberger
Am 16.08.2013 18:45, schrieb Tejun Heo: > Hello, > > On Fri, Aug 16, 2013 at 06:38:58PM +0200, Richard Weinberger wrote: >>> cc'ing uml people. Hey, guys, workqueue uses proble_kernel_read() to >>> print out workqueue related information during oops because

Re: [uml-devel] [PATCH] print_worker_info: Handle pointer with more care

2013-08-16 Thread Richard Weinberger
Am 16.08.2013 18:53, schrieb Richard Weinberger: >> Yeah, and that should be fine. &pwq->wq would be just an offset of wq > > Yep. Now my brain also parsed the C notation correctly. > Sorry for the completely wrong patch. > >> from NULL which is an invalid pointer

[uml-devel] [PATCH] um: Implement probe_kernel_read()

2013-08-16 Thread Richard Weinberger
_read() to read details from the kernel workers. As kernel worker are completely async pointers may turn NULL while reading them. Cc: Cc: # 3.10.x Signed-off-by: Richard Weinberger --- arch/um/include/shared/os.h | 1 + arch/um/kernel/Makefile | 2 +- arch/um/kernel/maccess.c

Re: [uml-devel] [PATCH] um: Implement probe_kernel_read()

2013-08-16 Thread Richard Weinberger
Am 16.08.2013 21:44, schrieb Richard Weinberger: > UML needs it's own probe_kernel_read() to handle kernel > mode faults correctly. > The implementation uses mincore() on the host side to detect > whether a page is owned by the UML kernel process. > > This fixes also a poss

[uml-devel] [PATCH v2] um: Implement probe_kernel_read()

2013-08-17 Thread Richard Weinberger
_read() to read details from the kernel workers. As kernel worker are completely async pointers may turn NULL while reading them. Cc: Cc: Cc: # 3.10.x Signed-off-by: Richard Weinberger --- arch/um/include/shared/os.h | 1 + arch/um/kernel/Makefile | 2 +- arch/um/kernel/maccess.c

[uml-devel] [PATCH] um: ubd: Add REQ_FLUSH suppport

2013-08-17 Thread Richard Weinberger
UML's block device driver does not support write barriers, to support this this patch adds REQ_FLUSH suppport. Every time the block layer sends a REQ_FLUSH we fsync() now our backing file to guarantee data consistency. Cc: rjo...@redhat.com Signed-off-by: Richard Weinberger --- arch/um/dr

[uml-devel] [PATCH 4/4] um: Run UML in it's own session.

2013-08-18 Thread Richard Weinberger
If UML is not run by a shell it can happen that UML will kill unrelated proceses upon a fatal exit because it issues a kill(0, ...). To prevent such oddities we create a new session in main(). Cc: rjo...@redhat.com Reported-by: Richard W.M. Jones Signed-off-by: Richard Weinberger --- arch/um

[uml-devel] [PATCH 2/4] um: ubd: Introduce submit_request()

2013-08-18 Thread Richard Weinberger
Just a clean-up patch to remove the open coded variants and to ensure that all requests are submitted the same way. Signed-off-by: Richard Weinberger --- arch/um/drivers/ubd_kern.c | 32 +++- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/arch/um

[uml-devel] [PATCH 3/4] um: Cleanup SIGTERM handling

2013-08-18 Thread Richard Weinberger
handler for all UML helper threads/processes. Such that last_ditch_exit() does not get called multiple times and all processes can exit due to SIGTERM. Cc: rjo...@redhat.com Reported-by: Richard W.M. Jones Signed-off-by: Richard Weinberger --- arch/um/drivers/ubd.h | 1 - arch/um/drivers

[uml-devel] [PATCH 1/4] um: ubd: Add REQ_FLUSH suppport

2013-08-18 Thread Richard Weinberger
UML's block device driver does not support write barriers, to support this this patch adds REQ_FLUSH suppport. Every time the block layer sends a REQ_FLUSH we fsync() now our backing file to guarantee data consistency. Cc: rjo...@redhat.com Reported-by: Richard W.M. Jones Signed-off-by: Ri

Re: [uml-devel] [PATCH 4/4] um: Run UML in it's own session.

2013-08-19 Thread Richard Weinberger
Am 19.08.2013 11:30, schrieb Richard W.M. Jones: > On Sun, Aug 18, 2013 at 01:30:09PM +0200, Richard Weinberger wrote: >> If UML is not run by a shell it can happen that UML >> will kill unrelated proceses upon a fatal exit because >> it issues a kill(0, ...). >> To prev

[uml-devel] [PATCH 7/8] unicore32: Do not use SUBARCH

2013-08-21 Thread Richard Weinberger
Forces the user to specify CROSS_COMPILE at compile time instead of automatically selecting more or less randomly a cross compiler Signed-off-by: Richard Weinberger --- arch/unicore32/Makefile | 5 - 1 file changed, 5 deletions(-) diff --git a/arch/unicore32/Makefile b/arch/unicore32

[uml-devel] [PATCH 3/8] um: Remove old defconfig

2013-08-21 Thread Richard Weinberger
The old unified defconfig is no longer needed. Signed-off-by: Richard Weinberger --- arch/um/defconfig | 901 -- 1 file changed, 901 deletions(-) delete mode 100644 arch/um/defconfig diff --git a/arch/um/defconfig b/arch/um/defconfig deleted

[uml-devel] [PATCH 2/8] um: Do not use SUBARCH

2013-08-21 Thread Richard Weinberger
quot;and make x86_64_defconfig ARCH=um" replaces "make defconfig ARCH=um SUBARCH=x86_64" Finally a "make ARCH=um" will produce an UML as described in your .config and you don't have to worry about setting the correct SUBARCH. This patch is based on: https://lkml.org

<    1   2   3   4   5   6   7   8   9   >