summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2026-09-08 10:40:00 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-09-23 11:59:08 +0200
commit56964f6a31238fb41d5830bb42520c5b10ff7d8f (patch)
tree39e6f7e82f75177002b150bff1310c50868c1ffc /tools/perf/scripts/python/stackcollapse.py
parent845a2737e0f5ffe5ca8d38de556012b0c9472cdd (diff)
downloadlinux-56964f6a31238fb41d5830bb42520c5b10ff7d8f.tar.gz
linux-56964f6a31238fb41d5830bb42520c5b10ff7d8f.zip
tty: tty_port: restore TTY_IO_ERROR on activation failure
Make sure to restore the TTY_IO_ERROR flag if activation fails to prevent I/O attempts on a port that is gone or powered down. This specifically avoids issues like kernel panic due to unclocked accesses or NULL-pointer dereferences when accessing powered down or deregistered ports when a TTY ioctl races with hangup and open. Note that the flag is set again in tty_port_close() but not restoring it on activation failure leaves a window where drivers fail to handle the ioctl-hangup race. Fixes: a9a37ec33a1b ("tty: tty_port: Move the IO_ERROR clear") Cc: stable <stable@kernel.org> # 2.6.33 Signed-off-by: Johan Hovold <johan@kernel.org> Link: https://patch.msgid.link/20260908084000.218528-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