lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250422063409.607859-1-min_halo@163.com>
Date: Tue, 22 Apr 2025 14:34:09 +0800
From: Zongmin Zhou <min_halo@....com>
To: skhan@...uxfoundation.org
Cc: gregkh@...uxfoundation.org,
	i@...ithal.me,
	linux-kernel@...r.kernel.org,
	linux-usb@...r.kernel.org,
	shuah@...nel.org,
	valentina.manea.m@...il.com,
	Zongmin Zhou <zhouzongmin@...inos.cn>
Subject: [PATCH] usbip: set the dma mask to 64bit default for vhci-driver

From: Zongmin Zhou <zhouzongmin@...inos.cn>

fix usb device limited  max_sectors when use usbip protocol

Signed-off-by: Zongmin Zhou <zhouzongmin@...inos.cn>
---
 drivers/usb/usbip/vhci_hcd.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/usb/usbip/vhci_hcd.c b/drivers/usb/usbip/vhci_hcd.c
index e70fba9f55d6..fca3a4a6e94d 100644
--- a/drivers/usb/usbip/vhci_hcd.c
+++ b/drivers/usb/usbip/vhci_hcd.c
@@ -1345,6 +1345,9 @@ static int vhci_hcd_probe(struct platform_device *pdev)
 
 	usbip_dbg_vhci_hc("name %s id %d\n", pdev->name, pdev->id);
 
+	/* Set the dma mask to support 64bit for vhci-hcd driver. */
+	dma_set_mask(&pdev->dev, DMA_BIT_MASK(64));
+
 	/*
 	 * Allocate and initialize hcd.
 	 * Our private data is also allocated automatically.
-- 
2.34.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ