Skip to content

xfrm/compat: Fix xfrm_spdattr_type_t copying

Dmitry Safonov linux-kselftest lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net/xfrm/compat: Copy xfrm_spdattr_type_t atributesnet/xfrm/xfrm_compat.c+44 -50 replies
2/2selftests/net/ipsec: Add test for xfrm_spdattr_type_ttools/testing/selftests/net/ipsec.c+163 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] xfrm/compat: Fix xfrm_spdattr_type_t copying

Here is the fix for both 32=>64 and 64=>32 bit translators and a selftest that reproduced the issue.

Big thanks to YueHaibing for fuzzing and reporting the issue, I really appreciate it!

Cc "David S. Miller" <[email protected]>
Cc Herbert Xu <[email protected]>
Cc Jakub Kicinski <[email protected]>
Cc Steffen Klassert <[email protected]>
Cc YueHaibing <[email protected]>

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

 net/xfrm/xfrm_compat.c              |  49 ++++++++-
 tools/testing/selftests/net/ipsec.c | 165 +++++++++++++++++++++++++++-
 2 files changed, 207 insertions(+), 7 deletions(-)

base-commit: e73f0f0ee7541171d89f2e2491130c7771ba58d3

Signature · 1 line
2.32.0