Article View: linux.kernel.netdev
Article #8596Re: [PATCH net] selftests: net: txtimestamp: fix out-of-bounds read in raw UDP checksum
From: patchwork-bot+netdevbpf
Date: Thu, 29 Oct 2026 14:40
Date: Thu, 29 Oct 2026 14:40
29 lines
9087 bytes
9087 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@redhat.com>:
On Tue, 27 Oct 2026 09:29:45 -0700 you wrote:
> With -r (SOCK_RAW, IPPROTO_UDP) the test writes only the UDP header and
> payload, and the kernel adds the IP header. get_udp_csum() still expects
> the IP source and destination addresses to directly precede the UDP
> header, and reads 2 * alen bytes before the start of the buffer: 8 bytes
> for IPv4, 32 bytes for IPv6.
>
> ASan reports a heap-buffer-overflow for both -4 -r and -6 -r. Without
> ASan the read usually goes unnoticed, but it faults when the buffer is
> the first chunk in the heap. That happens on Ubuntu 26.04, where the
> kselftest runner wraps the test in uutils stdbuf, and txtimestamp.sh
> fails with SIGSEGV on every run.
>
> [...]
Here is the summary with links:
- [net] selftests: net: txtimestamp: fix out-of-bounds read in raw UDP checksum
https://git.kernel.org/netdev/net/c/8daacee78b3d
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179328480480.499212.1458877940988302168.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-353335-linux-kernel-netdev=dewy.ruReferences:
<20261027162945.2122306-1-jamien@nvidia.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-353335-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] selftests: net: txtimestamp: fix out-of-bounds read in raw UDP checksum Date: Thu, 29 Oct 2026 14:40:04 +0000 Organization: Usenet Network Message-ID: <179328480480.499212.1458877940988302168.git-patchwork-notify@kernel.org> References: <20261027162945.2122306-1-jamien@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2028868"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:1rYbpDQ/ujnx83P777TDNqH8Qw4= sha256:RgG4WulkjZIVm5nIXpAcbm63LDQNUfC3XU+45SCh9tI= sha1:RfX9F/1zP5lmDPvlPputpU/FB0E= sha256:JhH+nEUVFMBD0vy6cLsaxmrWUHFe4srJFYfEiDITXK0= 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 23E09125C6B; Thu, 29 Oct 2026 17:46:18 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.4 X-Spam-Status: No, score=-3.4 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, 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, URIBL_BLOCKED=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 SequtOXv47PH; Thu, 29 Oct 2026 17:46:15 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-353335-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id 93BEB125C69; Thu, 29 Oct 2026 17:46:04 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sin.lore.kernel.org (Postfix) with ESMTP id 48BD527AED; Thu, 29 Oct 2026 14:40: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=1793284817; b=3+40r4P/E3SzJnXmauQDH2GX7AWT3ni7OS5ioNQ9CcChQ1tbp2ArIZiOBR/aorv4uGT8 iGUg6eVk8aKBE8Nnv/LPt7bd5nokqjKP3zz+fR20N9rImOIqxKQrcsAeZFomAQ2WSzn87 jk2KZVsm7RlXLLIVsLxlxO2sYCUTmnjckuwGhBs/hyhZbLG5HQJt2XEcAjt0ImaAPe3wT RZbcY4dVWtlhbtic9dIKnwphBvwnR7cz1oFqTnPptxs6vWFohTlFzcFY2u1cyBqfMVyDj u8q5mc3s6ZTkGKVCUoL0USFjxYrrA+zQCKPLSH86vFEtY/BhqMHuSAE9wqnG3cYbUkA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793284817; 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=BJy8jN0yBfhdZXtjLtbSjYoRw/ncuFMRQddUFR4swPY=; b=Mlh72dYTza8iCIRmQV/8RDOA8ACdmuSwtDj5q7Kn6ESj5fbhSqT+x/bXm9e7z4jFlf2a nMUI/It1JihRE9nsmd9HeZR4Iuf7Hnw6zQqiK+dTJnQa2vZiek8aliNsOnE+/NscjWNrk cYif2TxjgyKPe2Pc7NWXbm84RBnjiuoKX91N+TpGzGxAQkY2JE4cKteAqPFg/QCbF4VJ0 BA/XzyLfDHTtWSqWVRoZ/mJeR6EtHAlRYXiFDLQ2Hmhur+/a0cmP6SzoZ/dusLiT4QfPj CWh0rsUS0m1C1DTtPN4UVUldtD5AAcwzh0B+nzlgNNowC8GeGDBzNHCL/WKxP47eYuw== 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="Fp3ufC/Q"; 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 A3D2F606A322; Thu, 29 Oct 2026 14:40:17 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Fp3ufC/Q 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=1793284806; b=Z4tj4qnvn2M8qM5HuDrc2RD5s1mIKe7yXltt9DxoTWOCgVcoceI9qBsBKzpDc42TNOw0 TCpX+FYFBLQW+ouKrBE3oprqRiJU5EzIz74tkBICwrC8dgD5t60iLM0FISDoo34xukGd6 +JtSmTFOgWYnk0xPjgntoXhHdGT9iLfAjdwk2UC2hTbuxZ4rffrjOoxem91N4og4bE2WT +HWHZhEX4jm7rhauU2ciERJkVBqQDx5poVpUEfB0KlQMpkAZPg0KGgNlVJDgAJfCaBtA1 cwf8AFHZp3N/X790QITpSJKTCqb8oxBXzjaS9R0Byn6PT72iUpTt/BLHbVaCHrso4NA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793284806; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=BJy8jN0yBfhdZXtjLtbSjYoRw/ncuFMRQddUFR4swPY=; b=v6bXoCXZXQ8wraW48WeDgDgtbNzzwZhok08tlKx/i3WeelpZXNnzgnCmmTPrqzDT39Cc QPZY4VPjz4w3Eo8OQ5Rr69y2tMREuMTHszUC4J4RwQWlZ8YzBuyEUMVGUBcxWB3PBXSDh ziCunzgWJDN2623etQ7ElrwcrD2zMs8tGyiJDy8+wWO520qqxwLiHNLW2UHOyD69W/red 93wJUzB95bZs9KoxABW1LKs3WCVzfCTbA5KG9pDjpHLPXeow/ta4V3sBf3fxaSCUyFJlG ojsGoPt6IQUGGZaHJcm4GCTVbqW4IVs7K2z+mmy/chd0UHaVxykfaXawXiOT543Dm7g== 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="Fp3ufC/Q"; 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) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7CD60606A31A; Thu, 29 Oct 2026 14:40:06 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0DEE81F01825; Thu, 29 Oct 2026 14:40:06 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793284806; bh=BJy8jN0yBfhdZXtjLtbSjYoRw/ncuFMRQddUFR4swPY=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=Fp3ufC/QrGFHMg7LnePVZdqzzwvMyr/qs5pFm1/JrrD4IOWSc/pFdkf2lZwk/fKu2 K5vQz0Yp8SEa25USPt4emKJotAWJBAeeX/z4cKyYCsC4hN4GacWic0FjMtdTgBoK2a hvTbyHKnPiIvXcdp9QVUmkJn8RaQrKA6kMpPMVq46OlPWrsKhxGxdUjqTPtButNBvA Dd+l/u8Vdi9KRPpc5g2RfU0oEzqGrIQf5rrhlhHH7m2UV74jkQtxhfKINxHHXQx71P l7BYetbTk8/T9A/OeFJkxxNpA6puscM0H3L0leU/kjvwxNZfagUSXdO9ESv7wbslF8 JkZY5puAu2cXQ== 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 031F5380821F; Thu, 29 Oct 2026 14:40:06 +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: <20261027162945.2122306-1-jamien@nvidia.com> X-Cc: willemdebruijn.kernel@gmail.com, netdev@vger.kernel.org, kerneljasonxing@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, shuah@kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org