🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #26157

Re: [PATCH net] tcp: do not BUG on an unreadable urgent byte

#26157
From: patchwork-bot+netdevbpf
Date: Thu, 03 Dec 2026 04:50
30 lines
9089 bytes
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
Technical Details
Message-ID: <179627341099.2363143.9735533163252622005.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu.MISMATCH!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376300-linux-kernel-netdev=dewy.ru
References: <20261125124212.4145820-1-graypanda.inzag@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srl.newsdeef.eu.MISMATCH!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376300-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] tcp: do not BUG on an unreadable urgent byte
Date: Thu, 03 Dec 2026 04:50:10 +0000
Organization: Usenet Network
Message-ID: <179627341099.2363143.9735533163252622005.git-patchwork-notify@kernel.org>
References: <20261125124212.4145820-1-graypanda.inzag@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2145169"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:hE7agI0Q96bA0xxe/mypYhhfnzQ= sha256:y0kuilkOt8qs+cCp4M5tLDAvHF8FnSLhHjyHKQtqALM=
	sha1:Pya0u5+001cLQ4x7xeKbHroq4TI= sha256:cscxsVh8MDwXUfcRo9kzkk+33gpuPz0rBO2fTxeZSmA=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 64A51117826; Thu,  3 Dec 2026 07:50:40 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.501
X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31
	tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 1wLB3uKvTgKg;
	Thu,  3 Dec 2026 07:50:37 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-376300-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 0ADA0117827; Thu,  3 Dec 2026 07:50:27 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id 681BC28EC8; Thu,  3 Dec 2026 04:50:19 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1796273413;
	b=lTNvO6l8gAZ5/mbgK3DMHuMmPUS3oji9aVd+Sl9A+X1vaNVnCogSeipnOvs8VYIopeyU
	 pmq6HxyqxcIHnMAn1SNDSYMaJNPC0HG7UYbEb7qJAxTEBPw6yMKq6j0PiGI7PwIjHUcjc
	 4LcMSZnnt5tgep2uomFK/lh7nEJ86hIjBj+j6mkAxwEviS79Sc1tXWfO14hCnzz2deNoC
	 9F7i42W5duEjqpTyI6PeJe+jnGWeVS49s764WH32wr+KTqwswglbDKV0QYzeTtzDX5Vzi
	 pmkTqWhs3hWyKHRwe3SATfMdOh4PoX4KEOAyWkR74Adpl2fJMurLirmfd6DxBZi1UgQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796273413;
	h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=FjyrBbtCZFOzsMype/snz3FxSGZGoJiuQPHUQPZcNuc=;
	b=d8A0LrgA5SX/5qObZJEt1D5k8dErNmilCZPKh1blD9mlT58EOQxNAoo/ecw/CwuBuzmB
	 4kVppPOFEgW2k8or4JzcyV6VgVSSGkwdrLbvChCLcfQOBdSCwgS5Br9W2VXuDXB6vuHBO
	 nNFRmj355aZW8DeX+fJVI7B1K0j9iFCtrnzkN35INV+RmZzNIDCck36K8xzvYqy5Edvil
	 VmNon5TwhpQ+l6ZlK4Y8w3Ar1gu3TrkBnJxXDL6kyK2emShruG33/BrMzIv03KQNnv6wr
	 zYr8kadYUQuptuhisljniZmpz9hOTVxmGMKOBjb+djRB6T3+iPT1SwntUw7yGxMjqxQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=H4HKnLeG;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id AC109606A322;
	Thu,  3 Dec 2026 04:50:13 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=H4HKnLeG
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796273412;
	b=slkSZXaOwVTFvs1B5JPkFAHEUZA0Djv+OTOY/UHg3WtHTB0H6ypm3oT0Zwd/2wUfMwSu
	 bowyvutbwpVp2I9JtL5PbHJVp5JkqfCwrQWQZohnnrii2eVTXPCQb54INkHN5e9Ftr/cD
	 Xv6xUi7KwbxSeeZA2AY2BZkC5wEtGld2coEigvrQUOukqW7QSNXOgswQAufOuXobx+QDu
	 6t456Ej6KFNtyH8W7Pol7/zdxeKBZH2V9kocxbfQE5NQX4Nzm2qQkxcMMUHTBnK4DFb0d
	 8AhlJwz/BjztdWGMToKS3OqZG+S1+P1DiTHZL1ZFySonu0s5hXa773PJE3/sIQOA6Nw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796273412;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=FjyrBbtCZFOzsMype/snz3FxSGZGoJiuQPHUQPZcNuc=;
	b=R8YdbFOHFw7OGmANS+yR0PVuLkB/NIzynyZtQcegj4Wk99XmKV0kivsPcLg0jod3c0dq
	 IC323dRsfHeKk7cxOieq2MsxhgDMUL8gMryxvuMTYd/EP9422CYevgZsVIFreTYhw7rk9
	 BtnuXk3WiMA2cJF/7UV1AbOAsbH+0MvoKhqrWO9BZRijQpE4aUK4+aGvmdtUvC5rZOurz
	 6AvMcEhl0u6XpBPZicGJT2VY18f5zVVuemmrNtYn7wye2bMzfsIY7WMFEyo7ZSTZvW5pr
	 QI9bHejjL2LYErV7vLYfP+lFc/90ClQQ9gUlUtHMUCIyF43zT3vqKj1q+iFaSmsMIrA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=H4HKnLeG;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id CE440606A69B;
	Thu,  3 Dec 2026 04:50:12 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DE6D1F000C1;
	Thu,  3 Dec 2026 04:50:12 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1796273412;
	bh=FjyrBbtCZFOzsMype/snz3FxSGZGoJiuQPHUQPZcNuc=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=H4HKnLeGAFgJ6WNXvpHsU+nZzRbvI2nybcxjwgdjSJ0gSKmFMWnu97x+zoP+Bkjli
	 Y1gLsoDa81tHda1/FEnpqj63flu9DehuOegIWvK7pQTj34AB/943JRa8YGYMJBf6Pg
	 HagVTXaTKP3Drf7O2xiisAb1wv3yZab2jFxfp9DXYShD89TzQHQXlfEgzQOqRqowm5
	 olfQl+TnZ2ubqpOxjx9Jl614aObmQ/71Txpe+c6bi+deATk9VGOs6GN0jbDBHQQyAY
	 TbqDF0MzkS63E8Lv9rKPmb+MbSc29x/tBHn3nVGaYOSIlBMBa/p3tMbW3WI91eNoqo
	 dvtHWh0v5f9PQ==
X-Received: from [10.30.226.235] (localhost [IPv6:::1])
	by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 717FB3808236;
	Thu,  3 Dec 2026 04:50:12 +0000 (UTC)
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261125124212.4145820-1-graypanda.inzag@gmail.com>
X-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