Re: support for malloc allocation canaries

2015-10-25 Thread Ted Unangst
Daniel Micay wrote: > This patch adds an opt-in malloc configuration option placing canaries after > small allocations to detect heap overflows on free(...). It's intended to be > used alongside guard pages for large allocations. Since it's essentially > adding extra padding to all small

Re: support for malloc allocation canaries

2015-10-25 Thread Daniel Micay
On 25/10/15 06:20 PM, Ted Unangst wrote: > Daniel Micay wrote: >> This patch adds an opt-in malloc configuration option placing canaries after >> small allocations to detect heap overflows on free(...). It's intended to be >> used alongside guard pages for large allocations. Since it's essentially

Re: support for malloc allocation canaries

2015-10-23 Thread Janne Johansson
With this patch on -current and ln -sf CJ /etc/malloc.conf a lot of things stopped working, like "man ls" and "tmux". With only C or only J, the system seems to work ok, but with both it doesn't. Will check the resulting core files. ntpd and tmux both bombed out on memset inside realloc if I read

Re: support for malloc allocation canaries

2015-10-23 Thread Daniel Micay
On 23/10/15 07:22 AM, Janne Johansson wrote: > With this patch on -current and > ln -sf CJ /etc/malloc.conf > a lot of things stopped working, like "man ls" and "tmux". > With only C or only J, the system seems to work ok, but with both it > doesn't. > Will check the resulting core files. > ntpd

support for malloc allocation canaries

2015-10-22 Thread Daniel Micay
Hi, This patch adds an opt-in malloc configuration option placing canaries after small allocations to detect heap overflows on free(...). It's intended to be used alongside guard pages for large allocations. Since it's essentially adding extra padding to all small allocations, a small heap