diff options
| author | Fernando Fernandez Mancera <fmancera@suse.de> | 2026-05-25 17:35:54 +0200 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2026-06-05 13:11:54 +0200 |
| commit | a625c94144c9b66d32e1f374f909f38db46161c1 (patch) | |
| tree | 915538d559842aeb51269e590caa494d0dbe9a7c /include/linux/timerqueue.h | |
| parent | 4a15044a2b06748c99a8c8c3c6b3ee0a01f8004d (diff) | |
netfilter: nfnetlink_osf: fix mss parsing on big-endian architectures
The MSS calculation in nf_osf_match_one() manually shifts bytes to
construct a 16-bit value before passing it to ntohs().
This works on little-endian hosts but it does not work on big-endian as
the bytes are being always shifted and set in the same way for all
architectures.
Use get_unaligned_be16() to fix this on big-endian systems. It also
simplifies the code.
Fixes: 11eeef41d5f6 ("netfilter: passive OS fingerprint xtables match")
Signed-off-by: Fernando Fernandez Mancera <fmancera@suse.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
