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 4A1CE2FDC5E; Sat, 30 May 2026 18:33:07 +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=1780165988; cv=none; b=T4AQcO7/Vlqd58uyEzlTbomPYnpSYH/uzjp1sV2bgYZqyx9pV1ZB7ZojGXbIeV/+blxjNZ4y01NvoEswEmtBR9dS0KZn5MubtSdJ+aFcA9wWr0VgUJu3YImQ0vqrRyDKK9eweAFLg+RGi5ZErqXGZ06hwKSO/QYm/CTn5V67418= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780165988; c=relaxed/simple; bh=uidpBeyYosrboiLO4COHdfh9Rpd/TF2qDyqnMQZOKwE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=A3hTtBWOMfZtLB28cXDWtSD/DYCPUnf9l83pRQ61wro3z/3KkdXh1ZYeuxaTe+iW9R4SGfbUlPmcyHQ1usuMqg4uaL8Rh3CrwsFlTbx5B4D9Ivh5dcDDtcrcOt+YrDno+BpcUTpYB8LJk3zDHxLEQodWVWKuZ/E8tIV4kU/4v5I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RIbLqAWD; 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="RIbLqAWD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8EC911F00893; Sat, 30 May 2026 18:33:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1780165987; bh=9Bu5+QhPn3soPaEWeXRPD5vc0vpSeWJy05t9PtvCA7o=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=RIbLqAWD12EpWuVPB45S4eLZ2vj0ZfxsqoUk2T3bYXvZ9PnGH3kXo6KmT33J5g4w5 5caXxNxWkLCZL+Tp/z+lJRjX+7IhUniM2Dhr+DAYxIfnMMvd3t7RDWLQyQFCFjw8+p PWB/+t06MVQnpshRLr8iJsmrZkh5W634fkHYE6W8= 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 5.10 239/589] hv_sock: fix ARM64 support Date: Sat, 30 May 2026 18:02:00 +0200 Message-ID: <20260530160231.280218701@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260530160224.570625122@linuxfoundation.org> References: <20260530160224.570625122@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.10-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 @@ -366,10 +366,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); } ret = vmbus_open(chan, sndbuf, rcvbuf, NULL, 0, hvs_channel_cb,