diff options
author | Leon Hwang <hffilwlqm@gmail.com> | 2024-01-04 17:22:23 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2024-01-05 07:22:10 +0300 |
commit | 00bc8988807985e32f5103f1ac099baf593bd8a3 (patch) | |
tree | d649b54630cb71b10e84e48ebb281a36a0253ac0 /kernel | |
parent | 61a40c12496a763fdb95edc08d59f816a594a87a (diff) | |
download | linux-00bc8988807985e32f5103f1ac099baf593bd8a3.tar.xz |
bpf, x86: Use emit_nops to replace memcpy x86_nops
Move emit_nops() before emit_prologue() and replace
memcpy(prog, x86_nops[5], X86_PATCH_SIZE) with emit_nops(&prog, X86_PATCH_SIZE).
Signed-off-by: Leon Hwang <hffilwlqm@gmail.com>
Link: https://lore.kernel.org/r/20240104142226.87869-2-hffilwlqm@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions