mirror of
https://github.com/torvalds/linux.git
synced 2026-12-04 04:14:24 +00:00
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]>