This website requires JavaScript.
Explore
Help
Register
Sign In
project-base
/
server-skynet-source-3rd-jemalloc
Watch
2
Star
0
Fork
0
You've already forked server-skynet-source-3rd-jemalloc
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
01d61a3c6f
server-skynet-source-3rd-je...
/
test
/
unit
/
tcache_max.sh
4 lines
68 B
Bash
Raw
Normal View
History
Unescape
Escape
Allow opt.tcache_max to accept small size classes. Previously all the small size classes were cached. However this has downsides -- particularly when page size is greater than 4K (e.g. iOS), which will result in much higher SMALL_MAXCLASS. This change allows tcache_max to be set to lower values, to better control resources taken by tcache.
2020-10-22 10:47:57 +08:00
#!/bin/sh
Implement use-after-free detection using junk and stash. On deallocation, sampled pointers (specially aligned) get junked and stashed into tcache (to prevent immediate reuse). The expected behavior is to have read-after-free corrupted and stopped by the junk-filling, while write-after-free is checked when flushing the stashed pointers.
2021-10-19 08:33:15 +08:00
export
MALLOC_CONF
=
"tcache_max:1024,lg_san_uaf_align:-1"
Reference in New Issue
Copy Permalink