]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit73e38eaf61ae418076331e2fa29c36567359b403
treee6a9f6c007ba96432618045ab5baa4741405409d
parent0bbfd3f5cd88dfb700fa28fc2c67a191b6da731b
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