serenity/Kernel/TTY
Gunnar Beutner 22b0cbe1fe Kernel: Fix crash when changing screen resolution
Steps to reproduce:

1. Change resolution to 640x480.
2. Change resolution to 1280x1024.
3. Observe the following kernel panic:

Kernel::__panic(char const*, unsigned int, char const*) +0x55
Kernel::handle_crash(Kernel::RegisterState&, char const*, ...) +0x112
page_fault_handler +0x1130
page_fault_asm_entry +0x26
Kernel::VirtualConsole::refresh_after_resolution_change() +0x35e4
Kernel::ConsoleManagement::resolution_was_changed() +0x38b
Kernel::Graphics::FramebufferConsole::set_resolution(...) +0x3e1
Kernel::BochsGraphicsAdapter::try_to_set_resolution(...) +0x319
.L4213 +0x40a
Kernel::Process::sys$ioctl(int, unsigned int, unsigned int) +0x2fa
Kernel::Syscall::handle(Kernel::RegisterState&, ...) +0xfdc
syscall_handler +0x19c0
Kernel::syscall_asm_entry_dummy() +0x31
2021-06-18 13:45:21 +02:00
..
ConsoleManagement.cpp Kernel: Fix crash when switching to console 5 & 6 2021-05-31 17:42:21 +01:00
ConsoleManagement.h Kernel: Fix crash when switching to console 5 & 6 2021-05-31 17:42:21 +01:00
MasterPTY.cpp Kernel: Use KResultOr<size_t> throughout the TTY subsystem 2021-06-16 21:29:36 +02:00
MasterPTY.h Kernel: Use KResultOr<size_t> throughout the TTY subsystem 2021-06-16 21:29:36 +02:00
PTYMultiplexer.cpp Kernel: static vs non-static constexpr variables 2021-05-19 21:21:47 +01:00
PTYMultiplexer.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
SlavePTY.cpp Kernel: Use KResultOr<size_t> throughout the TTY subsystem 2021-06-16 21:29:36 +02:00
SlavePTY.h Kernel: Use KResultOr<size_t> throughout the TTY subsystem 2021-06-16 21:29:36 +02:00
TTY.cpp Kernel: Use KResultOr<size_t> throughout the TTY subsystem 2021-06-16 21:29:36 +02:00
TTY.h Kernel: Use KResultOr<size_t> throughout the TTY subsystem 2021-06-16 21:29:36 +02:00
VirtualConsole.cpp Kernel: Fix crash when changing screen resolution 2021-06-18 13:45:21 +02:00
VirtualConsole.h Kernel: Use KResultOr<size_t> throughout the TTY subsystem 2021-06-16 21:29:36 +02:00