<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in lsan_common_mac.cpp</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>8246b2e1 - [Sanitizers][Darwin] Replace SANITIZER_MAC with SANITIZER_APPLE in source files</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/compiler-rt/lib/lsan/lsan_common_mac.cpp#8246b2e1</link>
        <description>[Sanitizers][Darwin] Replace SANITIZER_MAC with SANITIZER_APPLE in source filesThis is a follow up to [Sanitizers][Darwin] Rename Apple macro SANITIZER_MAC -&gt; SANITIZER_APPLE (D125816)Performed a global search/replace as in title against LLVM sourcesDifferential Revision: https://reviews.llvm.org/D126263

            List of files:
            /llvm-project-15.0.7/compiler-rt/lib/lsan/lsan_common_mac.cpp</description>
        <pubDate>Mon, 23 May 2022 21:35:42 +0000</pubDate>
        <dc:creator>Mariusz Borsa &lt;m_borsa@apple.com&gt;</dc:creator>
    </item>
<item>
        <title>6f480655 - [ASan][Darwin] Avoid crash during ASan initialization</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/compiler-rt/lib/lsan/lsan_common_mac.cpp#6f480655</link>
        <description>[ASan][Darwin] Avoid crash during ASan initializationAlways pass `depth=1` to `vm_region_recurse_64()`.  `depth` is a in-outparameter and gets reset to 0 after the first call, so we incorrectlypass `depth=0` on subsequent calls.We want to avoid the following crash:```Exception Type: EXC_BAD_ACCESS (SIGSEGV)Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000180000000Exception Codes: 0x0000000000000001, 0x0000000180000000VM Region Info: 0x180000000 is not in any region. Bytes after previous region: 277577729 Bytes before following region: 384270336   REGION TYPE         START - END   [ VSIZE] PRT/MAX SHRMOD REGION DETAIL   Stack          16f64c000-16f748000 [ 1008K] rw-/rwx SM=PRV thread 0---&gt; GAP OF 0x27730000 BYTES   unused shlib __TEXT   196e78000-196eac000 [ 208K] r-x/r-x SM=COW ... this processTermination Reason: SIGNAL 11 Segmentation fault: 11Terminating Process: exc handler [767]```Crashing code:```static mach_header *get_dyld_image_header() { unsigned depth = 1; vm_size_t size = 0; vm_address_t address = 0; kern_return_t err = KERN_SUCCESS; mach_msg_type_number_t count = VM_REGION_SUBMAP_INFO_COUNT_64; while (true) {  struct vm_region_submap_info_64 info;  err = vm_region_recurse_64(mach_task_self(), &amp;address, &amp;size, &amp;depth,                (vm_region_info_t)&amp;info, &amp;count);  if (err != KERN_SUCCESS) return nullptr;  if (size &gt;= sizeof(mach_header) &amp;&amp; info.protection &amp; kProtectionRead) {   mach_header *hdr = (mach_header *)address;   if ((hdr-&gt;magic == MH_MAGIC || hdr-&gt;magic == MH_MAGIC_64) &amp;&amp;   // &lt;&lt; CRASH: sanitizer_procmaps_mac.cpp:176     hdr-&gt;filetype == MH_DYLINKER) {    return hdr;   }  }  address += size; }}```Radar-Id: rdar://problem/86773501Differential Revision: https://reviews.llvm.org/D116240

            List of files:
            /llvm-project-15.0.7/compiler-rt/lib/lsan/lsan_common_mac.cpp</description>
        <pubDate>Thu, 23 Dec 2021 06:30:46 +0000</pubDate>
        <dc:creator>Julian Lettner &lt;julian.lettner@apple.com&gt;</dc:creator>
    </item>
<item>
        <title>061f22dd - [NFC][lsan] Refactor LockThreadRegistry/LockAllocator calls</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/compiler-rt/lib/lsan/lsan_common_mac.cpp#061f22dd</link>
        <description>[NFC][lsan] Refactor LockThreadRegistry/LockAllocator calls

            List of files:
            /llvm-project-15.0.7/compiler-rt/lib/lsan/lsan_common_mac.cpp</description>
        <pubDate>Tue, 07 Dec 2021 06:22:04 +0000</pubDate>
        <dc:creator>Vitaly Buka &lt;vitalybuka@google.com&gt;</dc:creator>
    </item>
<item>
        <title>64d44208 - [NFC][lsan] Simplify root_regions initialization</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/compiler-rt/lib/lsan/lsan_common_mac.cpp#64d44208</link>
        <description>[NFC][lsan] Simplify root_regions initialization

            List of files:
            /llvm-project-15.0.7/compiler-rt/lib/lsan/lsan_common_mac.cpp</description>
        <pubDate>Fri, 12 Nov 2021 07:32:58 +0000</pubDate>
        <dc:creator>Vitaly Buka &lt;vitalybuka@google.com&gt;</dc:creator>
    </item>
<item>
        <title>aae707cd - [lsan] Expose Frontier object to OS-specific LockStuffAndStopTheWorld callback</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/compiler-rt/lib/lsan/lsan_common_mac.cpp#aae707cd</link>
        <description>[lsan] Expose Frontier object to OS-specific LockStuffAndStopTheWorld callbackThis is a small refactoring to prepare for porting LSan to Fuchsia.On Fuchsia, the system supplies a unified API for suspending threads andenumerating roots from OS-specific places like thread state and global dataranges. So its LockStuffAndStopTheWorld implementation will make specificcallbacks for all the OS-specific root collection work before making thecommon callback that includes the actual leak-checking logic.Patch By: mcgrathrDifferential Revision: https://reviews.llvm.org/D72988

            List of files:
            /llvm-project-15.0.7/compiler-rt/lib/lsan/lsan_common_mac.cpp</description>
        <pubDate>Sat, 25 Jan 2020 00:52:12 +0000</pubDate>
        <dc:creator>Roland McGrath &lt;mcgrathr@google.com&gt;</dc:creator>
    </item>
<item>
        <title>f1b6bd40 - [lsan] Fix deadlock in dl_iterate_phdr.</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/compiler-rt/lib/lsan/lsan_common_mac.cpp#f1b6bd40</link>
        <description>[lsan] Fix deadlock in dl_iterate_phdr.Summary:Do not grab the allocator lock before calling dl_iterate_phdr. This maycause a lock order inversion with (valid) user code that uses mallocinside a dl_iterate_phdr callback.Reviewers: vitalybuka, hctimSubscribers: jfb, #sanitizers, llvm-commitsTags: #sanitizers, #llvmDifferential Revision: https://reviews.llvm.org/D67738llvm-svn: 372348

            List of files:
            /llvm-project-15.0.7/compiler-rt/lib/lsan/lsan_common_mac.cpp</description>
        <pubDate>Thu, 19 Sep 2019 19:52:57 +0000</pubDate>
        <dc:creator>Evgeniy Stepanov &lt;eugeni.stepanov@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>ae1fc9ba - compiler-rt: Rename .cc file in lib/lsan to .cpp</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/compiler-rt/lib/lsan/lsan_common_mac.cpp#ae1fc9ba</link>
        <description>compiler-rt: Rename .cc file in lib/lsan to .cppLike r367463, but for lsan.llvm-svn: 367561

            List of files:
            /llvm-project-15.0.7/compiler-rt/lib/lsan/lsan_common_mac.cpp</description>
        <pubDate>Thu, 01 Aug 2019 14:01:30 +0000</pubDate>
        <dc:creator>Nico Weber &lt;nicolasweber@gmx.de&gt;</dc:creator>
    </item>
</channel>
</rss>
