[all-commits] [llvm/llvm-project] 9320d1: [compiler-rt] Don't handle Linux-specific shmctl c...

Jessica Clarke via All-commits all-commits at lists.llvm.org
Thu Jul 10 11:33:46 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9320d1d48410aeedc477bed501d038cad9917ffa
      https://github.com/llvm/llvm-project/commit/9320d1d48410aeedc477bed501d038cad9917ffa
  Author: Jessica Clarke <jrtc27 at jrtc27.com>
  Date:   2025-07-10 (Thu, 10 Jul 2025)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_freebsd.cpp
    M compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_freebsd.h

  Log Message:
  -----------
  [compiler-rt] Don't handle Linux-specific shmctl commands in sanitizer (#143116)

Despite being defined in the system headers, these commands are not in
fact part of the FreeBSD system call interface. They exist solely for
the Linuxulator, i.e. running Linux binaries on FreeBSD, and any attempt
to use them from a FreeBSD binary will return EINVAL. The fact we needed
to define _KERNEL (which, as the name implies, means we are compiling
the kernel) to even get the definition of shminfo should have been a
strong indicator that IPC_INFO at least was not a userspace interface.



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