summaryrefslogtreecommitdiffstats
path: root/net/packet
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2019-06-24 18:21:45 +0200
committerDavid S. Miller <davem@davemloft.net>2019-06-27 04:29:23 +0200
commit25bff6d5478b2a02368097015b7d8eb727c87e16 (patch)
tree75263bded0f1416c8958a00d201ded2370872e40 /net/packet
parentMerge branch 'ipv6-fix-neighbour-resolution-with-raw-socket' (diff)
downloadlinux-25bff6d5478b2a02368097015b7d8eb727c87e16.tar.xz
linux-25bff6d5478b2a02368097015b7d8eb727c87e16.zip
sctp: change to hold sk after auth shkey is created successfully
Now in sctp_endpoint_init(), it holds the sk then creates auth shkey. But when the creation fails, it doesn't release the sk, which causes a sk defcnf leak, Here to fix it by only holding the sk when auth shkey is created successfully. Fixes: a29a5bd4f5c3 ("[SCTP]: Implement SCTP-AUTH initializations.") Reported-by: syzbot+afabda3890cc2f765041@syzkaller.appspotmail.com Reported-by: syzbot+276ca1c77a19977c0130@syzkaller.appspotmail.com Signed-off-by: Xin Long <lucien.xin@gmail.com> Acked-by: Neil Horman <nhorman@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/packet')
0 files changed, 0 insertions, 0 deletions