From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 65602481DD; Sat, 30 May 2026 17:00:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780160429; cv=none; b=blRlC94kCNciNCK4bJt8Vfg2Elt+cs6B4+/AyW1AeELFUhKkhfei3KGcofgcElT5XpJ3e/qaVk7bwFt1ByMUQd0qFiXxOjiroZd0B0339na/tQyCOCWnfvBSt/oRXd4suYCq/+KJf2y+Cz/CjWEpA/5ABg+654WGo3EedGvVGeI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780160429; c=relaxed/simple; bh=Ggv6x6y10S/eEzxO64W6WlGf7UU6e4iPN7XhjMIWJGg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FA4+HTqiDObWMDm0AfOxF5oz9Rau3Tdh8bBTPVGr7GQPFOU19QPjfaJ4griXA1WzxP5lhbVp/z5gUBCZR/wLDkXjp++usKbtzbkDK9NNJO0fek7YDkAIgglRP2qBuPEqwMMrH9C1RZmmk6wO32ew7AJyGxp8ambYZNBfklvdsso= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ir36E0Fc; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ir36E0Fc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7427A1F00893; Sat, 30 May 2026 17:00:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1780160428; bh=DuhmO6OgQmmgszYvisQTNNI3qr4b2YxW1wZcRwp+stY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=ir36E0Fc9Hb0QHuprxEw41p0NyETo/Mt5BzzDSE3/Uye+diTY2L62qs9zVQyraYG+ RlgcB1YElylStIelxEGIxMYnqYthCrPpdUGZICYcJXQfKxYjWp9e5ywr6ceABVDCX+ ZSyf1E9Xg1Xu7934v0QDs5zzVa2i1xKrTwnLb1eM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Dexuan Cui , Hamza Mahfooz , Stefano Garzarella , Jakub Kicinski Subject: [PATCH 6.1 334/969] hv_sock: fix ARM64 support Date: Sat, 30 May 2026 17:57:38 +0200 Message-ID: <20260530160309.596136772@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260530160300.485627683@linuxfoundation.org> References: <20260530160300.485627683@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Hamza Mahfooz commit b31681206e3f527970a7c7ed807fbf6a028fc25b upstream. VMBUS ring buffers must be page aligned. Therefore, the current value of 24K presents a challenge on ARM64 kernels (with 64K pages). So, use VMBUS_RING_SIZE() to ensure they are always aligned and large enough to hold all of the relevant data. Cc: stable@vger.kernel.org Fixes: 77ffe33363c0 ("hv_sock: use HV_HYP_PAGE_SIZE for Hyper-V communication") Tested-by: Dexuan Cui Reviewed-by: Dexuan Cui Signed-off-by: Hamza Mahfooz Acked-by: Stefano Garzarella Link: https://patch.msgid.link/20260428125339.13963-1-hamzamahfooz@linux.microsoft.com Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- net/vmw_vsock/hyperv_transport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/net/vmw_vsock/hyperv_transport.c +++ b/net/vmw_vsock/hyperv_transport.c @@ -375,10 +375,10 @@ static void hvs_open_connection(struct v } else { sndbuf = max_t(int, sk->sk_sndbuf, RINGBUFFER_HVS_SND_SIZE); sndbuf = min_t(int, sndbuf, RINGBUFFER_HVS_MAX_SIZE); - sndbuf = ALIGN(sndbuf, HV_HYP_PAGE_SIZE); + sndbuf = VMBUS_RING_SIZE(sndbuf); rcvbuf = max_t(int, sk->sk_rcvbuf, RINGBUFFER_HVS_RCV_SIZE); rcvbuf = min_t(int, rcvbuf, RINGBUFFER_HVS_MAX_SIZE); - rcvbuf = ALIGN(rcvbuf, HV_HYP_PAGE_SIZE); + rcvbuf = VMBUS_RING_SIZE(rcvbuf); } chan->max_pkt_size = HVS_MAX_PKT_SIZE;