Hello,
Patch below fixes kernel crash when multicast group is joined on
disabled interface with IP address added.
The problem is
ip_mc_join_group->ip_mc_inc_group->igmp_group_added
->igmp_ifc_event->igmp_ifc_start_timer which does mod_timer on
uninitialized timer_struct (mr_ifc_timer). As soon as timer fires,
kernel crashes.
Multicast related fields of in_device are only initialized in ip_mc_up
which gets called when device is enabled.
Perhaps somebody with more clue on multicast implementation can comment
on this fix - is this fix enough or maybe wrong.
Karlis
igmp.c.patch
Description: Text document
|