]> 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)
commitff95c3ee4eaec57304f5702a1a1ffa942a6405c9
treee6a9f6c007ba96432618045ab5baa4741405409d
parent1ed3b676dc664751067c40c0c8e10e8424c4e0d1
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