Summary: | panic: page fault when unplugging mouse | ||
---|---|---|---|
Product: | Base System | Reporter: | Xin LI <delphij> |
Component: | kern | Assignee: | Xin LI <delphij> |
Status: | Closed FIXED | ||
Severity: | Affects Some People | CC: | wulf |
Priority: | --- | Keywords: | crash |
Version: | CURRENT | Flags: | delphij:
mfc-stable12+
delphij: mfc-stable11+ |
Hardware: | Any | ||
OS: | Any | ||
URL: | https://reviews.freebsd.org/D24500 |
Description
Xin LI
![]() ![]() Actually the bug was pretty obvious. https://reviews.freebsd.org/D24500 A commit references this bug: Author: delphij Date: Sun Apr 19 17:28:43 UTC 2020 New revision: 360104 URL: https://svnweb.freebsd.org/changeset/base/360104 Log: Use LIST_FOREACH_SAFE instead of LIST_FOREACH as we are removing elements in the middle. This fixes a panic when detaching USB mouse. PR: 245732 Reviewed by: wulf MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D24500 Changes: head/sys/dev/evdev/evdev.c This should be merged to both stable branches. Note that the panic do NOT necessarily affect these branches as we don't build INVARIANTS kernel by default (see explanation in the review), but it's still worth fixing. A commit references this bug: Author: delphij Date: Wed Apr 22 05:08:42 UTC 2020 New revision: 360184 URL: https://svnweb.freebsd.org/changeset/base/360184 Log: MFC r360104: Use LIST_FOREACH_SAFE instead of LIST_FOREACH as we are removing elements in the middle. This fixes a panic when detaching USB mouse. PR: 245732 Reviewed by: wulf Changes: _U stable/12/ stable/12/sys/dev/evdev/evdev.c A commit references this bug: Author: delphij Date: Wed Apr 22 05:14:53 UTC 2020 New revision: 360185 URL: https://svnweb.freebsd.org/changeset/base/360185 Log: MFC r360104: Use LIST_FOREACH_SAFE instead of LIST_FOREACH as we are removing elements in the middle. This fixes a panic when detaching USB mouse. PR: 245732 Reviewed by: wulf Changes: _U stable/11/ stable/11/sys/dev/evdev/evdev.c |