]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
net: Track socket refcounts in skb_steal_sock()
authorJoe Stringer <joe@wand.net.nz>
Sun, 29 Mar 2020 22:53:39 +0000 (15:53 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 30 Mar 2020 20:45:04 +0000 (13:45 -0700)
commit71489e21d720a09388b565d60ef87ae993c10528
tree0ebc9f8445150e0cf11c71c628ba69f7ae50da15
parentcf7fbe660f2dbd738ab58aea8e9b0ca6ad232449
net: Track socket refcounts in skb_steal_sock()

Refactor the UDP/TCP handlers slightly to allow skb_steal_sock() to make
the determination of whether the socket is reference counted in the case
where it is prefetched by earlier logic such as early_demux.

Signed-off-by: Joe Stringer <joe@wand.net.nz>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20200329225342.16317-3-joe@wand.net.nz
include/net/inet6_hashtables.h
include/net/inet_hashtables.h
include/net/sock.h
net/ipv4/udp.c
net/ipv6/udp.c