[Bug 252608] [panic] [usb] [if_ure] Kernel fault on ure disconnect
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Jan 12 17:34:41 UTC 2021
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252608
--- Comment #11 from commit-hook at FreeBSD.org ---
A commit in branch main references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=6e5baec33c1032f4fbf713d601a34b4658b918a2
commit 6e5baec33c1032f4fbf713d601a34b4658b918a2
Author: Hans Petter Selasky <hselasky at FreeBSD.org>
AuthorDate: 2021-01-12 13:13:14 +0000
Commit: Hans Petter Selasky <hselasky at FreeBSD.org>
CommitDate: 2021-01-12 16:57:58 +0000
Fix for use-after-free in if_ure(4) driver.
When detaching the if_ure(4) driver, the TX active USB transfer array may
point to freed USB transfers. Given that the number of USB transfers is
very low, simply start all transfers every time there is a packet to
keep safe from use-after-free.
PR: 252608
MFC after: 1 week
Sponsored by: Mellanox Technologies // NVIDIA Networking
sys/dev/usb/net/if_ure.c | 49 ++++-----------------------------------------
sys/dev/usb/net/if_urereg.h | 9 ---------
2 files changed, 4 insertions(+), 54 deletions(-)
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-usb
mailing list