[PATCH] D119816: Fix not working attribute no_sanitize bounds that affects linux kernel

Marco Elver via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 18 05:13:22 PST 2022


melver added a comment.

Right, I was able to repro this. The problem is the trap, which generally sucks that no_sanitize still leaves in the trap.

We also have -fno-sanitize-undefined-trap-on-error, which seems to have no effect either (should it?).

So I think there are 2 problems:

1. Clang still emitting traps even though it shouldn't.

2. The Linux kernel problem.

I think it's fine if you address problem 1 with this, as it's an oversight. But I think problem 2 wants to be solved differently as I suggested.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D119816/new/

https://reviews.llvm.org/D119816



More information about the cfe-commits mailing list