netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* pull request (net-next): ipsec-next 2015-10-30
@ 2015-10-30  6:16 Steffen Klassert
  2015-10-30  6:16 ` [PATCH 1/5] xfrm: Let the flowcache handle its size by default Steffen Klassert
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Steffen Klassert @ 2015-10-30  6:16 UTC (permalink / raw)
  To: David Miller; +Cc: Herbert Xu, Steffen Klassert, netdev

1) The flow cache is limited by the flow cache limit which
   depends on the number of cpus and the xfrm garbage collector
   threshold which is independent of the number of cpus. This
   leads to the fact that on systems with more than 16 cpus
   we hit the xfrm garbage collector limit and refuse new
   allocations, so new flows are dropped. On systems with 16
   or less cpus, we hit the flowcache limit. In this case, we
   shrink the flow cache instead of refusing new flows. 

   We increase the xfrm garbage collector threshold to INT_MAX
   to get the same behaviour, independent of the number of cpus.

2) Fix some unaligned accesses on sparc systems.
   From Sowmini Varadhan.

3) Fix some header checks in _decode_session4. We may call
   pskb_may_pull with a negative value converted to unsigened
   int from pskb_may_pull. This can lead to incorrect policy
   lookups. We fix this by a check of the data pointer position
   before we call pskb_may_pull.

4) Reload skb header pointers after calling pskb_may_pull
   in _decode_session4 as this may change the pointers into
   the packet. 

5) Add a missing statistic counter on inner mode errors.

Please pull or let me know if there are problems.

Thanks!

The following changes since commit 8a4683a5e06efda7e1f327213678d4dcafc0d894:

  net: help compiler generate better code in eth_get_headlen (2015-09-28 22:51:15 -0700)

are available in the git repository at:

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

for you to fetch changes up to cb866e3298cd7412503fc7e2c265753c853fab9d:

  xfrm: Increment statistic counter on inner mode error (2015-10-23 07:52:58 +0200)

----------------------------------------------------------------
Sowmini Varadhan (1):
      xfrm: Fix unaligned access to stats in copy_to_user_state()

Steffen Klassert (4):
      xfrm: Let the flowcache handle its size by default.
      xfrm4: Fix header checks in _decode_session4.
      xfrm4: Reload skb header pointers after calling pskb_may_pull.
      xfrm: Increment statistic counter on inner mode error

 Documentation/networking/ip-sysctl.txt |  6 ++--
 net/ipv4/xfrm4_policy.c                | 50 +++++++++++++++++++++++++---------
 net/ipv6/xfrm6_policy.c                |  2 +-
 net/xfrm/xfrm_input.c                  |  4 ++-
 net/xfrm/xfrm_user.c                   |  5 +++-
 5 files changed, 49 insertions(+), 18 deletions(-)

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-10-30 11:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-30  6:16 pull request (net-next): ipsec-next 2015-10-30 Steffen Klassert
2015-10-30  6:16 ` [PATCH 1/5] xfrm: Let the flowcache handle its size by default Steffen Klassert
2015-10-30  6:16 ` [PATCH 2/5] xfrm: Fix unaligned access to stats in copy_to_user_state() Steffen Klassert
2015-10-30  6:16 ` [PATCH 3/5] xfrm4: Fix header checks in _decode_session4 Steffen Klassert
2015-10-30  6:16 ` [PATCH 4/5] xfrm4: Reload skb header pointers after calling pskb_may_pull Steffen Klassert
2015-10-30  6:16 ` [PATCH 5/5] xfrm: Increment statistic counter on inner mode error Steffen Klassert
2015-10-30 11:53 ` pull request (net-next): ipsec-next 2015-10-30 David Miller

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