Re: Bug: Write fault blocked by KUAP! (kernel 6.2-rc6, Talos II)

2023-02-16 Thread Erhard F.
On Thu, 9 Feb 2023 07:21:55 + Christophe Leroy wrote: > An easy fix would probably be to also check the suffix as a prefixed > instruction with 0 as suffix is not valid : > > diff --git a/arch/powerpc/include/asm/inst.h > b/arch/powerpc/include/asm/inst.h > index 684d3f453282..87084a52598b

Re: Bug: Write fault blocked by KUAP! (kernel 6.2-rc6, Talos II)

2023-02-08 Thread Christophe Leroy
Le 03/02/2023 à 03:45, Nicholas Piggin a écrit : > On Fri Feb 3, 2023 at 12:02 PM AEST, Benjamin Gray wrote: >> On Fri, 2023-02-03 at 00:46 +0100, Erhard F. wrote: >>> Happened during boot: >>> >>> [...] >>> Creating 6 MTD partitions on "flash@0": >>> 0x-0x0400 : "PNOR" >>> 0x

Re: Bug: Write fault blocked by KUAP! (kernel 6.2-rc6, Talos II)

2023-02-03 Thread Erhard F.
On Fri, 03 Feb 2023 13:02:59 +1100 Benjamin Gray wrote: > Do you have a QEMU command to boot this? I tried with > > qemu-system-ppc64 --nographic --vga none --kernel ./vmlinux > > But it crashes immediately on booting the kernel (same using KVM on > Power9). No, this is a custom kernel

Re: Bug: Write fault blocked by KUAP! (kernel 6.2-rc6, Talos II)

2023-02-02 Thread Nicholas Piggin
On Fri Feb 3, 2023 at 12:02 PM AEST, Benjamin Gray wrote: > On Fri, 2023-02-03 at 00:46 +0100, Erhard F. wrote: > > Happened during boot: > > > > [...] > > Creating 6 MTD partitions on "flash@0": > > 0x-0x0400 : "PNOR" > > 0x01b21000-0x03921000 : "BOOTKERNEL" > > 0x

Re: Bug: Write fault blocked by KUAP! (kernel 6.2-rc6, Talos II)

2023-02-02 Thread Benjamin Gray
On Fri, 2023-02-03 at 00:46 +0100, Erhard F. wrote: > Happened during boot: > > [...] > Creating 6 MTD partitions on "flash@0": > 0x-0x0400 : "PNOR" > 0x01b21000-0x03921000 : "BOOTKERNEL" > 0x03a44000-0x03a68000 : "CAPP" > 0x03a88000-0x03a89000 : "VERSIO