]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sctp: fix potential panics in the SCTP-AUTH API.
authorVlad Yasevich <vladislav.yasevich@hp.com>
Thu, 28 Aug 2008 05:41:00 +0000 (22:41 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 8 Sep 2008 10:20:21 +0000 (03:20 -0700)
commita1d348ddecaee92e74c27ccd69c325f4ce01d95f
tree486cea890b1065abdea057a8de5f08297f94349a
parentde9148e41ee5015feb2bfdc86ae65d8cea4c02d6
sctp: fix potential panics in the SCTP-AUTH API.

[ Upstream commit 5e739d1752aca4e8f3e794d431503bfca3162df4 ]

All of the SCTP-AUTH socket options could cause a panic
if the extension is disabled and the API is envoked.

Additionally, there were some additional assumptions that
certain pointers would always be valid which may not
always be the case.

This patch hardens the API and address all of the crash
scenarios.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/sctp/endpointola.c
net/sctp/socket.c