This set addresses issue about accessing invalid ptr returned from bpf_tcp_sock() and bpf_sk_fullsock() after bpf_sk_release().
Martin KaFai Lau (2):
bpf: Fix bpf_tcp_sock and bpf_sk_fullsock issue related to
bpf_sk_release
bpf: Test ref release issue in bpf_tcp_sock and bpf_sk_fullsock.
include/linux/bpf_verifier.h | 9 ++
kernel/bpf/verifier.c | 89 ++++++++++++-------
.../selftests/bpf/verifier/ref_tracking.c | 73 +++++++++++++++
3 files changed, 137 insertions(+), 34 deletions(-)
--
2.17.1
