2.6 sis900 (and tlan?) multicast bug
Subsystems (2)
Quoted 5 lines · Craig A. Huegen
In the same vein as:
http://seclists.org/lists/linux-kernel/2003/Oct/5794.html...there is a bug in the SiS900 driver in 2.6.1 which prevents multicast MAC filtering from working properly. This breaks IPv6.
I'm seeing this problem too. My sis900 interface can't get an
IPv6 address unless promiscious or allmulti mode is set, since it doesn't get responses on ip6-allrouters.
Please note that I am not subscribed to netdev, so a CC on any
responses would be appreciated.
Quoted 2 lines
Patch attached (same one as from the 2.4 post from Oct 28) that made IPv6 work for me again.
From the original post, referring to the change this reverts:
Quoted 6 lines
Quoted 2 lines
This will not work for
bit_nrlarger than 16 and hence the failure. Reverting to useset_bitcauses multicast to be handled properly.
drivers/net/sis900.c line 2097
Quoted 10 lines
drivers/net/sis900.c renamed from drivers/net/sis900.c.old +2
-3@@ -2091,9 +2091,8 @@ rx_mode =RFAAB ;for (i =0 , mclist = net_dev->mc_list; mclist && i < net_dev->mc_count; i++, mclist = mclist->next) { -unsigned int bit_nr = -sis900_mcast_bitnr (mclist->dmi_addr, revision); - mc_filter[bit_nr >>4 ] |= (1 << bit_nr); +set_bit (sis900_mcast_bitnr (mclist->dmi_addr, revision), + mc_filter); } }
This fix didn't go into 2.4 either, so presumably something is wrong
with it (perhaps we're moving away from set_bit)? I am over my head here really, but I don't want to just set allmulti mode and forget about this bug.
I'm seeing the same behavior with my Thunderlan interfaces and
the tlan driver -- setting allmulti or promiscious mode fixes it (while other boxes here with 3c509 and 3c556 cards work fine with the same configuration.) I wonder, now that USAGI is in the stable kernel, how many multicast bugs like this will turn up?
If anyone has any ideas where in tlan.c to begin looking, I'd be
glad to hear them; I'm not completely technically inept :-).
Signature · 4 lines
Joseph Fannin [email protected] "I think I said something eloquent, like 'Fuck.'" -- Rusty Russell.
Quoted 40 lines · Joseph Fannin
Quoted 6 lines · Craig A. Huegen
In the same vein as:
http://seclists.org/lists/linux-kernel/2003/Oct/5794.html...there is a bug in the SiS900 driver in 2.6.1 which prevents multicast MAC filtering from working properly. This breaks IPv6.
I'm seeing this problem too. My sis900 interface can't get an
IPv6 address unless promiscious or allmulti mode is set, since it doesn't get responses on ip6-allrouters.Please note that I am not subscribed to netdev, so a CC on any
responses would be appreciated.Quoted 2 lines
Patch attached (same one as from the 2.4 post from Oct 28) that made IPv6 work for me again.
From the original post, referring to the change this reverts:
Quoted 15 lines
Quoted 2 lines
This will not work for
bit_nrlarger than 16 and hence the failure. Reverting to useset_bitcauses multicast to be handled properly.drivers/net/sis900.c renamed from drivers/net/sis900.c.old +2
-3@@ -2091,9 +2091,8 @@ rx_mode =RFAAB ;for (i =0 , mclist = net_dev->mc_list; mclist && i < net_dev->mc_count; i++, mclist = mclist->next) { -unsigned int bit_nr = -sis900_mcast_bitnr (mclist->dmi_addr, revision); - mc_filter[bit_nr >>4 ] |= (1 << bit_nr); +set_bit (sis900_mcast_bitnr (mclist->dmi_addr, revision), + mc_filter);
Quoted 8 lines
drivers/net/sis900.c line 2097
Quoted 2 lines
drivers/net/sis900.c renamed from drivers/net/sis900.c.old +0
-0} }This fix didn't go into 2.4 either, so presumably something is wrong
with it (perhaps we're moving away fromset_bit)? I am over my head here really, but I don't want to just set allmulti mode and forget about this bug.
Correct, set_bit should only occur on unsigned long variables. So, the code needs to manually set that bit.
Jeff
A message that is not in the archive (sent off-list or not yet received): [email protected]
looks good, I'll make sure this gets in...
Jeff Garzik
Appliedapplied to 2.4 and 2.6