[PATCH] D119816: Fix not working attribute no_sanitize bounds that affects linux kernel
Nuno Lopes via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 18 02:47:23 PST 2022
nlopes added a comment.
Well, this patch is just a band-aid and a disaster waiting to happen.
If kmalloc is tagged with an __attribute__ stating the allocation size, then you can't dereference beyond that limit or risk the alias analysis do something you don't want. You are triggering UB like that.
Can't you just remove the __attribute__ from kmalloc instead to avoid triggering UB?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D119816/new/
https://reviews.llvm.org/D119816
More information about the llvm-commits
mailing list