[Midnightbsd-cvs] [MidnightBSD/src] 57ff3a: tests: Test for an epair panic

Lucas Holt noreply at github.com
Sat Nov 14 14:05:12 EST 2020


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

  Changed paths:
    M tests/sys/net/Makefile
    A tests/sys/net/if_epair.c

  Log Message:
  -----------
  tests: Test for an epair panic

if_epair abused the ifr_data field to insert its second interface in
IFC_IFLIST. If userspace provides a value for ifr_data it would get
dereferenced by the kernel leading to a panic.




More information about the Midnightbsd-cvs mailing list