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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210514085128.43026b8c@canb.auug.org.au>
Date:   Fri, 14 May 2021 08:51:28 +1000
From:   Stephen Rothwell <sfr@...b.auug.org.au>
To:     Loic Poulain <loic.poulain@...aro.org>
Cc:     David Miller <davem@...emloft.net>,
        Networking <netdev@...r.kernel.org>, Greg KH <greg@...ah.com>,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
        Linux Next Mailing List <linux-next@...r.kernel.org>,
        Oliver Neukum <oneukum@...e.com>
Subject: Re: linux-next: build failure after merge of the net-next tree

Hi Loic,

On Thu, 13 May 2021 08:35:50 +0200 Loic Poulain <loic.poulain@...aro.org> wrote:
>
> On Thu, 13 May 2021 at 03:11, Stephen Rothwell <sfr@...b.auug.org.au> wrote:
> >
> > On Wed, 12 May 2021 09:54:18 +1000 Stephen Rothwell <sfr@...b.auug.org.au> wrote:  
> > >
> > > On Wed, 12 May 2021 09:52:01 +1000 Stephen Rothwell <sfr@...b.auug.org.au> wrote:  
> > > >
> > > > After merging the net-next tree, today's linux-next build (x86_64
> > > > allmodconfig) failed like this:
> > > >
> > > > drivers/usb/class/cdc-wdm.c: In function 'wdm_wwan_port_stop':
> > > > drivers/usb/class/cdc-wdm.c:858:2: error: implicit declaration of function 'kill_urbs' [-Werror=implicit-function-declaration]
> > > >   858 |  kill_urbs(desc);
> > > >       |  ^~~~~~~~~
> > > >
> > > > Caused by commit
> > > >
> > > >   cac6fb015f71 ("usb: class: cdc-wdm: WWAN framework integration")
> > > >
> > > > kill_urbs() was removed by commit
> > > >
> > > >   18abf8743674 ("cdc-wdm: untangle a circular dependency between callback and softint")
> > > >
> > > > Which is included in v5.13-rc1.  
> > >
> > > Sorry, that commit is only in linux-next (from the usb.current tree).
> > > I will do a merge fix up tomorrow - unless someone provides one.
> > >  
> > > > I have used the net-next tree from next-20210511 for today.  
> >
> > I have used the following merge fix patch for today.  I don't know if
> > this is sufficient (or even correct), but it does build.  
> 
> Thanks for working on this.
> 
> >
> > From: Stephen Rothwell <sfr@...b.auug.org.au>
> > Date: Thu, 13 May 2021 11:04:09 +1000
> > Subject: [PATCH] usb: class: cdc-wdm: fix for kill_urbs() removal
> >
> > Signed-off-by: Stephen Rothwell <sfr@...b.auug.org.au>
> > ---
> >  drivers/usb/class/cdc-wdm.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/usb/class/cdc-wdm.c b/drivers/usb/class/cdc-wdm.c
> > index c88dcc4b6618..489b0e049402 100644
> > --- a/drivers/usb/class/cdc-wdm.c
> > +++ b/drivers/usb/class/cdc-wdm.c
> > @@ -855,7 +855,7 @@ static void wdm_wwan_port_stop(struct wwan_port *port)
> >         struct wdm_device *desc = wwan_port_get_drvdata(port);
> >
> >         /* Stop all transfers and disable WWAN mode */
> > -       kill_urbs(desc);
> > +       poison_urbs(desc);
> >         desc->manage_power(desc->intf, 0);
> >         clear_bit(WDM_READ, &desc->flags);
> >         clear_bit(WDM_WWAN_IN_USE, &desc->flags);  
> 
> AFAIU, each poison call must be balanced with unpoison call.
> So you probably want to call unpoison_urbs right here, similarly to
> wdm_release or wdm_suspend.

I have added that call today.

Thanks for the feedback.

-- 
Cheers,
Stephen Rothwell

Content of type "application/pgp-signature" skipped

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ