[all-commits] [llvm/llvm-project] 4b3881: Emit hidden hostcall argument for sanitized kernels

Yaxun (Sam) Liu via All-commits all-commits at lists.llvm.org
Wed Nov 10 14:06:46 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4b3881e9f319b6c4ec69160f16a49c128ffbd7dd
      https://github.com/llvm/llvm-project/commit/4b3881e9f319b6c4ec69160f16a49c128ffbd7dd
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2021-11-10 (Wed, 10 Nov 2021)

  Changed paths:
    M clang/lib/CodeGen/CodeGenModule.cpp
    M clang/test/CodeGenCUDA/amdgpu-asan.cu
    A llvm/test/CodeGen/AMDGPU/hsa-metadata-hostcall-present-v3-asan.ll

  Log Message:
  -----------
  Emit hidden hostcall argument for sanitized kernels

this patch - https://reviews.llvm.org/D110337 changes the way how hostcall
hidden argument is emitted for printf, but the sanitized kernels also use
hostcall buffer to report a error for invalid memory access, which is not
handled by the above patch and it leads to vdi runtime error:

Device::callbackQueue aborting with error : HSA_STATUS_ERROR_MEMORY_FAULT:
Agent attempted to access an inaccessible address. code: 0x2b

Patch by: Praveen Velliengiri

Reviewed by: Yaxun Liu, Matt Arsenault

Differential Revision: https://reviews.llvm.org/D112820




More information about the All-commits mailing list