diff options
| author | Alexander Lobakin <[email protected]> | 2024-04-04 18:03:02 +0200 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2024-04-08 11:02:00 +0100 |
| commit | 5a66cda52d7daccc88aa358872816c35093759f9 (patch) | |
| tree | ccba1c1a312900302f0f0220d21bfe072456b0e1 /tools/perf/scripts/python/netdev-times.py | |
| parent | eec53cc38c4aba41bc3fabd0a75bc30c2c8ea332 (diff) | |
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 <[email protected]>
Closes: https://lore.kernel.org/netdev/[email protected]
Signed-off-by: Alexander Lobakin <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions