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: <20070918.131505.91210517.davem@davemloft.net>
Date:	Tue, 18 Sep 2007 13:15:05 -0700 (PDT)
From:	David Miller <davem@...emloft.net>
To:	rdreier@...co.com
Cc:	krkumar2@...ibm.com, netdev@...r.kernel.org,
	general@...ts.openfabrics.org
Subject: Re: [PATCH net-2.6.24] Fix refcounting problem with
 netif_rx_reschedule()

From: Roland Dreier <rdreier@...co.com>
Date: Tue, 18 Sep 2007 10:58:37 -0700

> netif_rx_complete() takes a netdev parameter and does dev_put() on
> that netdev, so netif_rx_reschedule() needs to also take a netdev
> parameter and do dev_hold() on it to avoid reference counts from
> getting becoming negative because of unbalanced dev_put()s.
> 
> This should fix the problem reported by Krishna Kumar
> <krkumar2@...ibm.com> with IPoIB waiting forever for netdev refcounts
> to become 0 during module unload.
> 
> Signed-off-by: Roland Dreier <rolandd@...co.com>

Applied to net-2.6.24, thanks Roland.

> BTW, it looks like drivers/net/ibm_emac/ibm_emac_mal.c would not have 
> built in the current net-2.6.24 tree, since its call to
> netif_rx_reschedule() was left with the netdev parameter.  So that
> file does not need to be touched in this patch.

Yes, I know, this is the one NAPI driver that hasn't been converted.

It's a complicated conversion because of how the driver and the data
structures have been arranged (in short, a mess) which makes it
insanely difficult to get from a queue instance back up to a network
device or similar.

Further complicating things is that you need to setup a ppc32
cross-build environment to even build test a conversion, and I'm not
comfortable doing the surgery until I can test build the thing.

And this may be hard to believe, but other things have been more
pressing than setting up a ppc32 cross-build environment :-)

This is a hint of anyone looking for something to do that it'd
be much appreciated for someone to tackle the ibm_emac conversion.

Thanks.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ