Invalidate the nic's rx descriptor cache when taking the interface up
authorjmatthew <jmatthew@openbsd.org>
Thu, 10 Mar 2022 11:35:13 +0000 (11:35 +0000)
committerjmatthew <jmatthew@openbsd.org>
Thu, 10 Mar 2022 11:35:13 +0000 (11:35 +0000)
commitd04289f55ff9924187bc56e6158fa417450862fa
tree87e0b81a336eaccf34282e481e588b6ddde65e1b
parent1340df41e0c476cd0cf3ce3ec2af61bd95845302
Invalidate the nic's rx descriptor cache when taking the interface up
or down, and turn off the global tx and rx enables when going down.
Without this, the nic can write to mbufs that were taken off the ring
when the interface was taken down, triggering mbuf cluster pool use
after free checks.

ok dlg@
sys/dev/pci/if_aq_pci.c