Comments (5)
That's Linux-x86_64 of course.
Heap goes to 0x7d..0x7e, as in TSan.
Original comment by [email protected]
on 27 Nov 2014 at 9:24
from memory-sanitizer.
There is a weird code size (and maybe performance) regression due to llvm doing
something inefficient with xor(xor(x)) on X86:
http://llvm.org/bugs/show_bug.cgi?id=21749
We will probably win more by disabling PIE, so I'm inclined to go ahead with
this anyway and optimize it later. This problem should be fixable with some
kind of peephole optimization in the backend.
Original comment by [email protected]
on 5 Dec 2014 at 12:59
from memory-sanitizer.
W/o disabling PIE performance measurements are inconclusive.
470.lbm speeds up by ~10% with the new mapping for some reason.
The rest are +-3%.
Code size grows by ~2.5%, but on one of the specs - by close to 10%.
Original comment by [email protected]
on 12 Dec 2014 at 4:32
from memory-sanitizer.
Here is another idea with all the same properties.
#define MEM_TO_SHADOW(mem) (((uptr)(mem)) ^ 0x500000000000ULL)
#define SHADOW_TO_ORIGIN(mem) (((uptr)(mem)) + 0x100000000000ULL)
Here, shadow-to-origin is an addition of a constant, which can be wrapped into
the addressing mode without using an extra register.
Memory layout:
000000000000 - 050000000000 app-1
050000000000 - 100000000000 shadow-2
100000000000 - 150000000000 invalid
150000000000 - 200000000000 origin-2
200000000000 - 300000000000 shadow-3
300000000000 - 400000000000 origin-3
400000000000 - 500000000000 invalid
500000000000 - 550000000000 shadow-1
550000000000 - 600000000000 app-2
600000000000 - 650000000000 origin-1
650000000000 - 700000000000 invalid
700000000000 - 800000000000 app-3
Performance is the same or better (old, new, new/old ratio):
400.perlbench, 2822.00, 2849.00, 1.01
401.bzip2, 1975.00, 1978.00, 1.00
429.mcf, 1665.00, 1619.00, 0.97
445.gobmk, 2257.00, 2224.00, 0.99
456.hmmer, 2954.00, 2977.00, 1.01
458.sjeng, 3613.00, 3567.00, 0.99
462.libquantum, 1381.00, 1380.00, 1.00
464.h264ref, 4348.00, 4366.00, 1.00
473.astar, 1312.00, 1311.00, 1.00
483.xalancbmk, 1287.00, 1227.00, 0.95
433.milc, 1404.00, 1405.00, 1.00
444.namd, 1684.00, 1690.00, 1.00
447.dealII, 1309.00, 1305.00, 1.00
450.soplex, 996.00, 983.00, 0.99
453.povray, 1505.00, 1519.00, 1.01
470.lbm, 1325.00, 1329.00, 1.00
482.sphinx3, 2593.00, 2590.00, 1.00
Code size:
- instrumented code is smaller by 0.5% on average
- run-time library is larger by 40Kb, mostly because MEM_IS_APP(x) check is
more complex, and it is inline in multiple places (ex. all interceptors, as
part of __msan_poison()). A lot of these are redundant and can be removed later.
Original comment by [email protected]
on 26 Jan 2015 at 8:52
from memory-sanitizer.
attaching the current patchset just in case
Original comment by [email protected]
on 27 Jan 2015 at 3:16
Attachments:
from memory-sanitizer.
Related Issues (20)
- Support a module name blacklist to selectively disable interceptor checks
- Make track-origins a run-time decision
- False positive on fcvt() result HOT 1
- Missing origin in memmove()
- Origin tracking is not async signal safe HOT 4
- Feature - dump region around uninitialized memory as a fallback to origin tracing HOT 1
- Intercept syscall() HOT 1
- Remove __msan_allocated_memory from stack trace
- Intercept memcmp() HOT 1
- blacklist does not seem to work for interceptor functions HOT 9
- rorw fails with an MSan report when the argument is uninitialized (r217949) HOT 2
- Better reports for intrinsics, inline asm
- Possible false positive when memory sanitizing GoogleTest HOT 4
- Handle _mm_clmulepi64_si128
- Install a SIGSEGV handler in MSan HOT 1
- MsanReallocate does not handle origins correctly HOT 3
- Inefficient function prologue HOT 1
- Missing origin for "undef"
- Get rid of getCleanOrigin() HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from memory-sanitizer.