[Bug 252608] [panic] [usb] [if_ure] Kernel fault on ure disconnect

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jun 2 12:25:32 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252608

--- Comment #20 from commit-hook at FreeBSD.org ---
A commit in branch stable/13 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=9f98b3ea746f97b61d37f1c11d0e7abb3cd81305

commit 9f98b3ea746f97b61d37f1c11d0e7abb3cd81305
Author:     Hans Petter Selasky <hselasky at FreeBSD.org>
AuthorDate: 2021-01-12 17:51:09 +0000
Commit:     Hans Petter Selasky <hselasky at FreeBSD.org>
CommitDate: 2021-06-02 11:25:19 +0000

    Fix for use-after-free by if_ioctl() calls from user-space in USB drivers
by
    detaching the ifnet before the miibus.

    PR:             252608
    Suggested by:   jhb@
    Sponsored by:   Mellanox Technologies // NVIDIA Networking

    (cherry picked from commit 4eac63af23ddafc2b1dfb2aad2896f4513c37cdd)

 sys/dev/usb/net/uhso.c         | 2 +-
 sys/dev/usb/net/usb_ethernet.c | 9 ++++++---
 2 files changed, 7 insertions(+), 4 deletions(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-usb mailing list