1) Free the xfrm interface gro_cells when deleting the
interface, otherwise we leak it. From Li RongQing.
2) net/core/flow.c does not exist anymore, so remove it
from the MAINTAINERS file.
3) Fix a slab-out-of-bounds in _decode_session6.
From Alexei Starovoitov.
4) Fix RCU protection when policies inserted into
thei bydst lists. From Florian Westphal.
Please pull or let me know if there are problems.
Thanks!
The following changes since commit 92d7c74b6f72a8a7d04970d5dcfb99673daaf91d:
Merge branch 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth (2018-10-01 22:40:39 -0700)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec.git master
for you to fetch changes up to 9dffff200fd178f11dd50eb1fd8ccd0650c9284e:
xfrm: policy: use hlist rcu variants on insert (2018-10-11 13:24:46 +0200)
----------------------------------------------------------------
Alexei Starovoitov (1):
net/xfrm: fix out-of-bounds packet access
Florian Westphal (1):
xfrm: policy: use hlist rcu variants on insert
Li RongQing (1):
xfrm: fix gro_cells leak when remove virtual xfrm interfaces
Steffen Klassert (1):
MAINTAINERS: Remove net/core/flow.c
MAINTAINERS | 1 -
net/ipv6/xfrm6_policy.c | 4 ++--
net/xfrm/xfrm_interface.c | 3 +++
net/xfrm/xfrm_policy.c | 8 ++++----
4 files changed, 9 insertions(+), 7 deletions(-)
From: Li RongQing <redacted>
The device gro_cells has been initialized, it should be freed,
otherwise it will be leaked
Fixes: f203b76d78092faf2 ("xfrm: Add virtual xfrm interfaces")
Signed-off-by: Zhang Yu <redacted>
Signed-off-by: Li RongQing <redacted>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
---
net/xfrm/xfrm_interface.c | 3 +++
1 file changed, 3 insertions(+)
net/core/flow.c does not exist anymore, so remove it
from the IPSEC NETWORKING section of the MAINTAINERS
file.
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
---
MAINTAINERS | 1 -
1 file changed, 1 deletion(-)
@@ -774,9 +774,9 @@ int xfrm_policy_insert(int dir, struct xfrm_policy *policy, int excl)break;}if(newpos)-hlist_add_behind(&policy->bydst,newpos);+hlist_add_behind_rcu(&policy->bydst,newpos);else-hlist_add_head(&policy->bydst,chain);+hlist_add_head_rcu(&policy->bydst,chain);__xfrm_policy_link(policy,dir);/* After previous checking, family can either be AF_INET or AF_INET6 */
1) Free the xfrm interface gro_cells when deleting the
interface, otherwise we leak it. From Li RongQing.
2) net/core/flow.c does not exist anymore, so remove it
from the MAINTAINERS file.
3) Fix a slab-out-of-bounds in _decode_session6.
From Alexei Starovoitov.
4) Fix RCU protection when policies inserted into
thei bydst lists. From Florian Westphal.
Please pull or let me know if there are problems.