diff options
author | Mark Rutland <[email protected]> | 2023-01-23 13:46:01 +0000 |
---|---|---|
committer | Catalin Marinas <[email protected]> | 2023-01-24 11:49:43 +0000 |
commit | e4ecbe83fd1a5428d5458de04a3404f1b5444429 (patch) | |
tree | 0e7fafdcb46e5fe7277be82d46bfd55809662652 /tools/testing/selftests/bpf/progs/test_prog_array_init.c | |
parent | 2bbbb4015aa1af62f8002de86de019786ecf63a7 (diff) |
arm64: patching: Add aarch64_insn_write_literal_u64()
In subsequent patches we'll need to atomically write to a
naturally-aligned 64-bit literal embedded within the kernel text.
Add a helper for this. For consistency with other text patching code we
use copy_to_kernel_nofault(), which is atomic for naturally-aligned
accesses up to 64-bits.
Signed-off-by: Mark Rutland <[email protected]>
Cc: Florent Revest <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Will Deacon <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_prog_array_init.c')
0 files changed, 0 insertions, 0 deletions