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, 29 Dec 2019 16:57:42 -0800
From:   Guenter Roeck <linux@...ck-us.net>
To:     Alan Stern <stern@...land.harvard.edu>
Cc:     Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        USB list <linux-usb@...r.kernel.org>,
        Kernel development list <linux-kernel@...r.kernel.org>,
        Michael Grzeschik <m.grzeschik@...gutronix.de>,
        stable@...r.kernel.org
Subject: Re: [PATCH] usb: chipidea: host: Disable port power only if
 previously enabled

On Sun, Dec 29, 2019 at 11:40:52AM -0500, Alan Stern wrote:
> On Sun, 29 Dec 2019, Guenter Roeck wrote:
> 
> > On Sat, Dec 28, 2019 at 02:33:01PM -0500, Alan Stern wrote:
> > > 
> > > Let's try a slightly different approach.  What happens with this patch?
> > > 
> > > Alan Stern
> > > 
> > > 
> > > Index: usb-devel/drivers/usb/core/hub.c
> > > ===================================================================
> > > --- usb-devel.orig/drivers/usb/core/hub.c
> > > +++ usb-devel/drivers/usb/core/hub.c
> > > @@ -1065,6 +1065,7 @@ static void hub_activate(struct usb_hub
> > >  		if (type == HUB_INIT) {
> > >  			delay = hub_power_on_good_delay(hub);
> > >  
> > > +			hub->power_bits[0] = ~0UL;	/* All ports on */
> > >  			hub_power_on(hub, false);
> > >  			INIT_DELAYED_WORK(&hub->init_work, hub_init_func2);
> > >  			queue_delayed_work(system_power_efficient_wq,
> > > 
> > 
> > That doesn't make a difference - the traceback is still seen with this patch
> > applied.
> 
> Can you trace what's going on?  Does this code pathway now end up
> calling ehci_port_power() for each root-hub port, and from there down
> into the chipidea driver?  If not, can you find where it gets
> sidetracked?
> 
Sure, I'll do that. It will have to wait for the new year, though -
internet connectivity is terrible where I am right now,

Guenter

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ