From: Xin Long <lucien....@gmail.com> Date: Thu, 8 Sep 2016 17:49:04 +0800
> Now sctp uses the transport without holding it in sctp_hash_cmp, > it can cause a use-after-free panic. As after it get transport from > hashtable, another CPU may free it, then the members it accesses > may be unavailable memory. > > This patch is to use sctp_transport_hold, in which it checks the > refcnt first, holds it if it's not 0. > > Signed-off-by: Xin Long <lucien....@gmail.com> Please add more detail to the commit message and add a proper "Fixes: " tag right before your signoff. Thanks.