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
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
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
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
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
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
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
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
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
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
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
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
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
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/
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
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
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
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:
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
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/
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
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
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
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
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/
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
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
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
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
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(+)
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
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
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 @@
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
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 |
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
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
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
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
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
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
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/
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-
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! :-)
>
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
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
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
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
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
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
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
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:
52 matches
Mail list logo