aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor_linux.h
diff options
context:
space:
mode:
Diffstat (limited to 'executor/executor_linux.h')
-rw-r--r--executor/executor_linux.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/executor/executor_linux.h b/executor/executor_linux.h
index 984c0ba62..30c10a615 100644
--- a/executor/executor_linux.h
+++ b/executor/executor_linux.h
@@ -184,6 +184,8 @@ static bool use_cover_edges(uint32 pc)
static bool is_kernel_data(uint64 addr)
{
+ if (is_gvisor)
+ return false;
#if GOARCH_386 || GOARCH_amd64
// This range corresponds to the first 1TB of the physical memory mapping,
// see Documentation/arch/x86/x86_64/mm.rst.
@@ -196,6 +198,8 @@ static bool is_kernel_data(uint64 addr)
// Returns >0 for yes, <0 for no, 0 for don't know.
static int is_kernel_pc(uint64 pc)
{
+ if (is_gvisor)
+ return 0;
#if GOARCH_386 || GOARCH_amd64
// Text/modules range for x86_64.
return pc >= 0xffffffff80000000ull && pc < 0xffffffffff000000ull ? 1 : -1;