diff options
| author | Joshua Rogers <linux@joshua.hu> | 2026-07-31 09:56:16 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-08-03 16:31:12 +0200 |
| commit | e25d47a526939ad44b75f778b8a7500562b84fc1 (patch) | |
| tree | d732f868cb99d3f1b4b1d6403b798fe8c03b2678 /tools/perf/scripts/python | |
| parent | 1423415471274abda87024967d7fe2206ceee0ea (diff) | |
vt: stabilize tty reference in kbd_keycode with tty_port_tty_get
kbd_keycode() reads vc->port.tty without acquiring a tty reference,
racing against con_shutdown() which clears port.tty under a different
lock. Use tty_port_tty_get()/tty_kref_put() to hold a proper reference
for the duration the tty pointer is needed.
Assisted-by: AISLE:Snapshot
Signed-off-by: Joshua Rogers <linux@joshua.hu>
Cc: stable <stable@kernel.org>
Link: https://patch.msgid.link/20260731-tty-vt-stuff-v1-1-be99b9da8e30@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
