Displaying 20 results from an estimated 500 matches similar to: "BoundsChecking Pass"
2016 May 22
0
BoundsChecking Pass
Hi Pierre,
I'm the author of the BoundsChecking pass.
It's true there's little documentation about it (only mentioned in:
http://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html#availablle-checks).
You can run it with 'clang -fsanitize=bounds' or 'opt -bounds-checking'.
The BoundsChecking pass, AddressSanitizer and BaggyBoundsCheck are all
different code bases,
2016 May 23
1
BoundsChecking Pass
Hi Nuno,
On 22 May 2016 at 22:33, Nuno Lopes <nunoplopes at sapo.pt> wrote:
> Hi Pierre,
>
> I'm the author of the BoundsChecking pass.
>
Wow, I am happily surprised to have an answer from you directly!
> It's true there's little documentation about it (only mentioned in:
> http://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html#availablle-checks).
>
2016 May 25
0
Runtime interception: design problem
Dear Pierre,
Stepping up a level, what is your goal in replacing calls to malloc()
and free()? Is it any different than what SAFECode, SoftBound, or ASan do?
Regards,
John Criswell
On 5/25/16 8:05 AM, Pierre Gagelin via llvm-dev wrote:
> Hi everyone,
>
> I am having troubles but this shouldn't be hard to solve for many
> people here. I am beginning a runtime feature for the
2016 May 25
4
Runtime interception: design problem
Hi everyone,
I am having troubles but this shouldn't be hard to solve for many people
here. I am beginning a runtime feature for the BoundsChecking pass and I
want to replace the libc malloc&free. I followed the design of
AddressSanitizer (Asan) and tried to use the INTERCEPTOR macro from the
interception.h file of compiler-rt library.
Here is the problem. The file I modify
2013 Sep 07
1
[LLVMdev] The difference between BoundsChecking.c annd Address Sanitizer
Hello everyone,
I have noticed that there is a BoundsChecking.c under
lib/Transforms/Instrumentation/. I am wondering how to use this tool and
which type of bugs it targets. Are the tool provide the same functionality
with Address Aanitizer?
Thanks a lot
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2016 May 26
1
Runtime interception: design problem
Hi John,
On 25 May 2016 at 16:11, John Criswell <jtcriswel at gmail.com> wrote:
> Dear Pierre,
>
> Stepping up a level, what is your goal in replacing calls to malloc() and
> free()? Is it any different than what SAFECode, SoftBound, or ASan do?
>
That's a good question. I didn't knew about SoftBound until now, so thank
you for the name =). Anyway here is what I
2012 Nov 26
0
[LLVMdev] RFC: change BoundsChecking.cpp to use address-based tests
Hi Kevin,
Thanks for your interest and for your deep analysis.
Unfortunately, your approach doesn't catch all bugs and is vulnerable to an
attack.
Consider the following case:
...................... | ----- obj --- | |
end ^ ptr ^ ^ end-of-memory
The scenario is as follows:
- an object is allocated in the last page of the address space
- obj is byte
2012 Nov 26
2
[LLVMdev] RFC: change BoundsChecking.cpp to use address-based tests
I am investigating changing BoundsChecking to use address-based rather
than size- & offset-based tests.
To explain, here is a short code sample cribbed from one of the tests:
%mem = tail call i8* @calloc(i64 1, i64 %elements)
%memobj = bitcast i8* %mem to i64*
%ptr = getelementptr inbounds i64* %memobj, i64 %index
%4 = load i64* %ptr, align 8
Currently, the IR for bounds checking
2012 Dec 04
2
[LLVMdev] RFC: change BoundsChecking.cpp to use address-based tests
Nuno,
Inspired by this email thread, I spent a bit of time today looking
through the implementation of BoundsChecking::instrument(..). Based on
my reading of prior work, it should be possible to do these checks in
two comparisons, or possibly even one if the right assumptions could be
made.
Could you provide a bit of background of the expected domains of Size
and Offset? In particular,
2016 May 26
0
Runtime interception: design problem
> On May 25, 2016, at 6:05 AM, Pierre Gagelin via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> Hi everyone,
>
> I am having troubles but this shouldn't be hard to solve for many people here. I am beginning a runtime feature for the BoundsChecking pass and I want to replace the libc malloc&free. I followed the design of AddressSanitizer (Asan) and tried to use the
2016 Jun 09
2
Fatpointer Pass already existing?
Hi everyone,
After spending 2 months on LLVM generally speaking and more specifically on
security passes (ASan, SAFECode, BoundsChecking) I wanted to know if there
were an available implementation of strictly fat-pointer based approach to
enforce bounds?
If not, I wanted to implement one. I think it is interessant to have such a
tool available even if there are better designs (SoftBound does
2013 Jan 05
2
[LLVMdev] ASan and UBSan Test Failures
I am building LLVM on OS X 10.7.5 with cmake. Under this configuration some ASan and UBSan tests
are failing:
$ make check-ubsan
…
********************
Testing Time: 2.36s
********************
Failing Tests (11):
UndefinedBehaviorSanitizer :: Float/cast-overflow.cpp
UndefinedBehaviorSanitizer :: Integer/add-overflow.cpp
UndefinedBehaviorSanitizer :: Integer/div-zero.cpp
2013 Jan 05
0
[LLVMdev] ASan and UBSan Test Failures
Some more information …
On Jan 4, 2013, at 6:56 PM, Meador Inge wrote:
> I am building LLVM on OS X 10.7.5 with cmake. Under this configuration some ASan and UBSan tests
> are failing:
>
> $ make check-ubsan
>
> …
>
> ********************
> Testing Time: 2.36s
> ********************
> Failing Tests (11):
> UndefinedBehaviorSanitizer ::
2013 Jan 06
2
[LLVMdev] ASan and UBSan Test Failures
I also encounter this issue and solved it locally by implementing this 2 functions.
- The linux version of StartSymbolizerSubprocess uses only POSIX function and can be reused as is on OS X (maybe we should move it in a new sanitizer_symbolizer_posix.cc file)
- I have a simple implementation of GetListOfModules (see the attached file) but it required 10.6 at least.
That said, implementing this
2012 Dec 04
0
[LLVMdev] RFC: change BoundsChecking.cpp to use address-based tests
Hi,
> Could you provide a bit of background of the expected domains of Size and
> Offset? In particular, are they signed or unsigned integers? A
> non-negative size doesn't seem to make much sense in this context, but
> depending on how it's calculated I could see it arising. Is a zero Size
> something that might arise here? I'm assuming the Offset comes from an
2007 Jun 26
1
[LLVMdev] BuildMode
On Tuesday 26 June 2007 14:05, Reid Spencer wrote:
> I think you mis-interpreted something.
That's not surprising. :)
> If you build with -disable-assertions you are telling whatever build
> mode (Debug or Release) to not include assertions. Consequently you get
> either Release-Asserts (Release minus asserts) or Debug-Asserts (Debug
> minus Asserts).
I was wondering if
2012 May 31
0
[LLVMdev] [llvm-commits] [llvm] r157649 - /llvm/trunk/lib/Transforms/Scalar/BoundsChecking.cpp
On Wed, 30 May 2012 10:04:50 -0700
Andrew Trick <atrick at apple.com> wrote:
> Originally on llvm-commits.
>
> On May 30, 2012, at 8:48 AM, Nuno Lopes <nunoplopes at sapo.pt> wrote:
> >> This is probably fine for now. It's a relatively safe use of
> >> SCEVExpander and the least effort approach, but generally I would
> >> like to encourage
2012 May 24
5
[LLVMdev] -fbounds-checking vs {SAFECode,ASan}
Hi Nuno,
I noticed your commits related to -fbounds-checking and have some
questions.
The functionality of this new phase seems to (partially?) overlap with
AddressSanitizer and SAFECode,
so I am curious how would you compare the two existing tools with the new
one.
Earlier you wrote:
>> So the main idea of this new flag is not for debugging, but rather for
production.
>> This means
2014 Oct 08
2
[LLVMdev] UBSAN - Test failures
Hi Evgeniy,
So, to XFAIL some UBSAN failues, I found an issue:
UndefinedBehaviorSanitizer-AddressSanitizer :: TestCases/TypeCheck/vptr.cpp
UndefinedBehaviorSanitizer-Standalone :: TestCases/Misc/missing_return.cpp
These two tests fail on that configuration, but pass when reversed.
So, if I XFAIL: armv7l..., I get the following error:
UndefinedBehaviorSanitizer-AddressSanitizer ::
2013 May 24
2
[LLVMdev] compiler-rt tests in cmake?
I blame this line in lsan/lit_tests/lit.cfg:
# Setup attributes common for all compiler-rt projects.
compiler_rt_lit_cfg = os.path.join(llvm_src_root, "projects",
"compiler-rt",
"lib", "lit.common.cfg")
On Fri, May 24, 2013 at 2:53 PM, Alexey Samsonov <samsonov at google.com>wrote:
>
> On Fri, May 24,