]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - net/xfrm/xfrm_user.c
xfrm: Do not parse 32bits compiled xfrm netlink msg on 64bits host
authorFan Du <fan.du@intel.com>
Tue, 27 Jan 2015 09:00:29 +0000 (17:00 +0800)
committerSteffen Klassert <steffen.klassert@secunet.com>
Tue, 3 Mar 2015 09:10:16 +0000 (10:10 +0100)
commit74005991b78a0a7a6546004fb37d33a651c613e7
tree2e83a78f68648da7c7ef91dbd49fd96a06d744d4
parentb898441f4ece44933af90b116b467f7864dd1ae7
xfrm: Do not parse 32bits compiled xfrm netlink msg on 64bits host

structure like xfrm_usersa_info or xfrm_userpolicy_info
has different sizeof when compiled as 32bits and 64bits
due to not appending pack attribute in their definition.
This will result in broken SA and SP information when user
trying to configure them through netlink interface.

Inform user land about this situation instead of keeping
silent, the upper test scripts would behave accordingly.

Signed-off-by: Fan Du <fan.du@intel.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_user.c