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]
Date:	Sun, 27 Nov 2011 21:08:13 +0100
From:	Sander Eikelenboom <linux@...elenboom.it>
To:	matthieu castet <castet.matthieu@...e.fr>
CC:	linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: re : 3.2-rc2 regression due to commit "USB: EHCI: fix HUB TT scheduling issue with iso transfer" 811c926c

Hi Matthieu,

I can confirm this patch fixes my problem, after testing haven't seen any problems yet.

Thx !

--
Sander



Saturday, November 26, 2011, 11:13:04 PM, you wrote:

> Hi,

> could you try the following patch ?

> It seems there is a flow in the error condition.


> Matthieu


> diff --git a/drivers/usb/host/ehci-sched.c b/drivers/usb/host/ehci-sched.c
> index 56a3203..464b451 100644
> --- a/drivers/usb/host/ehci-sched.c
> +++ b/drivers/usb/host/ehci-sched.c
> @@ -1475,6 +1475,7 @@ iso_stream_schedule (
>          * jump until after the queue is primed.
>          */
>         else {
> +               int done = 0;
>                 start = SCHEDULE_SLOP + (now & ~0x07);
>  
>                 /* NOTE:  assumes URB_ISO_ASAP, to limit complexity/bugs */
> @@ -1491,19 +1492,23 @@ iso_stream_schedule (
>                         /* check schedule: enough space? */
>                         if (stream->highspeed) {
>                                 if (itd_slot_ok(ehci, mod, start,
> -                                               stream->usecs, period))
> +                                               stream->usecs, period)) {
> +                                       done = 1;
>                                         break;
> +                               }
>                         } else {
>                                 if ((start % 8) >= 6)
>                                         continue;
>                                 if (sitd_slot_ok(ehci, mod, stream,
> -                                               start, sched, period))
> +                                               start, sched, period)) {
> +                                       done = 1;
>                                         break;
> +                               }
>                         }
>                 } while (start > next);
>  
>                 /* no room in the schedule */
> -               if (start == next) {
> +               if (!done) {
>                         ehci_dbg(ehci, "iso resched full %p (now %d max %d)\n",
>                                 urb, now, now + mod);
>                         status = -ENOSPC;



-- 
Best regards,
 Sander                            mailto:linux@...elenboom.it

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ