summaryrefslogtreecommitdiff
path: root/include/linux/stackprotector.h
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2026-04-18 06:19:44 +0300
committerJakub Kicinski <kuba@kernel.org>2026-04-28 03:30:28 +0300
commit90be9fedb218ee95a1cf59050d1306fbfb0e8b87 (patch)
tree85ac0e5c2330d9337bad230189b7ae3335c4b022 /include/linux/stackprotector.h
parent51e94e1e2fef351c74d69eb53666df808d26af95 (diff)
downloadlinux-90be9fedb218ee95a1cf59050d1306fbfb0e8b87.tar.xz
net/sched: netem: check for negative latency and jitter
Reject requests with negative latency or jitter. A negative value added to current timestamp (u64) wraps to an enormous time_to_send, disabling dequeue. The original UAPI used u32 for these values; the conversion to 64-bit time values via TCA_NETEM_LATENCY64 and TCA_NETEM_JITTER64 allowed signed values to reach the kernel without validation. Jitter is already silently clamped by an abs() in netem_change(); that abs() can be removed in a follow-up once this rejection is in place. Fixes: 99803171ef04 ("netem: add uapi to express delay and jitter in nanoseconds") Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20260418032027.900913-7-stephen@networkplumber.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions