[llvm-bugs] [Bug 48845] New: clang generates incorrect code with simultaneously turned on cfi and bti

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jan 22 06:32:57 PST 2021


https://bugs.llvm.org/show_bug.cgi?id=48845

            Bug ID: 48845
           Summary: clang generates incorrect code with simultaneously
                    turned on cfi and bti
           Product: new-bugs
           Version: 11.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: qwertytmp1 at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

It was found that Clang generates cfi jumptables without a landing pad ("bti"
instructions) at the beginning, even in case when the code was compiled with
"-mbranch-protection=bti".

Latest Clang 11.0.1 from:
- https://releases.llvm.org/download.html
was used to check this issue.

At the same time, it seems that the following patch:
- https://reviews.llvm.org/D81251
solves the problem.

Probably to solve this issue the mentioned patch
(https://reviews.llvm.org/D81251)
is need be taken for the next Clang release.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210122/54631448/attachment.html>


More information about the llvm-bugs mailing list