OSDN Git Service

Merge branch 'kcm-fix-two-syzcaller-issues'
authorDavid S. Miller <davem@davemloft.net>
Wed, 24 Jan 2018 20:54:31 +0000 (15:54 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jan 2018 20:54:31 +0000 (15:54 -0500)
Tom Herbert says:

====================
kcm: fix two syzcaller issues

In this patch set:

- Don't allow attaching non-TCP or listener sockets to a KCM mux.
- In kcm_attach Check if sk_user_data is already set. This is
  under lock to avoid race conditions. More work is need to make
  all of the users of sk_user_data to use the same locking.

- v2
  Remove unncessary check for not PF_KCM in kcm_attach (suggested by
  Guillaume Nault)
====================

Signed-off-by: David S. Miller <davem@davemloft.net>

Trivial merge