| 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
| ||
|
Message-ID: <4D866F59.5070703@gmail.com> Date: Sun, 20 Mar 2011 22:19:21 +0100 From: Nicolas de Pesloüan <nicolas.2p.debian@...il.com> To: Jiri Pirko <jpirko@...hat.com> CC: Jay Vosburgh <fubar@...ibm.com>, Andy Gospodarek <andy@...yhouse.net>, "netdev@...r.kernel.org" <netdev@...r.kernel.org> Subject: Re: oops / kernel panic in bonding. Le 20/03/2011 21:17, Nicolas de Pesloüan a écrit : > Hi Jiri, > > I suspect we have a race condition somewhere in the new > bond_handle_frame function: > > The following commands produce one of the following errors: > > modprobe bonding max_bonds=0 > echo +bond0>/sys/class/net/bonding_masters > echo +bond1>/sys/class/net/bonding_masters > echo +eth1>/sys/class/net/bond1/bonding/slaves > > This is mostly reproducible, under VirtualBox. > > All tests done with 08351fc6a75731226e1112fc7254542bd3a2912e at the top > commit (current net-next-2.6). I suspect netdev_rx_handler_register is called too early in bond_enslave. I think it should be the last thing we do in bond_enslave, if we don't want to face the risk to have bond_handle_frame being called before everything is properly setup. Nicolas. -- 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