]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'line_info-check-for-ld_imm64'
authorAlexei Starovoitov <ast@kernel.org>
Wed, 19 Dec 2018 23:42:55 +0000 (15:42 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 19 Dec 2018 23:45:43 +0000 (15:45 -0800)
commit9ac0fb4e2ec4d9a97fa2a08878e315305ebb146b
treef01ea2389b6aa147392474e43e2d3860235b872b
parentdccbc570a29cf294a336852dd165736ec7663a12
parent1da27548b7039b6bde709347a72a4d9eefca2da9
Merge branch 'line_info-check-for-ld_imm64'

Martin KaFai Lau says:

====================
This series ensures the line_info (passed by the userspace during
bpf_prog_load) cannot have its line_info.insn_off pointing to a
zero bpf insn code.  F.e. a broken userspace tool might
generate a line_info.insn_off that points to the second
8 bytes of a BPF_LD_IMM64.

The first patch is the kernel change.
The second patch is a new test case.
====================

Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>