Re: [PATCH v3 0/2] arm64: livepatch: Enable livepatch without sframe

2025-05-19 Thread Dylan Hatch
> FWIW: I reviewed the patch above ([1]) already but didn't hear anything > back. Sorry for the delay on this, last week was busier than expected on my end. I'm aiming to send the revised patch within the next couple of days. On Mon, May 19, 2025 at 9:40 AM Mark Rutland wrote: > I've had a quick

[PATCH v3 0/2] livepatch, arm64/module: Enable late module relocations.

2025-05-22 Thread Dylan Hatch
reduce redundancy. Dylan Hatch (2): livepatch, x86/module: Generalize late module relocation locking. arm64/module: Use text-poke API for late relocations. arch/arm64/kernel/module.c | 114 ++--- arch/x86/kernel/module.c | 8 +-- kernel/livepatch/core.c

[PATCH v3 1/2] livepatch, x86/module: Generalize late module relocation locking.

2025-05-22 Thread Dylan Hatch
Late module relocations are an issue on any arch that supports livepatch, so move the text_mutex locking to the livepatch core code. Signed-off-by: Dylan Hatch --- arch/x86/kernel/module.c | 8 ++-- kernel/livepatch/core.c | 18 +- 2 files changed, 15 insertions(+), 11

[PATCH v3 2/2] arm64/module: Use text-poke API for late relocations.

2025-05-22 Thread Dylan Hatch
_poke() for late relocations"). Signed-off-by: Dylan Hatch Acked-by: Song Liu --- arch/arm64/kernel/module.c | 114 ++--- 1 file changed, 69 insertions(+), 45 deletions(-) diff --git a/arch/arm64/kernel/module.c b/arch/arm64/kernel/module.c index 06b

Re: [PATCH v3 2/2] arm64/module: Use text-poke API for late relocations.

2025-05-22 Thread Dylan Hatch
On Thu, May 22, 2025 at 11:43 AM Dylan Hatch wrote: > -static int reloc_data(enum aarch64_reloc_op op, void *place, u64 val, int > len) > +static int reloc_data(enum aarch64_reloc_op op, void *place, u64 val, int > len, > + struct module *me) > {

[PATCH v4 0/2] livepatch, arm64/module: Enable late module relocations.

2025-05-22 Thread Dylan Hatch
reduce redundancy. Dylan Hatch (2): livepatch, x86/module: Generalize late module relocation locking. arm64/module: Use text-poke API for late relocations. arch/arm64/kernel/module.c | 113 ++--- arch/x86/kernel/module.c | 8 +-- kernel/livepatch/core.c

[PATCH v4 1/2] livepatch, x86/module: Generalize late module relocation locking.

2025-05-22 Thread Dylan Hatch
Late module relocations are an issue on any arch that supports livepatch, so move the text_mutex locking to the livepatch core code. Signed-off-by: Dylan Hatch Acked-by: Song Liu --- arch/x86/kernel/module.c | 8 ++-- kernel/livepatch/core.c | 18 +- 2 files changed, 15

[PATCH v4 2/2] arm64/module: Use text-poke API for late relocations.

2025-05-22 Thread Dylan Hatch
_poke() for late relocations"). Signed-off-by: Dylan Hatch Acked-by: Song Liu --- arch/arm64/kernel/module.c | 113 ++--- 1 file changed, 69 insertions(+), 44 deletions(-) diff --git a/arch/arm64/kernel/module.c b/arch/arm64/kernel/module.c index 06b

Re: [PATCH v4 1/2] livepatch, x86/module: Generalize late module relocation locking.

2025-05-28 Thread Dylan Hatch
clear_relocate_add(sechdrs, strtab, symndx, secndx, pmod); > > + > > + if (!early) > > + mutex_unlock(&text_mutex); > > + return ret; > > } > > Best Regards, > Petr Thanks, Dylan On Tue, May 27, 2025 at 7:46 AM Petr Mladek wrote: >