]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
selftests/bpf: fix a typo in map in map test
authorRoman Gushchin <guro@fb.com>
Thu, 2 Aug 2018 22:47:10 +0000 (15:47 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 3 Aug 2018 08:15:32 +0000 (10:15 +0200)
commit0069fb854364da79fd99236ea620affc8e1152d5
tree2ffafb808868a26ddb110ac0996c126137651a41
parent82c018d734a7aa24a9ac8f33f610c55923fb6911
selftests/bpf: fix a typo in map in map test

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.

Fixes: fb30d4b71214 ("bpf: Add tests for map-in-map")
Signed-off-by: Roman Gushchin <guro@fb.com>
Cc: Martin KaFai Lau <kafai@fb.com>
Cc: Arthur Fabre <afabre@cloudflare.com>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: Alexei Starovoitov <ast@kernel.org>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/test_verifier.c