]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix kernel panic while trying to read multicast stream.
authorhselasky <hselasky@FreeBSD.org>
Mon, 17 Feb 2020 09:46:32 +0000 (09:46 +0000)
committerhselasky <hselasky@FreeBSD.org>
Mon, 17 Feb 2020 09:46:32 +0000 (09:46 +0000)
commit1d1ddc94a16aa408cffc7a757d83f7fb4ea0895b
tree8f757d6f4355a8867e7518a270ec7e2cdaa01f9b
parent12206c6f437feaae23f3048318e8b0dfc54ef11b
Fix kernel panic while trying to read multicast stream.

When VIMAGE is enabled make sure the "m_pkthdr.rcvif" pointer is set
for all mbufs being input by the IGMP/MLD6 code. Else there will be a
NULL-pointer dereference in the netisr code when trying to set the
VNET based on the incoming mbuf. Add an assert to catch this when
queueing mbufs on a netisr to make debugging of similar cases easier.

Found by: Vladislav V. Prodan
PR: 244002
Reviewed by: bz@
MFC after: 1 week
Sponsored by: Mellanox Technologies
sys/net/netisr.c
sys/netinet/igmp.c
sys/netinet6/mld6.c