[all-commits] [llvm/llvm-project] adcd28: [scudo] Return nullptr if a remap fails on linux. ...

Christopher Ferris via All-commits all-commits at lists.llvm.org
Mon Jun 1 21:49:40 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: adcd285fc4047759e4014d6568d80bb64589aded
      https://github.com/llvm/llvm-project/commit/adcd285fc4047759e4014d6568d80bb64589aded
  Author: Christopher Ferris <cferris1000 at users.noreply.github.com>
  Date:   2026-06-01 (Mon, 01 Jun 2026)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/mem_map_linux.cpp
    M compiler-rt/lib/scudo/standalone/report_linux.cpp
    M compiler-rt/lib/scudo/standalone/report_linux.h
    M compiler-rt/lib/scudo/standalone/secondary.h
    M compiler-rt/lib/scudo/standalone/tests/report_test.cpp

  Log Message:
  -----------
  [scudo] Return nullptr if a remap fails on linux. (#200537)

Add a check if a fixed address mmap doesn't return the expected address.

Allow a remap call to fail if the mmap fails and returns a nullptr to
the caller.

Fix a place where if remap fails in the secondary, it didn't do
anything. Now it will unmap the original entry on failure.



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