summaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_ipv4.c
diff options
context:
space:
mode:
authorWei Yongjun2008-09-30 14:32:24 +0200
committerDavid S. Miller2008-09-30 14:32:24 +0200
commitba0166708ef4da7eeb61dd92bbba4d5a749d6561 (patch)
tree0e28c1d17b67d24125df4f05cbcca94c7e90ccd3 /net/ipv4/tcp_ipv4.c
parentiucv: Fix mismerge again. (diff)
downloadkernel-qcow2-linux-ba0166708ef4da7eeb61dd92bbba4d5a749d6561.tar.gz
kernel-qcow2-linux-ba0166708ef4da7eeb61dd92bbba4d5a749d6561.tar.xz
kernel-qcow2-linux-ba0166708ef4da7eeb61dd92bbba4d5a749d6561.zip
sctp: Fix kernel panic while process protocol violation parameter
Since call to function sctp_sf_abort_violation() need paramter 'arg' with 'struct sctp_chunk' type, it will read the chunk type and chunk length from the chunk_hdr member of chunk. But call to sctp_sf_violation_paramlen() always with 'struct sctp_paramhdr' type's parameter, it will be passed to sctp_sf_abort_violation(). This may cause kernel panic. sctp_sf_violation_paramlen() |-- sctp_sf_abort_violation() |-- sctp_make_abort_violation() This patch fixed this problem. This patch also fix two place which called sctp_sf_violation_paramlen() with wrong paramter type. 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 'net/ipv4/tcp_ipv4.c')
0 files changed, 0 insertions, 0 deletions