1
0
Fork 0
alistair23-linux/include
Daniel Borkmann 0962590e55 bpf: fix partial copy of map_ptr when dst is scalar
ALU operations on pointers such as scalar_reg += map_value_ptr are
handled in adjust_ptr_min_max_vals(). Problem is however that map_ptr
and range in the register state share a union, so transferring state
through dst_reg->range = ptr_reg->range is just buggy as any new
map_ptr in the dst_reg is then truncated (or null) for subsequent
checks. Fix this by adding a raw member and use it for copying state
over to dst_reg.

Fixes: f1174f77b5 ("bpf/verifier: rework value tracking")
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Cc: Edward Cree <ecree@solarflare.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2018-10-31 16:53:17 -07:00
..
acpi pci-v4.20-changes 2018-10-25 06:50:48 -07:00
asm-generic hugetlb: introduce generic version of huge_ptep_get 2018-10-26 16:26:34 -07:00
clocksource
crypto crypto/morus(640,1280) - make crypto_...-algs static 2018-10-05 10:22:48 +08:00
drm drm pull for 4.20-rc1 2018-10-28 17:49:53 -07:00
dt-bindings ARM: SoC driver updates for 4.17 2018-10-29 15:16:01 -07:00
keys
kvm
linux bpf: fix partial copy of map_ptr when dst is scalar 2018-10-31 16:53:17 -07:00
math-emu
media media updates for v4.20-rc1 2018-10-29 14:29:58 -07:00
memory
misc
net Pull request for inclusion in 4.20 2018-10-29 09:09:47 -07:00
pcmcia
ras
rdma First merge window pull request 2018-10-26 07:38:19 -07:00
scsi
soc ARM: SoC driver updates for 4.17 2018-10-29 15:16:01 -07:00
sound ASoC: Updates for v5.0/v4.20 2018-10-22 23:26:37 +02:00
target scsi: target/core: Remove the SCF_COMPARE_AND_WRITE_POST flag 2018-10-16 01:13:35 -04:00
trace Merge branch 'akpm' (patches from Andrew) 2018-10-26 19:33:41 -07:00
uapi media updates for v4.20-rc1 2018-10-29 14:29:58 -07:00
video
xen Merge branch 'x86-paravirt-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2018-10-23 17:54:58 +01:00