aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorPedro Tammela <[email protected]>2023-04-21 18:25:15 -0300
committerDavid S. Miller <[email protected]>2023-04-23 18:35:27 +0100
commite1201bc781c28766720e78a5e099ffa568be4d74 (patch)
tree7e001fca77ef6a51ba86a4e944521b1291807452 /lib/test_fortify/write_overflow-strncpy-src.c
parent0c83c5210e18763ec54252b990d270748c99b01d (diff)
net/sched: act_pedit: check static offsets a priori
Static key offsets should always be on 32 bit boundaries. Validate them on create/update time for static offsets and move the datapath validation for runtime offsets only. iproute2 already errors out if a given offset and data size cannot be packed to a 32 bit boundary. This change will make sure users which create/update pedit instances directly via netlink also error out, instead of finding out when packets are traversing. Reviewed-by: Jamal Hadi Salim <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: Pedro Tammela <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions