From: Fernando Fernandez Mancera <fmancera@suse.de>
To: Rosen Penev <rosenp@gmail.com>, netfilter-devel@vger.kernel.org
Cc: Pablo Neira Ayuso <pablo@netfilter.org>,
Florian Westphal <fw@strlen.de>, Phil Sutter <phil@nwl.cc>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Simon Horman <horms@kernel.org>,
"open list:NETFILTER" <coreteam@netfilter.org>,
"open list:NETWORKING [GENERAL]" <netdev@vger.kernel.org>,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] netfilter: synproxy: fix unaligned access to TCP timestamp option
Date: Sun, 7 Jun 2026 23:27:03 +0200 [thread overview]
Message-ID: <ab136215-157e-491a-b9cb-ba9c1d3c982d@suse.de> (raw)
In-Reply-To: <20260607164447.39700-1-rosenp@gmail.com>
On 6/7/26 6:44 PM, Rosen Penev wrote:
> synproxy_tstamp_adjust() reads and writes the TSval and TSecr fields of
> the TCP Timestamp option via direct __be32 pointer dereferences. These
> fields are at byte offsets 2 and 6 within the option, which are only
> 2-byte aligned — not 4-byte aligned for __be32 access.
>
> Replace with get_unaligned_be32() / put_unaligned_be32() to safely
> handle the unaligned access on strict-alignment architectures.
>
> Assisted-by: opencode:big-pickle
> Signed-off-by: Rosen Penev <rosenp@gmail.com>
Hi,
as mentioned on [1] this was already fixed in [2]..
[1]
https://lore.kernel.org/netdev/a8cfeb06-6ffb-49f2-a14d-c5a50bc4e5be@suse.de/
[2]
https://lore.kernel.org/netfilter-devel/20260525124450.6043-4-fmancera@suse.de/
Thanks,
Fernando.
next prev parent reply other threads:[~2026-06-07 21:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-07 16:44 Rosen Penev
2026-06-07 21:27 ` Fernando Fernandez Mancera [this message]
2026-06-07 21:29 ` Rosen Penev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ab136215-157e-491a-b9cb-ba9c1d3c982d@suse.de \
--to=fmancera@suse.de \
--cc=coreteam@netfilter.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=fw@strlen.de \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=pablo@netfilter.org \
--cc=phil@nwl.cc \
--cc=rosenp@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®