summaryrefslogtreecommitdiffstats
path: root/net/core/net-sysfs.c
diff options
context:
space:
mode:
authorAlexander Lobakin <aleksander.lobakin@intel.com>2024-04-04 18:03:02 +0200
committerDavid S. Miller <davem@davemloft.net>2024-04-08 12:02:00 +0200
commit5a66cda52d7daccc88aa358872816c35093759f9 (patch)
treeccba1c1a312900302f0f0220d21bfe072456b0e1 /net/core/net-sysfs.c
parentipv6: remove RTNL protection from ip6addrlbl_dump() (diff)
downloadlinux-5a66cda52d7daccc88aa358872816c35093759f9.tar.xz
linux-5a66cda52d7daccc88aa358872816c35093759f9.zip
ip_tunnel: harden copying IP tunnel params to userspace
Structures which are about to be copied to userspace shouldn't have uninitialized fields or paddings. memset() the whole &ip_tunnel_parm in ip_tunnel_parm_to_user() before filling it with the kernel data. The compilers will hopefully combine writes to it. Fixes: 117aef12a7b1 ("ip_tunnel: use a separate struct to store tunnel params in the kernel") Reported-by: Dan Carpenter <dan.carpenter@linaro.org> Closes: https://lore.kernel.org/netdev/5f63dd25-de94-4ca3-84e6-14095953db13@moroto.mountain Signed-off-by: Alexander Lobakin <aleksander.lobakin@intel.com> Reviewed-by: Simon Horman <horms@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/net-sysfs.c')
0 files changed, 0 insertions, 0 deletions