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: <1487194438.1311.30.camel@edumazet-glaptop3.roam.corp.google.com>
Date:   Wed, 15 Feb 2017 13:33:58 -0800
From:   Eric Dumazet <eric.dumazet@...il.com>
To:     Anoob Soman <anoob.soman@...rix.com>
Cc:     netdev@...r.kernel.org, davem@...emloft.net
Subject: Re: [PATCH v3 net] packet: Do not call fanout_release from atomic
 contexts

On Wed, 2017-02-15 at 13:02 -0800, Eric Dumazet wrote:
> On Wed, 2017-02-15 at 20:25 +0000, Anoob Soman wrote:
> 
> > +static struct packet_fanout *fanout_release(struct sock *sk)
> >  {
> >  	struct packet_sock *po = pkt_sk(sk);
> >  	struct packet_fanout *f;
> > @@ -1728,17 +1736,17 @@ static void fanout_release(struct sock *sk)
> >  	if (f) {
> >  		po->fanout = NULL;
> >  
> > -		if (atomic_dec_and_test(&f->sk_ref)) {
> > +		if (atomic_dec_and_test(&f->sk_ref))
> >  			list_del(&f->list);
> > -			dev_remove_pack(&f->prot_hook);
> > -			fanout_release_data(f);
> > -			kfree(f);
> > -		}
> > +		else
> > +			f = NULL;
> 
> 
> Patch looks good, except this coding style issue.

Oh well, sorry , I missed we only had one left line ;)

Acked-by: Eric Dumazet <edumazet@...gle.com>



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ