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] [day] [month] [year] [list]
Message-ID: <BYAPR07MB53818D48E6D3EBBC05034B96DD969@BYAPR07MB5381.namprd07.prod.outlook.com>
Date:   Fri, 5 Mar 2021 05:16:13 +0000
From:   Pawel Laszczak <pawell@...ence.com>
To:     Pawel Laszczak <pawell@...ence.com>,
        "peter.chen@....com" <peter.chen@....com>
CC:     "gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>,
        "linux-usb@...r.kernel.org" <linux-usb@...r.kernel.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        Rahul Kumar <kurahul@...ence.com>,
        Sanket Parmar <sparmar@...ence.com>
Subject: RE: [PATCH] usb: cdnsp: Fixes incorrect value in ISOC TRB

Hi,

Please ignore this patch. I put incorrect address to Peter. I have sent again this patch with correct email address.

>-----Original Message-----
>From: Pawel Laszczak <pawell@...ence.com>
>Sent: Friday, March 5, 2021 6:00 AM
>To: peter.chen@....com
>Cc: gregkh@...uxfoundation.org; linux-usb@...r.kernel.org; linux-kernel@...r.kernel.org; Rahul Kumar <kurahul@...ence.com>;
>Sanket Parmar <sparmar@...ence.com>; Pawel Laszczak <pawell@...ence.com>
>Subject: [PATCH] usb: cdnsp: Fixes incorrect value in ISOC TRB
>
>From: Pawel Laszczak <pawell@...ence.com>
>
>The value "start_cycle ? 0 : 1" in assignment caused
>implicit truncation whole value to 1 byte.
>To fix the issue, an explicit casting has been added.
>
>Fixes: commit 3d82904559f4 ("usb: cdnsp: cdns3 Add main part of Cadence USBSSP DRD Driver")
>Signed-off-by: Pawel Laszczak <pawell@...ence.com>
>---
> drivers/usb/cdns3/cdnsp-ring.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/drivers/usb/cdns3/cdnsp-ring.c b/drivers/usb/cdns3/cdnsp-ring.c
>index f9170d177a89..d35bc4490216 100644
>--- a/drivers/usb/cdns3/cdnsp-ring.c
>+++ b/drivers/usb/cdns3/cdnsp-ring.c
>@@ -2197,7 +2197,7 @@ static int cdnsp_queue_isoc_tx(struct cdnsp_device *pdev,
> 	 * inverted in the first TDs isoc TRB.
> 	 */
> 	field = TRB_TYPE(TRB_ISOC) | TRB_TLBPC(last_burst_pkt) |
>-		start_cycle ? 0 : 1 | TRB_SIA | TRB_TBC(burst_count);
>+		(u32)(start_cycle ? 0 : 1) | TRB_SIA | TRB_TBC(burst_count);
>
> 	/* Fill the rest of the TRB fields, and remaining normal TRBs. */
> 	for (i = 0; i < trbs_per_td; i++) {
>--
>2.25.1

Regards,
Pawel Laszczak

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ