x86/alternative: Introduce text_poke_copy
authorSong Liu <song@kernel.org>
Fri, 4 Feb 2022 18:57:38 +0000 (10:57 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 8 Feb 2022 02:13:01 +0000 (18:13 -0800)
commit0e06b40371682b6b70ed0302a7baec0698ada95c
tree1454520f94a7d83492bc05abda857a7a01a36550
parentd00c6473b1ee9050cc36d008c6d30bf0d3de0524
x86/alternative: Introduce text_poke_copy

This will be used by BPF jit compiler to dump JITed binary to a RX huge
page, and thus allow multiple BPF programs sharing the a huge (2MB) page.

Signed-off-by: Song Liu <song@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/bpf/20220204185742.271030-6-song@kernel.org
arch/x86/include/asm/text-patching.h
arch/x86/kernel/alternative.c