gopalshankar / address-sanitizer

Automatically exported from code.google.com/p/address-sanitizer
0 stars 0 forks source link

use-after-return fake stack allocator is not signal-safe #217

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The current implementation of __asan_stack_malloc is not signal-safe.

% clang -O -fsanitize=address,use-after-return  
~/llvm/projects/compiler-rt/lib/asan/lit_tests/TestCases/Linux/uar_signals.cc 
-lpthread  && time ./a.out 
==32652==AddressSanitizer CHECK failed: .... 
llvm/projects/compiler-rt/lib/asan/asan_fake_stack.cc:148 
"((AddrIsInSizeClass(ptr, size_class))) != (0)" (0x0, 0x0)

Original issue reported on code.google.com by konstant...@gmail.com on 4 Sep 2013 at 2:44

GoogleCodeExporter commented 9 years ago
I've rewritten the entire implementation and all known async-signal issues are 
fixed now.
See projects/compiler-rt/lib/asan/lit_tests/TestCases/Linux/uar_signals.cc for 
the test

Original comment by konstant...@gmail.com on 23 Sep 2013 at 8:40