diff options
| author | Tuong Lien <[email protected]> | 2019-12-10 08:21:05 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-12-11 01:45:04 +0000 |
| commit | 31e4ccc99eda8a5a7e6902c98bee6e78ffd3edb9 (patch) | |
| tree | 5d8a20136f6e21f51bf569332b008a9fbb69527b /tools/bpf/bpftool/prog.c | |
| parent | tipc: fix retrans failure due to wrong destination (diff) | |
| download | kernel-31e4ccc99eda8a5a7e6902c98bee6e78ffd3edb9.tar.gz kernel-31e4ccc99eda8a5a7e6902c98bee6e78ffd3edb9.zip | |
tipc: fix use-after-free in tipc_disc_rcv()
In the function 'tipc_disc_rcv()', the 'msg_peer_net_hash()' is called
to read the header data field but after the message skb has been freed,
that might result in a garbage value...
This commit fixes it by defining a new local variable to store the data
first, just like the other header fields' handling.
Fixes: f73b12812a3d ("tipc: improve throughput between nodes in netns")
Acked-by: Jon Maloy <[email protected]>
Signed-off-by: Tuong Lien <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions
