🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #5732

Re: [PATCH net v3] net: unix: reject negative max_dgram_qlen values

#5732
From: patchwork-bot+netdevbpf
Date: Tue, 20 Oct 2026 21:20
28 lines
8993 bytes
Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Fri, 16 Oct 2026 11:02:58 +0800 you wrote:
> net.unix.max_dgram_qlen is parsed as a signed int and copied to the u32
> sock::sk_max_ack_backlog when an AF_UNIX socket is created.  Consequently,
> a negative value such as -1 is accepted and converted to UINT_MAX.  Since
> the receive queue length is also u32, its fullness check cannot become true
> for that limit.
> 
> max_dgram_qlen has no documented negative sentinel.  Its existing signed
> interface represents nonnegative values only through INT_MAX; negative bit
> patterns are not a supported encoding for the upper half of the u32
> consumer range.
> 
> [...]

Here is the summary with links:
  - [net,v3] net: unix: reject negative max_dgram_qlen values
    https://git.kernel.org/netdev/net/c/1a4e7bc6e345

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179253120703.216428.6433539867424959722.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-349592-linux-kernel-netdev=dewy.ru
References: <tencent_A643419B56079E9A448D97922763FF069F08@qq.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-349592-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v3] net: unix: reject negative max_dgram_qlen values
Date: Tue, 20 Oct 2026 21:20:07 +0000
Organization: Usenet Network
Message-ID: <179253120703.216428.6433539867424959722.git-patchwork-notify@kernel.org>
References: <tencent_A643419B56079E9A448D97922763FF069F08@qq.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="3966661"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:s1YWWAUnGtR5c2rP6Zg8l7+SqZk= sha256:BrTYmPls3DfK1LPvHsbuTxEqL6NF+Z/gfB+6V+cw0QU=
	sha1:H5UKQKkkUqIpoZh99HP6D3OB22A= sha256:PkEnoNkvVa5aU32vsBGu9Mi3Elx2hOm1QU0PkQmEBNU=
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 3F331110E5E; Wed, 21 Oct 2026 00:20:36 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.729
X-Spam-Status: No, score=-3.729 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.329, 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 QVe0ucG2HvB6;
	Wed, 21 Oct 2026 00:20:33 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-349592-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 96D08110E5C; Wed, 21 Oct 2026 00:20:24 +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 4CB3E2B847; Tue, 20 Oct 2026 21:20:13 +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=1792531210;
	b=5oo2dZ62Y3DZe3TSLrbn2qWhw6GGI/4ojseBRxe0ikdx1HRWMticnYwrRmrjJaitMkSZ
	 Zead00iTyKnOGbTCJFPCPwEfGFwEXuCMx3AXsf0Zzy5wFj+nLmcfD76WnTRZyGn0b9rhF
	 0YPhmYCvpQYJ0zs6jcCAigLNuJ8srsAwIflK1LYvfhXJq8OJCxQ6JNI1AXkccM0unwQ/w
	 m8FkV1mC+Fui9G/VbUSkIGyMTrYjJ50ZQlLPnWKwFH2Y3Aac4+nSWI2cwyu9FwPqjrtsf
	 YVkFZY3dDJDmrgDL7bemlGL5Gv6SSmiKOKN+NtvErwg5zTRobXIFgFtdm5ql5AILYfQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792531210;
	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=VshiOr6IjEiTDYCceUxy4nB4sG60JqMkf3bxNJiTdO0=;
	b=Z6Ovjdb7chk9iRiwajx+YvxmGcSnE9iYxmwUwGs877kThNwzWiqeNbV80ncmW+1xyF0/
	 tm/eEOJjsgEsfIRLBN2giNlD//vVzxubt3XqwY36sI4uTE8TWw+S7/WerMRY1DrDwAbMZ
	 ujYBWuH4NNuSy213EY16QD4plUpJKJ/HzqYRbjKeqwxb4fpJuTw6R6UA1P0zR2EUHW5Dg
	 F/kxOWhx0rkBks9SivnXzdebpUJnJZG9cCvV2NLIUJdt6bBUTkbZM2ghZ//ujIm8UQ/Gy
	 NJbS5jtpQ9qK+APLrk86UBaA9spzNEXZ4zxBFEXB7Kv/O5DTD2DvoUBTGtFcY2gTDmA==
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="cDu5lYI/";
	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 209DC606A338;
	Tue, 20 Oct 2026 21:20:10 +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=cDu5lYI/
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=1792531209;
	b=ZhRxgY9Fz5AbVpfxS2flmn3CreeJlsUqF06ehCVcQbkAI+6PtULyjszZalODXEMQfiZp
	 z8NRmhckRM7zbPWWqFc8TLRaPWMu2NCmq6tzAqH7225m8+rCPfE+wWuB6N4bnOwVM2aT2
	 rEpi2WYKXJdGiY2UtxFYLb3kdIew5SaT6E3J7s2JTJMvsVQJvRYsVNcfKhM7L4HaaS9FM
	 kVYlxNBrvwUGUOmLPAVbsLWxJCI5GkyaHvYCVQrMKMi+7+54XNThOZBBHc7rQEllqlL5L
	 LDDLWpUPK4qiriv2o4KZkSpRn5PS/BkZEiZYDELNobJ44Yehits9eiZlN0xVli5030A==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792531209;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=VshiOr6IjEiTDYCceUxy4nB4sG60JqMkf3bxNJiTdO0=;
	b=zxZIKi7H9CY6vocEJG4SXFeJgJI3iEtR4xV056LL6G4h1IBPTdilh6UaON1EZMWKCnts
	 Er+pE2g6lX3JPcQwOMb/tvmQbnBe3vAI8h8etTNZSya2vsbj1UUfAPMr/KBH8iREaHQ/N
	 g4V9r/3J/mxt8SfDPCKVoQZMkkh2zCp8lVcBEd69s8OCpZGbfoOq2UJCQoj2vejEq63mX
	 Bp/ZaDBneZZgpmoUU4Emb16lMtW83gMNYKyNW0aHaAz11V5fQ2/k1OUWRKF4LwtvOg4eg
	 CqHbDPVcY9S5o/JuV3a1VBgoZzMR8TYRdu/Wl7ojmOqIDi9MfFrG0jHFpZnEm1W5uew==
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="cDu5lYI/";
	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 0038E606A31F;
	Tue, 20 Oct 2026 21:20:08 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81B181F000CB;
	Tue, 20 Oct 2026 21:20:08 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1792531208;
	bh=VshiOr6IjEiTDYCceUxy4nB4sG60JqMkf3bxNJiTdO0=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=cDu5lYI/8UICnoviT0e3Mq2RFeyikjeb4MPeTDAEuF0fVmL18Ko0qYSoXmbIS8CSy
	 JySWyRHER5IfIwYlyNsPPRudOtZyk6vWzchp/1wqrOIbBjKqOc9Uo/h+8MYBgJZ3ve
	 fDmr0vVCePkBKrlh23At9cZNJKmezw+d3YKpqQ9FMTB/vcaOxYnux1IA9DIRu2imSU
	 pFYgu4AO2QmTkYUxjhWUay6OofS8eFknn7UT+LDbABmOFccmTQz3wiCJ6OBG29c0IM
	 QRdkNThsgFj+cTxbyvgiSAZW+Aw/K+Ls67rdi9QawLVJrPy85umkUXLeeVFq9jBrZV
	 lGZTRx137CoWw==
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 7741B3809A09;
	Tue, 20 Oct 2026 21:20:08 +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: <tencent_A643419B56079E9A448D97922763FF069F08@qq.com>
X-Cc: netdev@vger.kernel.org, davem@davemloft.net, edumazet@google.com,
 kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, corbet@lwn.net,
 linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org,
 linux-api@vger.kernel.org, stable@vger.kernel.org, kuniyu@google.com,
 skhan@linuxfoundation.org, rdunlap@infradead.org