[all-commits] [llvm/llvm-project] 61e50b: [rtsan] Added mmap and shm interceptors (#114862)

Chris Apple via All-commits all-commits at lists.llvm.org
Mon Nov 4 16:54:15 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 61e50b9f03311504bc7c846a05336a8b6491e6b2
      https://github.com/llvm/llvm-project/commit/61e50b9f03311504bc7c846a05336a8b6491e6b2
  Author: Chris Apple <cja-private at pm.me>
  Date:   2024-11-04 (Mon, 04 Nov 2024)

  Changed paths:
    M compiler-rt/lib/rtsan/rtsan_interceptors_posix.cpp
    M compiler-rt/lib/rtsan/tests/rtsan_test_interceptors_posix.cpp

  Log Message:
  -----------
  [rtsan] Added mmap and shm interceptors (#114862)

# Why do we think these are unsafe?

mmap and munmap are used for mapping a specific manipulation of the
virtual memory of a process. Typically used in things like databases and
area allocators.

They call the system calls `mmap` and `munmap` under the hood (confirmed
on mac using dtrace)

shm_open/unlink interact with shared memory across processes. 

Similarly under the hood, they call the `shm_open`/`shm_unlink` system
calls (confirmed on mac using dtrace)



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