inm_rele_locked() may remove the multicast address associated with inm.
Reported by: syzbot+871c5d1fd5fac6c28f52@syzkaller.appspotmail.com
Differential D23009
Take the ifnet's address lock in igmp_v3_cancel_link_timers(). markj on Jan 2 2020, 5:00 PM. Authored by Tags None Referenced Files
Subscribers
Details
inm_rele_locked() may remove the multicast address associated with inm. Reported by: syzbot+871c5d1fd5fac6c28f52@syzkaller.appspotmail.com I don't have a test for it yet, syzkaller did not generate a reproducer.
Diff Detail
Event TimelineComment Actions Looks good. And add to the commit message that inm_disconnect() asserts the IF_ADDR_WLOCK() . You might want to move this assert one level up and into: inm_rele_locked() .... Then you see there is also a call at line 1891, which needs IF_ADDR_WLOCK() around it. Might be better to only lock when inm_refcount == 0. Comment Actions That assertion would be wrong for the call in igmp_initial_join(), where the refcount is > 1.
The caller, igmp_fasttimo_vnet(), already takes the addr wlock.
|