diff options
author | Neil Horman <[email protected]> | 2019-06-13 06:35:59 -0400 |
---|---|---|
committer | David S. Miller <[email protected]> | 2019-06-14 19:27:24 -0700 |
commit | ce950f1050cece5e406a5cde723c69bba60e1b26 (patch) | |
tree | 8aecfaeb0ff4506107ead6fad531a4b30c31633b /net/lapb/lapb_iface.c | |
parent | 6bb9e376c2a4cc5120c3bf5fd3048b9a0a6ec1f8 (diff) |
sctp: Free cookie before we memdup a new one
Based on comments from Xin, even after fixes for our recent syzbot
report of cookie memory leaks, its possible to get a resend of an INIT
chunk which would lead to us leaking cookie memory.
To ensure that we don't leak cookie memory, free any previously
allocated cookie first.
Change notes
v1->v2
update subsystem tag in subject (davem)
repeat kfree check for peer_random and peer_hmacs (xin)
v2->v3
net->sctp
also free peer_chunks
v3->v4
fix subject tags
v4->v5
remove cut line
Signed-off-by: Neil Horman <[email protected]>
Reported-by: [email protected]
CC: Marcelo Ricardo Leitner <[email protected]>
CC: Xin Long <[email protected]>
CC: "David S. Miller" <[email protected]>
CC: [email protected]
Acked-by: Marcelo Ricardo Leitner <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions