linux/drivers/tty/vt
Myrrh Periwinkle e447303a28 vt: defkeymap: Map keycodes above 127 to K_HOLE
commit b43cb4ff85 upstream.

The maximum number of keycodes got bumped to 256 a very long time ago,
but the default keymaps were never adjusted to match. This is causing
the kernel to interpret keycodes above 127 as U+0000 if the shipped
generated keymap is used.

Fix this by mapping all keycodes above 127 to K_HOLE so the kernel
ignores them.

The contents of this patche were generated by rerunning `loadkeys
--mktable --unicode` and only including the changes to map keycodes
above 127 to K_HOLE.

Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Signed-off-by: Myrrh Periwinkle <myrrhperiwinkle@qtmlabs.xyz>
Cc: stable <stable@kernel.org>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20250702-vt-misc-unicode-fixes-v1-2-c27e143cc2eb@qtmlabs.xyz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-08-28 16:30:54 +02:00
..
.gitignore .gitignore: prefix local generated files with a slash 2021-05-02 00:43:35 +09:00
conmakehash.c tty: vt: conmakehash: remove non-portable code printing comment header 2024-08-13 11:06:29 +02:00
consolemap.c drivers/tty/vt: use standard array-copy-functions 2023-11-25 07:23:16 +00:00
cp437.uni tty: fix up a few remaining files without SPDX identifiers 2019-04-04 18:48:43 +02:00
defkeymap.c_shipped vt: defkeymap: Map keycodes above 127 to K_HOLE 2025-08-28 16:30:54 +02:00
defkeymap.map tty: fix up a few remaining files without SPDX identifiers 2019-04-04 18:48:43 +02:00
keyboard.c vt: keyboard: Don't process Unicode characters in K_OFF mode 2025-08-28 16:30:54 +02:00
Makefile vt: remove superfluous CONFIG_HW_CONSOLE 2024-01-27 19:03:51 -08:00
selection.c tty: Require CAP_SYS_ADMIN for all usages of TIOCL_SELMOUSEREPORT 2025-05-02 07:59:10 +02:00
vc_screen.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
vt.c vt: add missing notification when switching back to text mode 2025-07-17 18:37:22 +02:00
vt_ioctl.c vt: remove VT_RESIZE and VT_RESIZEX from vt_compat_ioctl() 2025-06-19 15:32:13 +02:00