diff options
author | Wei Yongjun <yjwei@cn.fujitsu.com> | 2009-03-02 07:46:51 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-03 07:27:39 +0100 |
commit | 3df2678737974accf437dad11e584c1871a3ede3 (patch) | |
tree | 30a5946dec870081f36bc0c779a3b5b243349424 /net/lapb | |
parent | sctp: fix crash during module unload (diff) | |
download | linux-3df2678737974accf437dad11e584c1871a3ede3.tar.xz linux-3df2678737974accf437dad11e584c1871a3ede3.zip |
sctp: fix kernel panic with ERROR chunk containing too many error causes
If ERROR chunk is received with too many error causes in ESTABLISHED
state, the kernel get panic.
This is because sctp limit the max length of cmds to 14, but while
ERROR chunk is received, one error cause will add around 2 cmds by
sctp_add_cmd_sf(). So many error causes will fill the limit of cmds
and panic.
This patch fixed the problem.
This bug can be test by SCTP Conformance Test Suite
<http://networktest.sourceforge.net/>.
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions