diff options
author | Chris Mi <[email protected]> | 2021-02-25 15:51:45 +0800 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2021-02-25 09:49:46 -0800 |
commit | a93dcaada2ddb58dbc72652b42548adedd646d7a (patch) | |
tree | a628c1240c2b8e31b95d1fe1758e0be02f40bb91 /scripts/gdb/linux | |
parent | 4d9274cee40b6a20dd6148c6c81c6733c2678cbc (diff) |
net: psample: Fix netlink skb length with tunnel info
Currently, the psample netlink skb is allocated with a size that does
not account for the nested 'PSAMPLE_ATTR_TUNNEL' attribute and the
padding required for the 64-bit attribute 'PSAMPLE_TUNNEL_KEY_ATTR_ID'.
This can result in failure to add attributes to the netlink skb due
to insufficient tail room. The following error message is printed to
the kernel log: "Could not create psample log message".
Fix this by adjusting the allocation size to take into account the
nested attribute and the padding.
Fixes: d8bed686ab96 ("net: psample: Add tunnel support")
CC: Yotam Gigi <[email protected]>
Reviewed-by: Ido Schimmel <[email protected]>
Reviewed-by: Jiri Pirko <[email protected]>
Signed-off-by: Chris Mi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'scripts/gdb/linux')
0 files changed, 0 insertions, 0 deletions