[PATCH] D148596: [KMSAN] Enable on SystemZ

Ilya Leoshkevich via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 25 14:42:58 PDT 2023


iii updated this revision to Diff 516926.
iii added a comment.
Herald added a subscriber: hoy.

- Fixed an issue with copyRegSaveArea() overwriting shadow of caller's locals. The problem was that the kernel is compiled with "packed-stack", so register save areas may be smaller than 160 bytes. Since the kernel is compiled with "use-soft-float", it's enough (and also correct) to copy only 56 bytes. Now all kernel selftests pass.
- Added a test for this case.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D148596/new/

https://reviews.llvm.org/D148596

Files:
  clang/lib/Driver/ToolChains/Linux.cpp
  llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
  llvm/test/Instrumentation/MemorySanitizer/SystemZ/basic-kernel.ll
  llvm/test/Instrumentation/MemorySanitizer/SystemZ/vararg-kernel.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148596.516926.patch
Type: text/x-patch
Size: 20319 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230425/db4170c0/attachment-0001.bin>


More information about the cfe-commits mailing list