re PR sanitizer/85230 (asan: false positives in kernel on allocas)
authorJakub Jelinek <jakub@redhat.com>
Tue, 17 Apr 2018 20:22:50 +0000 (22:22 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 17 Apr 2018 20:22:50 +0000 (22:22 +0200)
commit7504c3bf61443f9255b0a0caf310b5300b59b92d
tree939b6b49b4bfab6a1d9f681469b8ac2b360bfc9f
parentaa4ec2cdff98cdeec085fa14af4267a51e4e1052
re PR sanitizer/85230 (asan: false positives in kernel on allocas)

PR sanitizer/85230
* asan.c (handle_builtin_stack_restore): Adjust comment.  Emit
__asan_allocas_unpoison call and last_alloca_addr = new_sp before
__builtin_stack_restore rather than after it.
* builtins.c (expand_asan_emit_allocas_unpoison): Pass
arg1 + (virtual_dynamic_stack_rtx - stack_pointer_rtx) as second
argument instead of virtual_dynamic_stack_rtx.

From-SVN: r259446
gcc/ChangeLog
gcc/asan.c
gcc/builtins.c