diff options
| author | Song Liu <song@kernel.org> | 2022-02-04 21:57:37 +0300 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2022-02-08 05:13:01 +0300 |
| commit | d00c6473b1ee9050cc36d008c6d30bf0d3de0524 (patch) | |
| tree | 493b8a3576135a0d05ec3c8238c719675b60d3a5 /include | |
| parent | ed2d9e1a26cca963ff5ed3b76326d70f7d8201a9 (diff) | |
| download | linux-d00c6473b1ee9050cc36d008c6d30bf0d3de0524.tar.xz | |
bpf: Use prog->jited_len in bpf_prog_ksym_set_addr()
Using prog->jited_len is simpler and more accurate than current
estimation (header + header->size).
Also, fix missing prog->jited_len with multi function program. This hasn't
been a real issue before this.
Signed-off-by: Song Liu <song@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20220204185742.271030-5-song@kernel.org
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
