From ef5af384e705449fcd86cff582707b47921ab255 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Fri, 30 Aug 2024 15:34:37 +0300 Subject: [PATCH] Kernel: Print userspace invalid pointer access address --- kernel/kernel/Process.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/kernel/Process.cpp b/kernel/kernel/Process.cpp index 3208cff5..56027d5f 100644 --- a/kernel/kernel/Process.cpp +++ b/kernel/kernel/Process.cpp @@ -2376,7 +2376,7 @@ namespace Kernel return {}; 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(); MUST(sys_kill(pid(), SIGSEGV)); return BAN::Error::from_errno(EINTR);