summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue_types.h
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2026-05-25 14:58:40 -0700
committerPablo Neira Ayuso <pablo@netfilter.org>2026-06-07 11:13:47 +0200
commitd3bf9eae486490832bd08fd62ab0ac601f346bd4 (patch)
treec584dcc5c5e67994a85c1608c1934c23c6bed74a /include/linux/timerqueue_types.h
parente052f920773b73be49eb4d8702a9f85de7464363 (diff)
netfilter: nf_conntrack: use get_unaligned_be32() in tcp_sack()
The timestamp-only fast path dereferences the option stream as *(__be32 *)ptr, which assumes 4-byte alignment that the TCP option stream does not guarantee. Use get_unaligned_be32() instead, which reads the value safely and already returns host byte order, so the htonl() on the comparison constant can be dropped. This matches the existing get_unaligned_be32() use later in the same function. Assisted-by: Claude:Opus-4.7 Signed-off-by: Rosen Penev <rosenp@gmail.com> Reviewed-by: Fernando Fernandez Mancera <fmancera@suse.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/linux/timerqueue_types.h')
0 files changed, 0 insertions, 0 deletions