Re: [PATCH v3 4/7] aarch64: Add AArch64 Kernel Control Flow Integrity implementation

2025-09-17 Thread Kees Cook
On Sat, Sep 13, 2025 at 04:43:29PM -0700, Andrew Pinski wrote: > On Sat, Sep 13, 2025 at 4:28 PM Kees Cook wrote: > > > > Implement AArch64-specific KCFI backend. > > > > - Trap debugging through ESR (Exception Syndrome Register) encoding > > in BRK instruction immediate values. > > > > - Scratc

Re: [PATCH v3 4/7] aarch64: Add AArch64 Kernel Control Flow Integrity implementation

2025-09-14 Thread Andrew Pinski
On Sun, Sep 14, 2025 at 12:45 PM Kees Cook wrote: > > On Sat, Sep 13, 2025 at 04:43:29PM -0700, Andrew Pinski wrote: > > On Sat, Sep 13, 2025 at 4:28 PM Kees Cook wrote: > > > > > > Implement AArch64-specific KCFI backend. > > > > > > - Trap debugging through ESR (Exception Syndrome Register) enc

Re: [PATCH v3 4/7] aarch64: Add AArch64 Kernel Control Flow Integrity implementation

2025-09-14 Thread Kees Cook
On Sat, Sep 13, 2025 at 04:43:29PM -0700, Andrew Pinski wrote: > On Sat, Sep 13, 2025 at 4:28 PM Kees Cook wrote: > > > > Implement AArch64-specific KCFI backend. > > > > - Trap debugging through ESR (Exception Syndrome Register) encoding > > in BRK instruction immediate values. > > > > - Scratc

Re: [PATCH v3 4/7] aarch64: Add AArch64 Kernel Control Flow Integrity implementation

2025-09-13 Thread Andrew Pinski
On Sat, Sep 13, 2025 at 4:28 PM Kees Cook wrote: > > Implement AArch64-specific KCFI backend. > > - Trap debugging through ESR (Exception Syndrome Register) encoding > in BRK instruction immediate values. > > - Scratch register allocation using w16/w17 (x16/x17) following > AArch64 procedure c

[PATCH v3 4/7] aarch64: Add AArch64 Kernel Control Flow Integrity implementation

2025-09-13 Thread Kees Cook
Implement AArch64-specific KCFI backend. - Trap debugging through ESR (Exception Syndrome Register) encoding in BRK instruction immediate values. - Scratch register allocation using w16/w17 (x16/x17) following AArch64 procedure call standard for intra-procedure-call registers. Assembly Code