Closed ramosian-glider closed 9 years ago
Chatted with Alexander, and decided to look for an __asan_init import.
Reported by rnk@google.com
on 2012-06-19 18:18:12
>> we were trying to compute and access the shadow memory for a shadow access.
This will hit an mprotect-ed memory region
Reported by konstantin.s.serebryany
on 2012-06-20 06:06:45
Just to clarify in this thread (compared to chat messages scattered here and there)
Shadow of a shadow is a mprotect'ed region by design, as the instrumented app should
never be allowed to access shadow (e.g. by mistake).
> long term it would be nice to have some kind of marker on the module level.
> Finer grained would be better, so we can instrument statically linked
> non-asan code, but that's a separate issue.
I remember you were suggesting to put the instrumented code into a special section
and never instrument this give section. Or the other way around.
Reported by timurrrr@google.com
on 2012-07-19 10:22:50
Yeah, a special section makes sense if we want to support mixing instrumented and non-instrumented
code in the same module, which I expect we will on Windows.
It's hard because we have to figure it out at least twice for Linux and Windows.
Reported by rnk@google.com
on 2012-07-19 14:31:08
is this still relevant?
Reported by konstantin.s.serebryany
on 2013-12-26 14:45:22
The DRASan code still has this TODO:
https://code.google.com/p/address-sanitizer/source/browse/trunk/dynamorio/dr_asan.cpp#532
I remember adding an import iterator to DR, but I forget if I added ELF support. Anyway,
DRASan could use that to look for __asan_init imports, like the comment says.
I don't think anyone is actively pursuing DRASan right now though, so I'll close it.
Reported by rnk@google.com
on 2013-12-26 17:16:41
WontFix
Adding Project:AddressSanitizer as part of GitHub migration.
Reported by ramosian.glider
on 2015-07-30 09:12:59
Originally reported on Google Code with ID 80
Reported by
rnk@google.com
on 2012-06-19 18:03:51