[Midnightbsd-cvs] [MidnightBSD/src] f66916: Fix kernel panic while trying to read multicast st...

Lucas Holt noreply at github.com
Sun Nov 15 01:47:39 EST 2020


  Branch: refs/heads/master
  Home:   https://github.com/MidnightBSD/src
  Commit: f669167e33ff4dfdcb8159b8f2e7ebc6878802e5
      https://github.com/MidnightBSD/src/commit/f669167e33ff4dfdcb8159b8f2e7ebc6878802e5
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2020-11-15 (Sun, 15 Nov 2020)

  Changed paths:
    M sys/net/netisr.c
    M sys/netinet/igmp.c
    M sys/netinet6/mld6.c

  Log Message:
  -----------
  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.




More information about the Midnightbsd-cvs mailing list