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:	Wed, 25 Jul 2007 00:09:22 +0100
From:	Al Viro <viro@....linux.org.uk>
To:	bphilips@...e.de
Cc:	netdev@...r.kernel.org
Subject: Re: [PATCH 1/2][RFC] Update net core to use devres.

On Tue, Jul 24, 2007 at 11:51:34PM +0100, Al Viro wrote:
> On Tue, Jul 24, 2007 at 03:39:52PM -0700, bphilips@...e.de wrote:
> > * netdev_pci_remove_one() can replace simple pci device remove
> >   functions
> > 
> > * devm_alloc_netdev() is like alloc_netdev but allocates memory using devres.
> >   alloc_netdev() can be removed once all drivers use devres.
>  
> Ewwww...  What the hell for?  To make sure that we have struct device
> for everything, whether we need it or not?  Have you actually read
> through drivers/net?  I mean, _really_ read through it, looking for
> ugly cases...
> 
> I've done just that several times and I'm sorry, but I would classify
> that project as hopeless.  It's way, _way_ more diverse than SATA...

Actually, it's even worse - net_device itself simply *cannot* be
dealt with that way.  Its lifetime can indefinitely exceed that
of underlying e.g. PCI device.
-
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