Netdev Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Steffen Klassert <steffen.klassert@secunet.com>
To: David Miller <davem@davemloft.net>, Jakub Kicinski <kuba@kernel.org>
Cc: Herbert Xu <herbert@gondor.apana.org.au>,
	Steffen Klassert <steffen.klassert@secunet.com>,
	<netdev@vger.kernel.org>
Subject: pull request (net): ipsec 2021-08-04
Date: Wed, 4 Aug 2021 09:03:23 +0200	[thread overview]
Message-ID: <20210804070329.1357123-1-steffen.klassert@secunet.com> (raw)

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(-)

             reply	other threads:[~2021-08-04  7:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-04  7:03 Steffen Klassert [this message]
2021-08-04  7:03 ` [PATCH 1/6] net: xfrm: fix memory leak in xfrm_user_rcv_msg Steffen Klassert
2021-08-04 10:10   ` patchwork-bot+netdevbpf
2021-08-04  7:03 ` [PATCH 2/6] Revert "xfrm: policy: Read seqcount outside of rcu-read side in xfrm_policy_lookup_bytype" Steffen Klassert
2021-08-04  7:03 ` [PATCH 3/6] xfrm: Fix RCU vs hash_resize_mutex lock inversion Steffen Klassert
2021-08-04  7:03 ` [PATCH 4/6] net/xfrm/compat: Copy xfrm_spdattr_type_t atributes Steffen Klassert
2021-08-04  7:03 ` [PATCH 5/6] selftests/net/ipsec: Add test for xfrm_spdattr_type_t Steffen Klassert
2021-08-04  7:03 ` [PATCH 6/6] net: xfrm: Fix end of loop tests for list_for_each_entry Steffen Klassert
2021-08-04 10:10 ` pull request (net): ipsec 2021-08-04 patchwork-bot+netdevbpf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210804070329.1357123-1-steffen.klassert@secunet.com \
    --to=steffen.klassert@secunet.com \
    --cc=davem@davemloft.net \
    --cc=herbert@gondor.apana.org.au \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --subject='Re: pull request (net): ipsec 2021-08-04' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).