x86/alternative: Introduce text_poke_set
authorSong Liu <song@kernel.org>
Fri, 20 May 2022 23:57:52 +0000 (16:57 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 23 May 2022 21:07:38 +0000 (23:07 +0200)
commitaadd1b678ebef81cc3ed23663253ae3749cdc673
treee6a9f6c007ba96432618045ab5baa4741405409d
parentd88bb5eed04ce50cc20e7f9282977841728be798
x86/alternative: Introduce text_poke_set

Introduce a memset like API for text_poke. This will be used to fill the
unused RX memory with illegal instructions.

Suggested-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Song Liu <song@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/bpf/20220520235758.1858153-3-song@kernel.org
arch/x86/include/asm/text-patching.h
arch/x86/kernel/alternative.c