Re: [uml-devel] [PATCH] um: use KERN_CONT in stack dump

2017-04-11 Thread Vegard Nossum
On 12 March 2017 at 10:47, Vegard Nossum wrote: > On 12/03/2017 10:45, Richard Weinberger wrote: >> diff --git a/arch/um/kernel/sysrq.c b/arch/um/kernel/sysrq.c >> index aa1b56f5ac68..18eddf677ec6 100644 >> --- a/arch/um/kernel/sysrq.c >> +++ b/arch/um/kernel

Re: [uml-devel] [PATCH] um: use KERN_CONT in stack dump

2017-03-12 Thread Vegard Nossum
On 12/03/2017 10:45, Richard Weinberger wrote: > Am 12.03.2017 um 10:38 schrieb Vegard Nossum: >> Without KERN_CONT, the symbol will appear on a new line, making stack >> traces completely unreadable: [snip] > I think it is better to fix the root of the problem by using a si

[uml-devel] [PATCH] um: use KERN_CONT in stack dump

2017-03-12 Thread Vegard Nossum
rintk+0x0/0x94 [<6001cce6>] show_stack+0xfe/0x15b [<600666ec>] ? dump_stack_print_info+0xe1/0xea [<6008e891>] ? printk+0x0/0x94 [<6023e826>] ? bust_spinlocks+0x0/0x4f [<602343b8>] dump_stack+0x2a/0x2c [<6008e662>] panic+0x170/0x31e Sig

Re: [uml-devel] current_thread_info() returns invalid pointer in early UML boot code

2016-06-12 Thread Vegard Nossum
On 12 June 2016 at 23:05, Richard Weinberger wrote: > Am 12.06.2016 um 22:59 schrieb Vegard Nossum: >> On 12 June 2016 at 22:11, Richard Weinberger >> wrote: >>>> I wonder why setup_env_path() ends up calling the kernel's snprintf(), >>>> I thought th

Re: [uml-devel] current_thread_info() returns invalid pointer in early UML boot code

2016-06-12 Thread Vegard Nossum
On 12 June 2016 at 22:11, Richard Weinberger wrote: >> I wonder why setup_env_path() ends up calling the kernel's snprintf(), >> I thought that it would be using the glibc snprintf() at this point? > > That early you cannot use current() nor any other core kernel stuff > since the kernel has not s

Re: [uml-devel] current_thread_info() returns invalid pointer in early UML boot code

2016-05-22 Thread Vegard Nossum
On 21 May 2016 at 20:18, Thomas Meyer wrote: > Am 21.05.2016 um 15:51 schrieb Vegard Nossum : >> I'm having some trouble with using current_thread_info() during UML >> early boot. Sometimes it works just fine, but often I get segfaults >> because current_thread_info

[uml-devel] [PATCH v2] um: support kcov

2016-05-21 Thread Vegard Nossum
this patch merely exposes it. [v2: disable instrumentation in UML-specific code] Cc: Quentin Casasnovas Cc: Richard Weinberger Cc: Thomas Meyer Cc: user-mode-linux-devel Cc: Dmitry Vyukov Signed-off-by: Vegard Nossum --- arch/um/Kconfig.common| 1 + arch/um/kernel/Makefile | 5

Re: [uml-devel] [PATCH] um: support kcov

2016-05-21 Thread Vegard Nossum
On 05/21/2016 04:05 PM, Dmitry Vyukov wrote: > On Sat, May 21, 2016 at 4:03 PM, Vegard Nossum <mailto:vegard.nos...@oracle.com>> wrote: > > This adds support for kcov to UML. > [...] > Acked-by: Dmitry Vyukov mailto:dvyu...@google.com>> > > Cool! How do

[uml-devel] [PATCH] um: support kcov

2016-05-21 Thread Vegard Nossum
this patch merely exposes it. Cc: Quentin Casasnovas Cc: Richard Weinberger Cc: Thomas Meyer Cc: user-mode-linux-devel Cc: Dmitry Vyukov Signed-off-by: Vegard Nossum --- arch/um/Kconfig.common| 1 + arch/x86/um/vdso/Makefile | 3 +++ 2 files changed, 4 insertions(+) diff --git a/arch/um

[uml-devel] current_thread_info() returns invalid pointer in early UML boot code

2016-05-21 Thread Vegard Nossum
Hi people, I'm having some trouble with using current_thread_info() during UML early boot. Sometimes it works just fine, but often I get segfaults because current_thread_info() is returning an invalid pointer. It looks random: 0x202118, 0x1003e0003, 0xd33b90b3, 0x6db043, etc. I found an earlier t

Re: [uml-devel] [PATCH 1/3] usb: core: Allow compilation on platforms where NO_DMA=y

2016-02-16 Thread Vegard Nossum
On 02/15/2016 09:38 PM, Vegard Nossum wrote: > On 02/15/2016 01:28 PM, Geert Uytterhoeven wrote: >> On Mon, Feb 15, 2016 at 12:49 PM, Vegard Nossum >> wrote: >>> On 02/15/2016 12:21 PM, Geert Uytterhoeven wrote: [...] >>> Assuming this still lets the platform a

Re: [uml-devel] [PATCH 1/3] usb: core: Allow compilation on platforms where NO_DMA=y

2016-02-15 Thread Vegard Nossum
On 02/15/2016 01:28 PM, Geert Uytterhoeven wrote: > On Mon, Feb 15, 2016 at 12:49 PM, Vegard Nossum > wrote: >> On 02/15/2016 12:21 PM, Geert Uytterhoeven wrote: >>> If NO_DMA=y: >>> >>> ERROR: "dma_pool_destroy" [drivers/usb/core/usb

Re: [uml-devel] [PATCH 1/3] usb: core: Allow compilation on platforms where NO_DMA=y

2016-02-15 Thread Vegard Nossum
On 02/15/2016 12:21 PM, Geert Uytterhoeven wrote: > If NO_DMA=y: > > ERROR: "dma_pool_destroy" [drivers/usb/core/usbcore.ko] undefined! > ERROR: "bad_dma_ops" [drivers/usb/core/usbcore.ko] undefined! > ERROR: "dma_pool_free" [drivers/usb/core/usbcore.ko] undefined! > ERROR: "dma

[uml-devel] [PATCH 1/2] usb: support building without CONFIG_HAS_DMA

2016-02-15 Thread Vegard Nossum
y to add a CONFIG_HAS_DMA dependency in the Kconfig menu for the responsible driver -- that driver's functions will hopefully appear somewhere in the stack trace. v2: Reduce the number of #ifdefs by moving code out into helpers. Signed-off-by: Vegard Nossum --- drivers/usb/core/

[uml-devel] [PATCH 2/2] usb: remove HAS_IOMEM dependency from USB_SUPPORT

2016-02-15 Thread Vegard Nossum
n. Signed-off-by: Vegard Nossum --- drivers/usb/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/Kconfig b/drivers/usb/Kconfig index 8ed451d..93ba109 100644 --- a/drivers/usb/Kconfig +++ b/drivers/usb/Kconfig @@ -21,7 +21,6 @@ config USB_EHCI_BIG_ENDIAN_DESC menuconfig U

Re: [uml-devel] [PATCH 20/21] usb: support building without CONFIG_HAS_DMA

2016-02-14 Thread Vegard Nossum
On 02/15/2016 02:09 AM, Greg Kroah-Hartman wrote: > On Wed, Feb 10, 2016 at 03:29:55PM +0100, Vegard Nossum wrote: >> Some platforms don't have DMA, but we should still be able to build >> USB drivers for these platforms. They could still be used through >> vhci_hcd, usbi

Re: [uml-devel] [PATCH 02/21] usb: add HAS_IOMEM dependency to USB_NET2272

2016-02-10 Thread Vegard Nossum
On 02/10/2016 05:15 PM, Greg Kroah-Hartman wrote: > On Wed, Feb 10, 2016 at 03:29:37PM +0100, Vegard Nossum wrote: >> drivers/usb/gadget/udc/net2272.c: In function ‘net2272_remove’: >> drivers/usb/gadget/udc/net2272.c:2232:2: error: implicit declaration of >> function ‘iounm

Re: [uml-devel] [PATCH 21/21] usb: remove HAS_IOMEM dependency from USB_SUPPORT

2016-02-10 Thread Vegard Nossum
On 02/10/2016 03:35 PM, Richard Weinberger wrote: > Am 10.02.2016 um 15:29 schrieb Vegard Nossum: >> USB has not been usable on UML since this commit: >> >> commit e25df1205f37c7bff3ab14fdfc8a5249f3c69c82 >> Author: Martin Schwidefsky >> Date: Thu May 10 15:

[uml-devel] [PATCH 13/21] usb: add HAS_IOMEM dependency to USB_MUSB_HDRC

2016-02-10 Thread Vegard Nossum
drivers/built-in.o: In function `musb_probe': /home/vegard/linux/drivers/usb/musb/musb_core.c:2304: undefined reference to `devm_ioremap_resource' Signed-off-by: Vegard Nossum --- drivers/usb/musb/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/musb/Kconfig

[uml-devel] [PATCH 14/21] usb: add HAS_IOMEM dependency to USB_PXA25X

2016-02-10 Thread Vegard Nossum
drivers/built-in.o: In function `pxa_udc_probe': /home/vegard/linux/drivers/usb/gadget/udc/pxa27x_udc.c:2430: undefined reference to `devm_ioremap_resource' Signed-off-by: Vegard Nossum --- drivers/usb/gadget/udc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/

[uml-devel] [PATCH 16/21] usb: add HAS_IOMEM dependency to USB_OHCI_HCD

2016-02-10 Thread Vegard Nossum
drivers/built-in.o: In function `ohci_platform_probe': /home/vegard/linux/drivers/usb/host/ohci-platform.c:246: undefined reference to `devm_ioremap_resource' Signed-off-by: Vegard Nossum --- drivers/usb/host/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/ho

[uml-devel] [PATCH 19/21] usb: add HAS_IOMEM dependency to USB_ISP1362_HCD

2016-02-10 Thread Vegard Nossum
drivers/built-in.o: In function `isp1362_probe': /home/vegard/linux/drivers/usb/host/isp1362-hcd.c:2668: undefined reference to `devm_ioremap_resource' Signed-off-by: Vegard Nossum --- drivers/usb/host/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host

[uml-devel] [PATCH 15/21] usb: add HAS_IOMEM dependency to USB_APPLEDISPLAY

2016-02-10 Thread Vegard Nossum
warning: (USB_APPLEDISPLAY) selects BACKLIGHT_LCD_SUPPORT which has unmet direct dependencies (HAS_IOMEM) Signed-off-by: Vegard Nossum --- drivers/usb/misc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/misc/Kconfig b/drivers/usb/misc/Kconfig index f7a7fc2..ea10059

[uml-devel] [PATCH 21/21] usb: remove HAS_IOMEM dependency from USB_SUPPORT

2016-02-10 Thread Vegard Nossum
n. Signed-off-by: Vegard Nossum --- drivers/usb/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/Kconfig b/drivers/usb/Kconfig index 8ed451d..93ba109 100644 --- a/drivers/usb/Kconfig +++ b/drivers/usb/Kconfig @@ -21,7 +21,6 @@ config USB_EHCI_BIG_ENDIAN_DESC menuconfig U

[uml-devel] [PATCH 17/21] usb: add HAS_IOMEM dependency to USB_PXA27X

2016-02-10 Thread Vegard Nossum
drivers/built-in.o: In function `pxa_udc_probe': /home/vegard/linux/drivers/usb/gadget/udc/pxa27x_udc.c:2430: undefined reference to `devm_ioremap_resource' Signed-off-by: Vegard Nossum --- drivers/usb/gadget/udc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/

[uml-devel] [PATCH 18/21] usb: add HAS_IOMEM dependency to USB_OXU210HP_HCD

2016-02-10 Thread Vegard Nossum
drivers/built-in.o: In function `oxu_drv_probe': /home/vegard/linux/drivers/usb/host/oxu210hp-hcd.c:3821: undefined reference to `devm_ioremap_resource' Signed-off-by: Vegard Nossum --- drivers/usb/host/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host

[uml-devel] [PATCH 20/21] usb: support building without CONFIG_HAS_DMA

2016-02-10 Thread Vegard Nossum
add a CONFIG_HAS_DMA dependency in the Kconfig menu for the responsible driver. Signed-off-by: Vegard Nossum --- drivers/usb/core/buffer.c | 17 + drivers/usb/core/hcd.c| 45 +++-- include/linux/usb/hcd.h | 8 3 files changed, 64

[uml-devel] [PATCH 11/21] usb: add HAS_IOMEM dependency to USB_XHCI_HCD

2016-02-10 Thread Vegard Nossum
drivers/built-in.o: In function `xhci_plat_probe': /home/vegard/linux/drivers/usb/host/xhci-plat.c:160: undefined reference to `devm_ioremap_resource' Signed-off-by: Vegard Nossum --- drivers/usb/host/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host

[uml-devel] [PATCH 12/21] usb: add HAS_IOMEM dependency to USB_FOTG210_HCD

2016-02-10 Thread Vegard Nossum
drivers/built-in.o: In function `fotg210_hcd_probe': /home/vegard/linux/drivers/usb/host/fotg210-hcd.c:5637: undefined reference to `devm_ioremap_resource' Signed-off-by: Vegard Nossum --- drivers/usb/host/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host

[uml-devel] [PATCH 10/21] usb: add HAS_IOMEM dependency to USB_EHCI_HCD

2016-02-10 Thread Vegard Nossum
ed reference to `devm_ioremap_resource' drivers/built-in.o: In function `isp1362_probe': /home/vegard/linux/drivers/usb/host/isp1362-hcd.c:2668: undefined reference to `devm_ioremap_resource' Signed-off-by: Vegard Nossum --- drivers/usb/host/Kconfig | 1 + 1 file changed, 1 insertion(+)

[uml-devel] [PATCH 09/21] usb: add HAS_IOMEM dependency to USB_DWC2

2016-02-10 Thread Vegard Nossum
drivers/built-in.o: In function `dwc2_driver_probe': /home/vegard/linux/drivers/usb/dwc2/platform.c:491: undefined reference to `devm_ioremap_resource' Signed-off-by: Vegard Nossum --- drivers/usb/dwc2/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/dwc2

[uml-devel] [PATCH 02/21] usb: add HAS_IOMEM dependency to USB_NET2272

2016-02-10 Thread Vegard Nossum
a cast [enabled by default] dev->base_addr = ioremap_nocache(base, len); ^ Signed-off-by: Vegard Nossum --- drivers/usb/gadget/udc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/udc/Kconfig b/drivers/usb/gadget/udc/Kconfig index 753c29b..ca19f6f 100

[uml-devel] [PATCH 06/21] usb: add HAS_IOMEM dependency to USB_MUSB_TUSB6010

2016-02-10 Thread Vegard Nossum
ounmap(sync); ^ Signed-off-by: Vegard Nossum --- drivers/usb/musb/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/musb/Kconfig b/drivers/usb/musb/Kconfig index 45c83ba..0401573 100644 --- a/drivers/usb/musb/Kconfig +++ b/drivers/usb/musb/Kconfig @@ -85,6 +85,7 @@

[uml-devel] [PATCH 07/21] usb: add HAS_IOMEM dependency to USB_C67X00_HCD

2016-02-10 Thread Vegard Nossum
on ‘iounmap’ [-Werror=implicit-function-declaration] iounmap(c67x00->hpi.base); ^ Signed-off-by: Vegard Nossum --- drivers/usb/host/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig index af20d93..e781fb1 100644 --- a/drivers/u

[uml-devel] [PATCH 08/21] usb: add HAS_IOMEM dependency to USB_SL811_HCD

2016-02-10 Thread Vegard Nossum
efault] addr_reg = ioremap(addr->start, 1); ^ drivers/usb/host/sl811-hcd.c:1675:12: warning: assignment makes pointer from integer without a cast [enabled by default] data_reg = ioremap(data->start, 1); ^ Signed-off-by: Vegard Nossum --- drivers/usb/host/Kconfig |

[uml-devel] [PATCH 04/21] usb: add HAS_IOMEM dependency to USB_XHCI_MVEBU

2016-02-10 Thread Vegard Nossum
off-by: Vegard Nossum --- drivers/usb/host/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig index 64d78b1..bf68bd8 100644 --- a/drivers/usb/host/Kconfig +++ b/drivers/usb/host/Kconfig @@ -53,6 +53,7 @@ config USB_XHCI_MTK config USB_XHCI

[uml-devel] [PATCH 01/21] usb: add HAS_IOMEM dependency to USB_ISP116X_HCD

2016-02-10 Thread Vegard Nossum
led by default] addr_reg = ioremap(addr->start, resource_size(addr)); ^ drivers/usb/host/isp116x-hcd.c:1613:11: warning: assignment makes pointer from integer without a cast [enabled by default] data_reg = ioremap(data->start, resource_size(data)); ^ Signed-off-by: V

[uml-devel] [PATCH 03/21] usb: Add HAS_IOMEM dependency to USB_M66592

2016-02-10 Thread Vegard Nossum
nabled by default] reg = ioremap(res->start, resource_size(res)); ^ Signed-off-by: Vegard Nossum --- drivers/usb/gadget/udc/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/udc/Kconfig b/drivers/usb/gadget/udc/Kconfig index ca19f6f..e06efa3 100644 --- a/dr

[uml-devel] [PATCH 05/21] usb: add HAS_IOMEM dependency to USB_R8A66597_HCD

2016-02-10 Thread Vegard Nossum
r from integer without a cast [enabled by default] reg = ioremap(res->start, resource_size(res)); ^ Signed-off-by: Vegard Nossum --- drivers/usb/host/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig index bf68bd8..af20d93 100

Re: [uml-devel] [PATCH] [RFC] um: define and use HAVE_LIBPCAP/HAVE_LIBVDEPLUG

2016-01-02 Thread Vegard Nossum
On 01/02/2016 12:43 PM, Richard Weinberger wrote: > Am 02.01.2016 um 03:31 schrieb Vegard Nossum: >> If you don't have libpcap or libvdeplug installed, you will get build >> failures when compiling certain files: >> >> arch/um/drivers/vde_user.c:8:24: fatal erro

[uml-devel] [PATCH] [RFC] um: define and use HAVE_LIBPCAP/HAVE_LIBVDEPLUG

2016-01-01 Thread Vegard Nossum
w things MAY be done better than a real patch.] Signed-off-by: Vegard Nossum --- arch/um/Kconfig.common | 18 ++ arch/um/Kconfig.net| 2 ++ arch/um/Kconfig.um | 13 + arch/um/Makefile | 5 + 4 files changed, 38 insertions(+) diff --git a/arch/um/K

[uml-devel] [PATCH] um: link with -lpthread

2015-12-31 Thread Vegard Nossum
ate.o): In function `__timer_create_new': (.text+0x168): undefined reference to `pthread_attr_setdetachstate' [...] Obviously we also need -lpthread for librt.a. Signed-off-by: Vegard Nossum --- scripts/link-vmlinux.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/

[uml-devel] [PATCH] uml: flush stdout before forking

2015-12-18 Thread Vegard Nossum
do a fork() which duplicates the non-empty stdout buffer, then glibc flushes the duplicated buffer as each child exits. A simple workaround is to flush before forking. Signed-off-by: Vegard Nossum --- arch/um/os-Linux/start_up.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/um/os-

Re: [uml-devel] [PATCH] uml: fix hostfs mknod()

2015-12-16 Thread Vegard Nossum
On 12/16/2015 11:17 PM, Richard Weinberger wrote: > Am 16.12.2015 um 21:59 schrieb Vegard Nossum: >> An inverted return value check in hostfs_mknod() caused the function >> to return success after handling it as an error (and cleaning up). >> [...] > > Applied! :-) >

[uml-devel] [PATCH] uml: fix hostfs mknod()

2015-12-16 Thread Vegard Nossum
0054985>] fork_handler+0x85/0x90 Let's also get rid of the "cosmic ray protection" while we're at it. Fixes: e9193059b1b3 "hostfs: fix races in dentry_name() and inode_name()" Signed-off-by: Vegard Nossum Cc: Jeff Dike Cc: Al Viro Cc: sta...@vger.kernel.org

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

2015-12-06 Thread 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']) This will crash 9 out of 10 times with various strange messages on th

Re: [uml-devel] [GIT PULL] UML updates for 4.4-rc1

2015-11-22 Thread Vegard Nossum
On 22 November 2015 at 10:23, Lorenzo Colitti wrote: > > On Sun, Nov 22, 2015 at 5:08 PM, Anton Ivanov > wrote: > > set_timer needs -lrt which the patch adds to the link arguments. For some > > reason on your config it is not in the correct location in the command line. > > > > This is being disc

Re: [uml-devel] [GIT PULL] UML updates for 4.4-rc1

2015-11-21 Thread Vegard Nossum
On 10 November 2015 at 23:08, Richard Weinberger wrote: > Linus, > > the following changes since commit > 6a13feb9c82803e2b815eca72fa7a9f5561d7861: > > Linux 4.3 (2015-11-01 16:05:25 -0800) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml.gi

Re: [uml-devel] WARNING: CPU: 0 PID: 908 at include/linux/thread_info.h:128 sigsuspend+0xab/0xc0()

2015-11-16 Thread Vegard Nossum
On 11/16/2015 06:32 PM, Richard Weinberger wrote: > Am 16.11.2015 um 12:49 schrieb Vegard Nossum: >> On 11/16/2015 12:44 PM, Richard Weinberger wrote: >>> Am 16.11.2015 um 10:43 schrieb Vegard Nossum: >>>> Starting UML like this: >>>> >>>> ./vm

Re: [uml-devel] WARNING: CPU: 0 PID: 908 at include/linux/thread_info.h:128 sigsuspend+0xab/0xc0()

2015-11-16 Thread Vegard Nossum
On 11/16/2015 12:44 PM, Richard Weinberger wrote: > Am 16.11.2015 um 10:43 schrieb Vegard Nossum: >> Starting UML like this: >> >> ./vmlinux rootfstype=hostfs rw ignore_console_loglevel con=xterm >> init=/bin/bash >> >> Results in unpredictable behaviou

[uml-devel] WARNING: CPU: 0 PID: 908 at include/linux/thread_info.h:128 sigsuspend+0xab/0xc0()

2015-11-16 Thread Vegard Nossum
Hi, Starting UML like this: ./vmlinux rootfstype=hostfs rw ignore_console_loglevel con=xterm init=/bin/bash Results in unpredictable behaviour, most of the time an xterm flashes on my screen but the process aborts with only "Aborted" on the console where I ran the command, sometimes the xterm r

[uml-devel] [3.8.0-rc1-00091-g4a490b7] BUG: Bad page map (mapcount:-1)

2013-01-02 Thread Vegard Nossum
Hi, A small program like this: #include #include int main(int argc, char *argv[]) { mremap(0, 0xff, 1, 0, memalign(4096, 8192)); return 0; } crashes my UML in this way: BUG: Bad page map in process a.out pte:0024b045 pmd:032301e1 page:620cd068 count:1 mapcount: