summaryrefslogtreecommitdiffstats
path: root/arch/h8300
diff options
context:
space:
mode:
authorXin Long2018-10-29 16:13:11 +0100
committerGreg Kroah-Hartman2018-11-04 14:50:53 +0100
commit2b52f2c4e5e7da9203b0e8762e68dc3f3305b634 (patch)
tree5f521351f5c25a29a7104a1cdbb778d9319ba8b7 /arch/h8300
parentRevert "be2net: remove desc field from be_eq_obj" (diff)
downloadkernel-qcow2-linux-2b52f2c4e5e7da9203b0e8762e68dc3f3305b634.tar.gz
kernel-qcow2-linux-2b52f2c4e5e7da9203b0e8762e68dc3f3305b634.tar.xz
kernel-qcow2-linux-2b52f2c4e5e7da9203b0e8762e68dc3f3305b634.zip
sctp: check policy more carefully when getting pr status
[ Upstream commit 713358369382cebf92f6e98ce2005f94e7344931 ] When getting pr_assocstatus and pr_streamstatus by sctp_getsockopt, it doesn't correctly process the case when policy is set with SCTP_PR_SCTP_ALL | SCTP_PR_SCTP_MASK. It even causes a slab-out-of-bounds in sctp_getsockopt_pr_streamstatus(). This patch fixes it by return -EINVAL for this case. Fixes: 0ac1077e3a54 ("sctp: get pr_assoc and pr_stream all status with SCTP_PR_SCTP_ALL") Reported-by: syzbot+5da0d0a72a9e7d791748@syzkaller.appspotmail.com Suggested-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/h8300')
0 files changed, 0 insertions, 0 deletions