From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 676C3355803; Tue, 12 May 2026 17:45:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778607944; cv=none; b=tGKsMLY0hSs5/37p2WmrC+QoaAZyv6o3bPub8YZemxvENrJy9Ledpx2HO2MuHd5qEPxWtqggWp9unkqztG19c0tIi47N6kfyP5pSpSccWzWFPuPoZkWOvNykuqn8jJRLJ6W7mOE7+XHg9N0Bbv3alEb5rVq2PXmSGsgIjlVfb5E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778607944; c=relaxed/simple; bh=6p3FoaWV6IVRU3EDVgk4/v9zHNpt1URZ9yhyCtj7HSA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SauMc+gUNIqxWaIBxiURWBu5Axf6vR18e/1j9ytm6jrLZnY2AaW4pRZnpLi0oAHvJ5Btdba7wKnB2VlQ5xMRSlt5QlC/5ZVkB90mRBOQJuj4a+ciEEbMJLNf/rIISgJzE/UquNRNp98TS/O9cEdsza1uraKK3dJIhXkfcZnF8gE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=b0TBmFcp; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="b0TBmFcp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E89E9C2BCB0; Tue, 12 May 2026 17:45:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778607944; bh=6p3FoaWV6IVRU3EDVgk4/v9zHNpt1URZ9yhyCtj7HSA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b0TBmFcpV2AdJERq6aGmYJzlqlg11c7v+0kXyQxLUXA0acfODzGrNWvM6RqhJ5ZDy 96B2eMPKiG16pSGhHjPMorPhtFvVrDV2r7gbW4DFzMJy9A62atSQyQPw9LkZft+7sE MZScleJplNSdBw0JFnD6cDVFy93iTdZHFr7uaFek= 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.12 095/206] hv_sock: fix ARM64 support Date: Tue, 12 May 2026 19:39:07 +0200 Message-ID: <20260512173934.868937889@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260512173932.810559588@linuxfoundation.org> References: <20260512173932.810559588@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 6.12-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;