diff options
| author | Johan Hovold <johan@kernel.org> | 2026-09-03 18:37:36 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-09-23 11:58:36 +0200 |
| commit | 845a2737e0f5ffe5ca8d38de556012b0c9472cdd (patch) | |
| tree | b6b913cdcdc0b461315208aa58cee22c495248b4 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 5b114bfc1dfd88f9d50822d532f7f1fce0f7388a (diff) | |
| download | linux-845a2737e0f5ffe5ca8d38de556012b0c9472cdd.tar.gz linux-845a2737e0f5ffe5ca8d38de556012b0c9472cdd.zip | |
tty: abort break signalling on hangup
The break ioctls can race with hangup and end up calling into a tty
driver for a device that is already gone or powered down.
Drivers must handle this race, but TCSBRK and TCSBRKP should still be
aborted to avoid calling back into the driver after a user-controlled
timeout (possibly even after the tty has been reopened).
Note that drivers should disable any break state on shutdown so just
return on hangup (calling break_ctl() again is racy and will most likely
fail for drivers handling the race).
Fixes: f34d7a5b7010 ("tty: The big operations rework")
Cc: stable <stable@kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20260903163736.1499280-1-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
