Cannot compile UML in Ubuntu 20.04.5 anymore

2023-03-03 Thread Roberto Sassu
Hi it looks like one recent commit causes the kernel build to break. GEN scripts/gdb/linux/constants.py In file included from /usr/include/stdlib.h:1013, from arch/um/os-Linux/helper.c:6: /usr/include/x86_64-linux-gnu/bits/stdlib-float.h: In function ‘atof’: /usr/include/x8

Re: Cannot compile UML in Ubuntu 20.04.5 anymore

2023-03-06 Thread Roberto Sassu
On Sat, 2023-03-04 at 12:35 +0800, David Gow wrote: > On Fri, 3 Mar 2023 at 16:37, Roberto Sassu > wrote: > > Hi > > > > it looks like one recent commit causes the kernel build to break. > > > > GEN scripts/gdb/linux/constants.py > > In fil

[PATCH] um: Add winch to winch_handlers before registering winch IRQ

2024-03-07 Thread Roberto Sassu
From: Roberto Sassu Registering a winch IRQ is racy, an interrupt may occur before the winch is added to the winch_handlers list. If that happens, register_winch_irq() adds to that list a winch that is scheduled to be (or has already been) freed, causing a panic later in winch_cleanup(). Avoid

Re: [PATCH] um: Add winch to winch_handlers before registering winch IRQ

2024-03-07 Thread Roberto Sassu
On Thu, 2024-03-07 at 11:49 +0100, Roberto Sassu wrote: > From: Roberto Sassu > > Registering a winch IRQ is racy, an interrupt may occur before the winch is > added to the winch_handlers list. > > If that happens, register_winch_irq() adds to that list a winch that is > sc

Re: [PATCH] um: Add winch to winch_handlers before registering winch IRQ

2024-03-28 Thread Roberto Sassu
On 3/7/2024 1:43 PM, Roberto Sassu wrote: On Thu, 2024-03-07 at 11:49 +0100, Roberto Sassu wrote: From: Roberto Sassu Registering a winch IRQ is racy, an interrupt may occur before the winch is added to the winch_handlers list. If that happens, register_winch_irq() adds to that list a winch

Re: [PATCH] um: Add winch to winch_handlers before registering winch IRQ

2024-04-23 Thread Roberto Sassu
On Thu, 2024-03-28 at 09:25 +0100, Johannes Berg wrote: > On Thu, 2024-03-07 at 11:49 +0100, Roberto Sassu wrote: > > From: Roberto Sassu > > > > Registering a winch IRQ is racy, an interrupt may occur before the winch is > > added to the winch_handlers lis

[PATCH] arch/x86/um: Disable UBSAN sanitization

2024-05-13 Thread Roberto Sassu
From: Roberto Sassu Disable UBSAN sanitization on UML, since UML does not support it. This fixes the error message when building the kernel: CALLscripts/checksyscalls.sh VDSOarch/x86/um/vdso/vdso.so.dbg arch/x86/um/vdso/vdso.so.dbg: undefined symbols found Signed-off-by: Roberto

Re: [PATCH] arch/x86/um: Disable UBSAN sanitization

2024-05-13 Thread Roberto Sassu
On Mon, 2024-05-13 at 14:29 +0200, Johannes Berg wrote: > On Mon, 2024-05-13 at 14:27 +0200, Roberto Sassu wrote: > > From: Roberto Sassu > > > > Disable UBSAN sanitization on UML, since UML does not support it. > > > > Luckily, that isn't actually tru

Re: [PATCH] arch/x86/um: Disable UBSAN sanitization

2024-05-13 Thread Roberto Sassu
On Mon, 2024-05-13 at 14:52 +0200, Johannes Berg wrote: > On Mon, 2024-05-13 at 14:42 +0200, Roberto Sassu wrote: > > On Mon, 2024-05-13 at 14:29 +0200, Johannes Berg wrote: > > > On Mon, 2024-05-13 at 14:27 +0200, Roberto Sassu wrote: > > > > From: Roberto Sassu

[PATCH v2] x86: um: vdso: Disable UBSAN instrumentation

2024-05-13 Thread Roberto Sassu
From: Roberto Sassu The UBSAN instrumentation cannot work in the vDSO since it is executing in userspace, so disable it in the Makefile. Fixes the build failures such as: CALLscripts/checksyscalls.sh VDSOarch/x86/um/vdso/vdso.so.dbg arch/x86/um/vdso/vdso.so.dbg: undefined symbols

Re: [PATCH] arch/x86/um: Disable UBSAN sanitization

2024-05-13 Thread Roberto Sassu
On Mon, 2024-05-13 at 15:08 +0200, Johannes Berg wrote: > On Mon, 2024-05-13 at 14:58 +0200, Roberto Sassu wrote: > > On Mon, 2024-05-13 at 14:52 +0200, Johannes Berg wrote: > > > On Mon, 2024-05-13 at 14:42 +0200, Roberto Sassu wrote: > > > > On Mon, 2024-05-13 at 14