Re: [PATCH 5/7] x86/ioremap: prevent additions against the NULL pointer

2025-03-14 Thread Andrew Cooper
On 14/03/2025 8:43 am, Roger Pau Monné wrote: > On Thu, Mar 13, 2025 at 05:21:13PM +, Andrew Cooper wrote: >> On 13/03/2025 3:30 pm, Roger Pau Monne wrote: >>> This was reported by clang UBSAN as: >>> >>> UBSAN: Undefined behaviour in arch/x86/mm.c:6297:40 >>> applying zero offset to null point

Re: [PATCH 5/7] x86/ioremap: prevent additions against the NULL pointer

2025-03-14 Thread Roger Pau Monné
On Thu, Mar 13, 2025 at 05:21:13PM +, Andrew Cooper wrote: > On 13/03/2025 3:30 pm, Roger Pau Monne wrote: > > This was reported by clang UBSAN as: > > > > UBSAN: Undefined behaviour in arch/x86/mm.c:6297:40 > > applying zero offset to null pointer > > [...] > > Xen call trace: > > [] R com

Re: [PATCH 5/7] x86/ioremap: prevent additions against the NULL pointer

2025-03-13 Thread Andrew Cooper
On 13/03/2025 3:30 pm, Roger Pau Monne wrote: > This was reported by clang UBSAN as: > > UBSAN: Undefined behaviour in arch/x86/mm.c:6297:40 > applying zero offset to null pointer > [...] > Xen call trace: > [] R common/ubsan/ubsan.c#ubsan_epilogue+0xa/0xc0 > [] F __ubsan_handle_pointer_ove