From: patchwork-bot+netdevbpf@kernel.org
To: Junyoung Jang <graypanda.inzag@gmail.com>
Cc: edumazet@kernel.org, ncardwell@google.com, gwanhyunlee@gmail.com,
kuniyu@google.com, davem@davemloft.net, kuba@kernel.org,
pabeni@redhat.com, horms@kernel.org, almasrymina@google.com,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net] tcp: do not BUG on an unreadable urgent byte
Date: Thu, 03 Dec 2026 04:50:10 +0000 [thread overview]
Message-ID: <179627341099.2363143.9735533163252622005.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20261125124212.4145820-1-graypanda.inzag@gmail.com>
Hello:
This patch was applied to netdev/net.git (main)
by Willem de Bruijn <willemb@google.com>:
On Wed, 25 Nov 2026 21:42:11 +0900 you wrote:
> tcp_urg() checks that the urgent byte offset is within skb->len and
> then calls skb_copy_bits(). The byte can still lie in an unreadable
> Device Memory fragment. In that case skb_copy_bits() returns -EFAULT
> and tcp_urg() calls BUG().
>
> Mark the byte as TCP_URG_READ when the copy fails. Leaving
> TCP_URG_NOTYET pending lets a later segment retry the old urgent
> pointer: the unsigned offset can wrap into that segment's TCP header
> and return a header byte through MSG_OOB. Clearing urg_data instead
> would drop the urgent-byte hole and make ordinary recvmsg() hit
> -EFAULT on the unreadable byte. TCP_URG_READ prevents the retry and
> lets the receive path skip the hole until copied_seq passes urg_seq.
>
> [...]
Here is the summary with links:
- [net] tcp: do not BUG on an unreadable urgent byte
https://git.kernel.org/netdev/net/c/7382c17cf306
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
prev parent reply other threads:[~2026-12-03 4:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 12:42 [PATCH net] tcp: do not BUG on an unreadable urgent byte Junyoung Jang
2026-11-29 13:01 ` netdev-bot+sashiko
2026-11-30 0:34 ` Kuniyuki Iwashima
2026-12-03 4:50 ` patchwork-bot+netdevbpf [this message]
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=179627341099.2363143.9735533163252622005.git-patchwork-notify@kernel.org \
--to=patchwork-bot+netdevbpf@kernel.org \
--cc=almasrymina@google.com \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=graypanda.inzag@gmail.com \
--cc=gwanhyunlee@gmail.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=kuniyu@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ncardwell@google.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.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