Skip to content

Commit 4f8886c

Browse files
committed
Fix incorrect device shadow memory base for PVC
1 parent 5bd09d1 commit 4f8886c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/loader/layers/sanitizer/asan_interceptor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ uptr MemToShadow_CPU(uptr USM_SHADOW_BASE, uptr UPtr) {
2828

2929
uptr MemToShadow_PVC(uptr USM_SHADOW_BASE, uptr UPtr) {
3030
if (UPtr & 0xFF00000000000000ULL) { // Device USM
31-
return USM_SHADOW_BASE + 0x200000000000ULL +
31+
return USM_SHADOW_BASE + 0x80000000000ULL +
3232
((UPtr & 0xFFFFFFFFFFFFULL) >> ASAN_SHADOW_SCALE);
3333
} else { // Only consider 47bit VA
3434
return USM_SHADOW_BASE +

0 commit comments

Comments
 (0)