Merge branch 'net-tls-fix-device-surprise-removal-with-offload'
authorDavid S. Miller <davem@davemloft.net>
Wed, 22 May 2019 19:21:44 +0000 (12:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 May 2019 19:21:44 +0000 (12:21 -0700)
commit8f073036bf357867a612912eb4b7e58a9b768019
tree752d5cfd6c2b21e9b7e5e2f3b035940db70e4086
parent0d18c7bd931f86ccc6a1ab1d8b3b7b0a19b2598a
parentc3f4a6c39cf269a40d45f813c05fa830318ad875
Merge branch 'net-tls-fix-device-surprise-removal-with-offload'

Jakub Kicinski says:

====================
net/tls: fix device surprise removal with offload

This series fixes two issues with device surprise removal.
First we need to take a read lock around resync, otherwise
netdev notifier handler may clear the structures from under
our feet.

Secondly we need to be careful about the interpretation
of device features.  Offload has to be properly cleaned
up even if the TLS device features got cleared after
connection state was installed.
====================

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