🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #9073

Re: [PATCH net] net/smc: fix limit_smc_hs sysctl on big-endian architecture

#9073
From: patchwork-bot+netdevbpf
Date: Sat, 31 Oct 2026 02:10
27 lines
8975 bytes
Hello:

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

On Wed, 28 Oct 2026 23:53:50 +0100 you wrote:
> net->smc.limit_smc_hs is a bool, but its sysctl entry uses
> proc_dointvec_minmax() with .maxlen = sizeof(int), so the handler
> accesses four bytes at the address of a one-byte field.
> 
> On little-endian this works with the extra bytes being written in struct
> padding. On big-endian (tested on s390x) the bool sits at the most
> significant byte of the int therefore the bool stays false and the "1"
> goes into padding. The sysctl reads back 1 but SMC sockets created
> afterwards see limit_smc_hs as disabled.
> 
> [...]

Here is the summary with links:
  - [net] net/smc: fix limit_smc_hs sysctl on big-endian architecture
    https://git.kernel.org/netdev/net/c/162cf592b577

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179341260654.1900554.4006093969665591085.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-354013-linux-kernel-netdev=dewy.ru
References: <20261028225350.3753-1-fmancera@suse.de>

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-354013-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] net/smc: fix limit_smc_hs sysctl on big-endian
 architecture
Date: Sat, 31 Oct 2026 02:10:06 +0000
Organization: Usenet Network
Message-ID: <179341260654.1900554.4006093969665591085.git-patchwork-notify@kernel.org>
References: <20261028225350.3753-1-fmancera@suse.de>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2358887"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:T84a+A9aC9D0rgUAkY6onCndVv0= sha256:UWgslE3RyA3RAsJk4lHu7EQ33WE6YTiNLe9+Ae118HI=
	sha1:1fBRifhJiSjHSa9MRwrcg55dCZE= sha256:uws42Fiy2u+Ty2X/eD8dqnD0zu1d9t/jwzNdY9Y1SZo=
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 32288125CB6; Sat, 31 Oct 2026 05:11:54 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 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] 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 PBK5l5koBxTD;
	Sat, 31 Oct 2026 05:11:50 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-354013-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 8309C125CB2; Sat, 31 Oct 2026 05:11:41 +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 0B0042D8CB; Sat, 31 Oct 2026 02:10:10 +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=1793412609;
	b=EOOwOnT0+bfT50GYzfCrAX9adv3/kS9ILWBslsdhFjBZZMzKQ5dGdCAYp3s3nPxTX8pj
	 NW6lsHydkqmLwSNT6oUrrTrqC/GKfW1S41ecua809huT+GI+y+xUxWzXy3JMOGu+BTVco
	 E3XEubTNCl95rZUux9Kjj5M81SS8Sbp0dF+l2EmjmtfeQ6WBcMrwS7qOkdM0LWHZCbAuD
	 qz8CzEUuTHBzai9MDVAJiNVxpwCuzjgrdQiP6sMj6IYw4htTyepndgDm4uCSFb4tfsSly
	 ECBCtREbBrqXanL7umE5xkF9ClUQq8LY5SbmRhhfGOGl6tOGv+oyeWTxJRnzTZHp8XA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793412609;
	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=jlWXuM6CgwNlYrY/zuqREoyfjwZny9ketxuynQw8QGs=;
	b=RcmeNA8yJLx2umZWHLg+EuJHfNjZClSN10CRUULOlQa+scuAA4D/cDzqRZHI9vczxZzo
	 izLVADTih0Gy/Jxblv/LK8XmbakCgOTap8P9+CWOzB1RNjL3qFsp0HwY6AFn3nJedolqu
	 O7MUsujr7TJBliKBm318G3Vz2AnFtLGR2gyPSHQrgDXUyIwqcIJoRRiHIV+eUpe4u5KUZ
	 tEqFeQblYKOk9PcmtmtocOWfrZuNaCmCxeu6Tg1UcF+XxZQSIRbfBPfTECENmtqNic93d
	 35MhdNq8iQwVt9CzBGFZ5qP0iHEEbgzd/G5dCS/rFca9aA2T6zGw9pX07BKDOlrq6bg==
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=KdT5lsoJ;
	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 9DE70606A323;
	Sat, 31 Oct 2026 02:10:09 +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=KdT5lsoJ
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=1793412608;
	b=FJQkY5mwJQ7+nZJJlgouuCIZKwksueln4EG/9XfXdtaAyCooXo8HYI2aYz8OlKgySIXe
	 lvaVJvOQX4XXJ+Cb+dwvv1cOjs4gAvq9CCXa0/6h/gsuTvvax5hVWdnaARa2c2MV1fU5F
	 BY1OyE5Oy1U6v8nlzPTMI6i+cvAV4i/UYlhikAd9I1JV/9oKN7FMEWb2606ixxTZiUKuQ
	 z5yvoLNgDAI4AD9tupJCweBlQIrnRQ9mjTR0pFDJzxbdoywLLoAgrofcNwwoD/PVdiOeX
	 yaZ1n1dhk8pyM2HCb87yKKV77RDc4mYyrwwjW3rf2gX9ztQyYqz4k3m3BITUdADedqw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793412608;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=jlWXuM6CgwNlYrY/zuqREoyfjwZny9ketxuynQw8QGs=;
	b=i6a+gdKc6Y3LPQ8gUJ3eQwrYO2jv5oJDbP69NnPp6u0ixMTtTnumhRfStZ8beVuwJJeU
	 +bng+ukg7DsqxvNcNKgX4rNaRAJu0fzRCAFaMcd6T7MZGaT3waAPwM8HK6VYmWvi/AXIN
	 kp3BNG6vIw/lsxAohlmtCjhNhuRES0hET5mVc2niMraWS7dkbdY3VXSKRmtgf9EI8+K/B
	 H6Zu/8Quc7FS5s7gp26sk8CUgf7KNz6zkhKF6q6RDIGVzRhjK3VEdhGM0dk1ujucb82IC
	 UDfpRE6RSunoCw7nsMEjKUJnlXkhHZsuY7mNlKswgIKxw1FSL4kSz3mzEqtBxq8JX6A==
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=KdT5lsoJ;
	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 7DA5A606A31F;
	Sat, 31 Oct 2026 02:10:08 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0E6ED1F00A02;
	Sat, 31 Oct 2026 02:10:08 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1793412608;
	bh=jlWXuM6CgwNlYrY/zuqREoyfjwZny9ketxuynQw8QGs=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=KdT5lsoJ4Y3JISyGqhJaLfTqTmu7AKVUwdYO0kqPea7yoln81VVtSMe4b096slvOC
	 JnR8hUtrld2FQVkvgs9iUxw/ZyJhMygO8vCmxm3pD2iaCRtFXNFKcMvU1ErOIi9eR5
	 zONrpPM0rGL9ayKJWXlk+IePkYKczfXZYVNAyZL8zVvU0+4izZXNICw9arqW7MArVF
	 ycI0hF50X370NB7y7QTesQHEduDHvBqRnXlLY0E1MivxLmHWpAJ2jWOx3v0m1s7RdO
	 XN2Ef74wwckiaUxf50ZTerYPwl9R+lnMu+oCgrzuVudyIMQFl6IgKl3aQEbvZXqHzI
	 OtANW7hyoin7g==
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 030663800479;
	Sat, 31 Oct 2026 02:10: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: <20261028225350.3753-1-fmancera@suse.de>
X-Cc: netdev@vger.kernel.org, linux-s390@vger.kernel.org,
 linux-rdma@vger.kernel.org, jaka@linux.ibm.com, horms@kernel.org,
 pabeni@redhat.com, kuba@kernel.org, edumazet@kernel.org, davem@davemloft.net,
 guwen@linux.alibaba.com, tonylu@linux.alibaba.com, mjambigi@linux.ibm.com,
 sidraya@linux.ibm.com, dust.li@linux.alibaba.com, alibuda@linux.alibaba.com