On s390, siginfo reports the faulting address with page granularity -
we need to mask off the low bits of sp before comparison.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM w/ a nit
lib/asan/asan_posix.cc | ||
---|---|---|
49 ↗ | (On Diff #53702) | Do you mean that sig.addr is rounded down to the nearest page boundary? |
lib/asan/asan_posix.cc | ||
---|---|---|
49 ↗ | (On Diff #53702) | sig.addr is rounded down to nearest page bounduary (because s390 gives you only the page index on a fault, not the full address). However, there is no redzone - accesses below sp are verboten. I'll try to think of a better wording for the comment before commiting. |