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)
commit88d1d76dca25b135657eda6b93eb1bdbde519d0f
tree1541ccbaf77a4b034f515865927e175bb7e00bc0
parentd3303a65a00c94372ddab831570647488e6c06e2
parente5571240236c5652f3e079b1d5866716a7ad819c
Merge branch 'kcm-fix-two-syzcaller-issues'

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>