Commit Graph

402 Commits

Author SHA1 Message Date
Daniel Micay
58c7079db9 eliminate unnecessary code duplication in calloc 2018-11-16 15:01:09 -05:00
Daniel Micay
315415acf2 clarify write-after-free detection feature 2018-11-16 03:26:07 -05:00
Daniel Micay
a617f7604d switch malloc_enable to enforce_init 2018-11-12 05:37:20 -05:00
Daniel Micay
3cd3d34b3e extend gitignore for tests 2018-11-06 04:23:53 -05:00
Daniel Micay
11c717a7b9 update progress on randomization 2018-11-05 18:06:54 -05:00
Daniel Micay
2d892e58ad per-slab canary values are good enough for now 2018-11-05 18:05:56 -05:00
Daniel Micay
3a488c9a27 add initial slab allocation quarantine 2018-11-05 16:43:08 -05:00
Daniel Micay
fea335282a use slab_region_start for init checks 2018-11-05 03:56:55 -05:00
Daniel Micay
a8112fc5c3 use -O3 instead of -O2 primarily for more inlining 2018-11-04 19:45:04 -05:00
Daniel Micay
ca465f6b3e clarify scope of sized dealloc mismatch detection 2018-11-04 18:52:01 -05:00
Daniel Micay
505b9d2e76 add missing -Wl,--as-needed (removed by mistake) 2018-11-04 14:32:03 -05:00
Daniel Micay
943a81fbeb use smaller integers for random cache state 2018-11-04 14:24:21 -05:00
Daniel Micay
1fed72a9c3 slab internal fragmentation is always the same 2018-11-04 03:59:54 -05:00
Daniel Micay
c12d6795de expand a bit on future config for slab cache size 2018-11-03 04:47:45 -04:00
Daniel Micay
d5b773b2bc clarify documentation about the 0 byte size class 2018-11-03 04:43:47 -04:00
Daniel Micay
f949698c7a note that MPK-based hardening is off by default 2018-11-03 03:15:42 -04:00
Daniel Micay
f2a7ccde75 add basic overview of part of the approach to MTE 2018-11-03 03:09:03 -04:00
Daniel Micay
1da51ddde1 migrate bool configuration options out of config.h 2018-11-02 21:35:09 -04:00
Daniel Micay
4ac2688d76 add support for slab metadata count field 2018-11-01 04:49:27 -04:00
Daniel Micay
834ce67884 make canary generation consistent 2018-10-30 19:23:40 -04:00
Daniel Micay
c29a183687 reduce overhead of slot randomization 2018-10-30 18:58:04 -04:00
Daniel Micay
ceffb1a0ec simplify get_free_slot loops 2018-10-30 16:37:23 -04:00
Daniel Micay
a02f4ebb19 add missing deallocate_small thread_seal_metadata 2018-10-28 23:23:54 -04:00
Daniel Micay
5bee717134 use -march=native by default with a disable toggle 2018-10-28 22:49:15 -04:00
Daniel Micay
00915521a3 check canary before zeroing as an optimization 2018-10-28 21:07:35 -04:00
Daniel Micay
6f30211da8 some clarifications for the README 2018-10-28 20:28:10 -04:00
Daniel Micay
b99ab8a47a no need to artificially limit sealing to x86_64 2018-10-24 03:09:04 -04:00
Daniel Micay
e985afe0e1 document relatively high performance cost of MPK 2018-10-23 19:38:48 -04:00
Daniel Micay
4cd61e281d add workaround for bug in Linux MPK implementation 2018-10-23 19:08:33 -04:00
Daniel Micay
299bd6d414 add missing thread unseal / seal for atfork hooks 2018-10-23 16:28:54 -04:00
Daniel Micay
9d1567ce16 make safe_flag check compatible with POSIX sh 2018-10-23 15:55:45 -04:00
Daniel Micay
59def67979 add inlined check for -1 with pkey_set 2018-10-23 08:00:34 -04:00
Daniel Micay
05ac717cf2 work around -Wcast-align=strict error with old GCC 2018-10-23 07:23:07 -04:00
Daniel Micay
0b963078d5 guard metadata with Memory Protection Keys (MPK) 2018-10-23 01:11:31 -04:00
Daniel Micay
ac8c68de53 enable pointer cast warnings 2018-10-21 15:50:26 -04:00
Daniel Micay
9a43302868 add enforce_init call to other realloc code path 2018-10-20 02:27:06 -04:00
Daniel Micay
6a408ad017 add init calls to malloc_enable/malloc_disable 2018-10-19 21:46:36 -04:00
Daniel Micay
173ed53539 use consistent code style in chacha.c 2018-10-19 17:09:41 -04:00
Daniel Micay
1d2c10f5bb tweak canary awareness in offset test 2018-10-19 16:19:29 -04:00
Daniel Micay
64b655f062 set scope of planned metadata protection 2018-10-18 20:35:25 -04:00
Daniel Micay
e37b36c9dd update configuration documentation again 2018-10-18 20:18:55 -04:00
Daniel Micay
f0a6f551eb tweak code style 2018-10-18 19:35:21 -04:00
Daniel Micay
cf053e74d1 metadata region unification is completed 2018-10-18 16:10:49 -04:00
Daniel Micay
1e03b004f5 move slab_info to main metadata region 2018-10-18 16:01:04 -04:00
Daniel Micay
3f1962dd2b use min macro for realloc copy size 2018-10-18 15:25:14 -04:00
Daniel Micay
fe30f6c2ea delay allocating slab metadata from reservation 2018-10-18 15:20:42 -04:00
Daniel Micay
74139112d0 explain the purpose of CONFIG_CXX_ALLOCATOR 2018-10-18 14:57:33 -04:00
Daniel Micay
64e9f6797a use offsetof for allocator_state memory protection 2018-10-16 15:52:41 -04:00
Daniel Micay
67ada4d309 document padding for allocator state 2018-10-15 19:10:36 -04:00
Daniel Micay
da8e9aa1d8 document allocator state region 2018-10-15 15:44:31 -04:00