<?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 stack-uas.c</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>21f72c05 - [hwasan] Add __hwasan_add_frame_record to the hwasan interface</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/compiler-rt/test/hwasan/TestCases/stack-uas.c#21f72c05</link>
        <description>[hwasan] Add __hwasan_add_frame_record to the hwasan interfaceHwasan includes instructions in the prologue that mix the PC and SP and storeit into the stack ring buffer stored at __hwasan_tls. This is a thread_localglobal exposed from the hwasan runtime. However, if TLS-mechanisms or thehwasan runtime haven&apos;t been setup yet, it will be invalid to access __hwasan_tls.This is the case for Fuchsia where we instrument libc, so some functions thatare instrumented but can run before hwasan initialization will incorrectlyaccess this global. Additionally, libc cannot have any TLS variables, so wecannot weakly define __hwasan_tls until the runtime is loaded.A way we can work around this is by moving the instructions into a hwasanfunction that does the store into the ring buffer and creating a weak definitionof that function locally in libc. This way __hwasan_tls will not actually bereferenced. This is not our long-term solution, but this will allow us to rollout hwasan in the meantime.This patch includes:- A new llvm flag for choosing to emit a libcall rather than instructions in the  prologue (off by default)- The libcall for storing into the ringbuffer (__hwasan_add_frame_record)Differential Revision: https://reviews.llvm.org/D128387

            List of files:
            /llvm-project-15.0.7/compiler-rt/test/hwasan/TestCases/stack-uas.c</description>
        <pubDate>Wed, 13 Jul 2022 22:07:59 +0000</pubDate>
        <dc:creator>Leonard Chan &lt;leonardchan@google.com&gt;</dc:creator>
    </item>
<item>
        <title>d843d5c8 - Revert &quot;[hwasan] Add __hwasan_record_frame_record to the hwasan interface&quot;</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/compiler-rt/test/hwasan/TestCases/stack-uas.c#d843d5c8</link>
        <description>Revert &quot;[hwasan] Add __hwasan_record_frame_record to the hwasan interface&quot;This reverts commit 4956620387ee45a48a394853a47ddd65195c4cc6.This broke a sanitizer builder: https://lab.llvm.org/buildbot/#/builders/77/builds/19597

            List of files:
            /llvm-project-15.0.7/compiler-rt/test/hwasan/TestCases/stack-uas.c</description>
        <pubDate>Wed, 13 Jul 2022 22:06:07 +0000</pubDate>
        <dc:creator>Leonard Chan &lt;leonardchan@google.com&gt;</dc:creator>
    </item>
<item>
        <title>49566203 - [hwasan] Add __hwasan_record_frame_record to the hwasan interface</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/compiler-rt/test/hwasan/TestCases/stack-uas.c#49566203</link>
        <description>[hwasan] Add __hwasan_record_frame_record to the hwasan interfaceHwasan includes instructions in the prologue that mix the PC and SP and storeit into the stack ring buffer stored at __hwasan_tls. This is a thread_localglobal exposed from the hwasan runtime. However, if TLS-mechanisms or thehwasan runtime haven&apos;t been setup yet, it will be invalid to access __hwasan_tls.This is the case for Fuchsia where we instrument libc, so some functions thatare instrumented but can run before hwasan initialization will incorrectlyaccess this global. Additionally, libc cannot have any TLS variables, so wecannot weakly define __hwasan_tls until the runtime is loaded.A way we can work around this is by moving the instructions into a hwasanfunction that does the store into the ring buffer and creating a weak definitionof that function locally in libc. This way __hwasan_tls will not actually bereferenced. This is not our long-term solution, but this will allow us to rollout hwasan in the meantime.This patch includes:- A new llvm flag for choosing to emit a libcall rather than instructions in the  prologue (off by default)- The libcall for storing into the ringbuffer (__hwasan_record_frame_record)Differential Revision: https://reviews.llvm.org/D128387

            List of files:
            /llvm-project-15.0.7/compiler-rt/test/hwasan/TestCases/stack-uas.c</description>
        <pubDate>Wed, 06 Jul 2022 21:47:43 +0000</pubDate>
        <dc:creator>leonardchan &lt;leonardchan@google.com&gt;</dc:creator>
    </item>
<item>
        <title>9477a308 - [hwasan][test] Remove obsoleted/removed -fno-experimental-new-pass-manager</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/compiler-rt/test/hwasan/TestCases/stack-uas.c#9477a308</link>
        <description>[hwasan][test] Remove obsoleted/removed -fno-experimental-new-pass-manager

            List of files:
            /llvm-project-15.0.7/compiler-rt/test/hwasan/TestCases/stack-uas.c</description>
        <pubDate>Tue, 01 Feb 2022 21:24:39 +0000</pubDate>
        <dc:creator>Fangrui Song &lt;i@maskray.me&gt;</dc:creator>
    </item>
<item>
        <title>66b4aafa - [hwasan] Detect use after scope within function.</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/compiler-rt/test/hwasan/TestCases/stack-uas.c#66b4aafa</link>
        <description>[hwasan] Detect use after scope within function.Reviewed By: vitalybukaDifferential Revision: https://reviews.llvm.org/D105201

            List of files:
            /llvm-project-15.0.7/compiler-rt/test/hwasan/TestCases/stack-uas.c</description>
        <pubDate>Mon, 02 Aug 2021 07:58:49 +0000</pubDate>
        <dc:creator>Florian Mayer &lt;fmayer@google.com&gt;</dc:creator>
    </item>
<item>
        <title>84705ed9 - [hwasan] Detect use after scope within function.</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/compiler-rt/test/hwasan/TestCases/stack-uas.c#84705ed9</link>
        <description>[hwasan] Detect use after scope within function.Reviewed By: vitalybukaDifferential Revision: https://reviews.llvm.org/D105201

            List of files:
            /llvm-project-15.0.7/compiler-rt/test/hwasan/TestCases/stack-uas.c</description>
        <pubDate>Tue, 27 Jul 2021 08:43:59 +0000</pubDate>
        <dc:creator>Florian Mayer &lt;fmayer@google.com&gt;</dc:creator>
    </item>
</channel>
</rss>
