]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Correct the comment about insn_to_jit_off
authorPu Lehui <pulehui@huawei.com>
Mon, 30 May 2022 09:28:12 +0000 (17:28 +0800)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 2 Jun 2022 23:26:06 +0000 (16:26 -0700)
commit09190f9032613316e7d9a983b7dd2ef76ee96f0f
tree5f4bc7f9e7b54ee26e273c635163fcee444b901b
parent259cbbb06e26f8c92d63a2ee77c6667797aa617c
bpf: Correct the comment about insn_to_jit_off

The insn_to_jit_off passed to bpf_prog_fill_jited_linfo should be the
first byte of the next instruction, or the byte off to the end of the
current instruction.

Signed-off-by: Pu Lehui <pulehui@huawei.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220530092815.1112406-4-pulehui@huawei.com
kernel/bpf/core.c