]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: fix potential panics in the SCTP-AUTH API.
authorVlad Yasevich <vladislav.yasevich@hp.com>
Thu, 21 Aug 2008 10:34:25 +0000 (03:34 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Aug 2008 10:34:25 +0000 (03:34 -0700)
commit91a07be6e08f2df2235599dfe4469d49b2d8b31a
treec5bdef49d12fbd4bb0eae6fca102607346390cb5
parente95324920d5b477f43cdc2878e92ff7cca88223d
sctp: fix potential panics in the SCTP-AUTH API.

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>
net/sctp/endpointola.c
net/sctp/socket.c