Kernel: Print userspace invalid pointer access address

This commit is contained in:
Bananymous 2024-08-30 15:34:37 +03:00
parent a134d16070
commit ef5af384e7
1 changed files with 1 additions and 1 deletions

View File

@ -2376,7 +2376,7 @@ namespace Kernel
return {}; return {};
unauthorized_access: unauthorized_access:
dwarnln("process {}, thread {} attempted to make an invalid pointer access", pid(), Thread::current().tid()); dwarnln("process {}, thread {} attempted to make an invalid pointer access to 0x{H}->0x{H}", pid(), Thread::current().tid(), vaddr, vaddr + size);
Debug::dump_stack_trace(); Debug::dump_stack_trace();
MUST(sys_kill(pid(), SIGSEGV)); MUST(sys_kill(pid(), SIGSEGV));
return BAN::Error::from_errno(EINTR); return BAN::Error::from_errno(EINTR);