diff options
| author | Mathias Nyman <[email protected]> | 2017-12-21 13:06:13 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2017-12-27 14:24:27 +0000 |
| commit | 052f71e25a7ecd80a9567b291df8ea333d9a8565 (patch) | |
| tree | 9b54176a65005199ca70e259ebbbb20f490b78ee /tools/perf/scripts/python/syscall-counts.py | |
| parent | Merge tag 'usb-serial-4.15-rc6' of https://git.kernel.org/pub/scm/linux/kerne... (diff) | |
| download | kernel-052f71e25a7ecd80a9567b291df8ea333d9a8565.tar.gz kernel-052f71e25a7ecd80a9567b291df8ea333d9a8565.zip | |
xhci: Fix xhci debugfs NULL pointer dereference in resume from hibernate
Free the virt_device and its debugfs_private member together.
When resuming from hibernate the .free_dev callback unconditionally
freed the debugfs_private member, but could leave virt_device intact.
This triggered a NULL pointer dereference after resume when usbmuxd
sent a USBDEVFS_SETCONFIGURATION ioctl to a device, trying to add a
endpoint debugfs entry to a already freed debugfs_private pointer.
Fixes: 02b6fdc2a153 ("usb: xhci: Add debugfs interface for xHCI driver")
Reported-by: Alexander Kappner <[email protected]>
Tested-by: Alexander Kappner <[email protected]>
Signed-off-by: Mathias Nyman <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
