aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorJohan Hovold <[email protected]>2013-03-19 09:21:15 +0100
committerGreg Kroah-Hartman <[email protected]>2013-03-21 15:59:03 -0700
commit71ccb9b01981fabae27d3c98260ea4613207618e (patch)
tree4d776cab43fef4a4da525cc253ed0f8afe816517 /tools/perf/util/trace-event-scripting.c
parent508f940f1407656076a2e7d8f7fa059b567ecac2 (diff)
USB: ftdi_sio: fix use-after-free in TIOCMIWAIT
Use the port wait queue and make sure to check the serial disconnected flag before accessing private port data after waking up. This is is needed as the private port data (including the wait queue itself) can be gone when waking up after a disconnect. When switching to tty ports, some lifetime assumptions were changed. Specifically, close can now be called before the final tty reference is dropped as part of hangup at device disconnect. Even with the ftdi private-data refcounting this means that the port private data can be freed while a process is sleeping on modem-status changes and thus cannot be relied on to detect disconnects when woken up. Cc: stable <[email protected]> Signed-off-by: Johan Hovold <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions