Thread (3 messages) flat view 3 messages, 3 authors, 2018-08-03

Re: [PATCH bpf-next] selftests/bpf: fix a typo in map in map test

From: Martin KaFai Lau <hidden>
Date: 2018-08-02 23:23:59
Also in: lkml

On Thu, Aug 02, 2018 at 03:47:10PM -0700, Roman Gushchin wrote:
Commit fbeb1603bf4e ("bpf: verifier: MOV64 don't mark dst reg unbounded")
revealed a typo in commit fb30d4b71214 ("bpf: Add tests for map-in-map"):
BPF_MOV64_REG(BPF_REG_0, 0) was used instead of
BPF_MOV64_IMM(BPF_REG_0, 0).

I've noticed the problem by running bpf kselftests.
Thanks for the fix!

FWIW, here is the verifier log:
11: (85) call bpf_map_lookup_elem#1
12: (bf) r0 = r0
13: (95) exit
R0 leaks addr as return value

Acked-by: Martin KaFai Lau <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help