linux-stable/include/uapi
Antony Antony 4e484b3e96 xfrm: rate limit SA mapping change message to user space
Kernel generates mapping change message, XFRM_MSG_MAPPING,
when a source port chage is detected on a input state with UDP
encapsulation set.  Kernel generates a message for each IPsec packet
with new source port.  For a high speed flow per packet mapping change
message can be excessive, and can overload the user space listener.

Introduce rate limiting for XFRM_MSG_MAPPING message to the user space.

The rate limiting is configurable via netlink, when adding a new SA or
updating it. Use the new attribute XFRMA_MTIMER_THRESH in seconds.

v1->v2 change:
	update xfrm_sa_len()

v2->v3 changes:
	use u32 insted unsigned long to reduce size of struct xfrm_state
	fix xfrm_ompat size Reported-by: kernel test robot <lkp@intel.com>
	accept XFRM_MSG_MAPPING only when XFRMA_ENCAP is present

Co-developed-by: Thomas Egerer <thomas.egerer@secunet.com>
Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com>
Signed-off-by: Antony Antony <antony.antony@secunet.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
2021-12-23 09:32:51 +01:00
..
asm-generic Merge branch 'exit-cleanups-for-v5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace 2021-11-10 16:15:54 -08:00
drm drm for 5.16-rc1 2021-11-02 16:47:49 -07:00
linux xfrm: rate limit SA mapping change message to user space 2021-12-23 09:32:51 +01:00
misc habanalabs: define uAPI to export FD for DMA-BUF 2021-10-18 12:05:47 +03:00
mtd
rdma RDMA v5.16 merge window pull request 2021-11-03 08:05:59 -07:00
scsi scsi: fc: Add EDC ELS definition 2021-08-24 22:56:33 -04:00
sound sound updates for 5.16-rc1 2021-11-03 07:49:25 -07:00
video
xen
Kbuild