]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r358013:
authorHans Petter Selasky <hselasky@FreeBSD.org>
Mon, 24 Feb 2020 09:57:47 +0000 (09:57 +0000)
committerHans Petter Selasky <hselasky@FreeBSD.org>
Mon, 24 Feb 2020 09:57:47 +0000 (09:57 +0000)
commit8eee4817d12809f8733b53c65c83ec0e966a3652
tree454c67840c781ba10e384293b7398a09ce69f9d8
parent84d2d5c7b06ad8a66caaea60f8f444a8e969102b
MFC r358013:
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@
Sponsored by: Mellanox Technologies
sys/net/netisr.c
sys/netinet/igmp.c
sys/netinet6/mld6.c