[all-commits] [llvm/llvm-project] 221336: [dfsan] Fix release_shadow_space.c (#94770)

Thurston Dang via All-commits all-commits at lists.llvm.org
Fri Jun 7 21:10:34 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 221336c8e2b0d2d1979cdaf198ab0afcf930d795
      https://github.com/llvm/llvm-project/commit/221336c8e2b0d2d1979cdaf198ab0afcf930d795
  Author: Thurston Dang <thurston at google.com>
  Date:   2024-06-07 (Fri, 07 Jun 2024)

  Changed paths:
    M compiler-rt/test/dfsan/release_shadow_space.c

  Log Message:
  -----------
  [dfsan] Fix release_shadow_space.c (#94770)

DFSan's sscanf is incorrect
(https://github.com/llvm/llvm-project/issues/94769), which results in
erroneous matches when scraping RSS from /proc/maps. This patch works
around the issue by using strstr as a secondary check.

It also adds a loose validity check for the initial RSS measurement, to
guard against regressions in get_rss_kb().

Fixes https://github.com/llvm/llvm-project/issues/91287



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list