]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: add another gso_segs access
authorEric Dumazet <edumazet@google.com>
Tue, 23 Jul 2019 10:15:38 +0000 (03:15 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 23 Jul 2019 21:12:37 +0000 (14:12 -0700)
commit84039211108daf64f0e5518e6634b61fcd97e82f
tree1aaff1884ece785915c25780bd7d2f5666c5e941
parent3c384a1b63a46db7560818764aaefbfd1f66c529
selftests/bpf: add another gso_segs access

Use BPF_REG_1 for source and destination of gso_segs read,
to exercise "bpf: fix access to skb_shared_info->gso_segs" fix.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Suggested-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/verifier/ctx_skb.c