mbox series

pull request (net): ipsec 2021-08-04

Message ID 20210804070329.1357123-1-steffen.klassert@secunet.com (mailing list archive)
State Accepted
Commit d00551b402015c519d19e1535bf2b5398854b0dd
Delegated to: Netdev Maintainers
Headers show
Series pull request (net): ipsec 2021-08-04 | expand

Pull-request

git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec.git master

Checks

Context Check Description
netdev/tree_selection success Guessing tree name failed - patch did not apply

Message

Steffen Klassert Aug. 4, 2021, 7:03 a.m. UTC
1) Fix a sysbot reported memory leak in xfrm_user_rcv_msg.
   From Pavel Skripkin.

2) Revert "xfrm: policy: Read seqcount outside of rcu-read side
   in xfrm_policy_lookup_bytype". This commit tried to fix a
   lockin bug, but only cured some of the symptoms. A proper
   fix is applied on top of this revert.

3) Fix a locking bug on xfrm state hash resize. A recent change
   on sequence counters accidentally repaced a spinlock by a mutex.
   Fix from Frederic Weisbecker.

4) Fix possible user-memory-access in xfrm_user_rcv_msg_compat().
   From Dmitry Safonov.

5) Add initialiation sefltest fot xfrm_spdattr_type_t.
   From Dmitry Safonov.

Please pull or let me know if there are problems.

Thanks!

The following changes since commit a118ff661889ecee3ca90f8125bad8fb5bbc07d5:

  selftests: net: devlink_port_split: check devlink returned an element before dereferencing it (2021-06-28 16:14:38 -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 480e93e12aa04d857f7cc2e6fcec181c0d690404:

  net: xfrm: Fix end of loop tests for list_for_each_entry (2021-07-26 12:26:28 +0200)

----------------------------------------------------------------
Dmitry Safonov (2):
      net/xfrm/compat: Copy xfrm_spdattr_type_t atributes
      selftests/net/ipsec: Add test for xfrm_spdattr_type_t

Frederic Weisbecker (1):
      xfrm: Fix RCU vs hash_resize_mutex lock inversion

Harshvardhan Jha (1):
      net: xfrm: Fix end of loop tests for list_for_each_entry

Pavel Skripkin (1):
      net: xfrm: fix memory leak in xfrm_user_rcv_msg

Steffen Klassert (2):
      Revert "xfrm: policy: Read seqcount outside of rcu-read side in xfrm_policy_lookup_bytype"
      Merge branch 'xfrm/compat: Fix xfrm_spdattr_type_t copying'

 include/net/netns/xfrm.h            |   1 +
 net/xfrm/xfrm_compat.c              |  49 +++++++++--
 net/xfrm/xfrm_ipcomp.c              |   2 +-
 net/xfrm/xfrm_policy.c              |  32 +++----
 net/xfrm/xfrm_user.c                |  10 +++
 tools/testing/selftests/net/ipsec.c | 165 +++++++++++++++++++++++++++++++++++-
 6 files changed, 231 insertions(+), 28 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org Aug. 4, 2021, 10:10 a.m. UTC | #1
Hello:

This pull request was applied to netdev/net.git (refs/heads/master):

On Wed, 4 Aug 2021 09:03:23 +0200 you wrote:
> 1) Fix a sysbot reported memory leak in xfrm_user_rcv_msg.
>    From Pavel Skripkin.
> 
> 2) Revert "xfrm: policy: Read seqcount outside of rcu-read side
>    in xfrm_policy_lookup_bytype". This commit tried to fix a
>    lockin bug, but only cured some of the symptoms. A proper
>    fix is applied on top of this revert.
> 
> [...]

Here is the summary with links:
  - pull request (net): ipsec 2021-08-04
    https://git.kernel.org/netdev/net/c/d00551b40201

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html