News for hackers. Stuff that matters.
Re:Tinyalloc: replacement for malloc/free in unmanaged, line... by blattimwind on Sunday January 06, 2019 @01:14PM (#18839646)

    addr = getrandom(8);
    mem = mmap(addr, len, PROT_RWX, MAP_FIXED|MAP_ANON, -1, 0);
Re:Tinyalloc: replacement for malloc/free in unmanaged, line... by chrisseaton on Sunday January 06, 2019 @01:22PM (#18839683)
It's not realistic to use a per-allocation mapping like that in production - all your allocations will be scaled up to multiples of pages.
Re:Tinyalloc: replacement for malloc/free in unmanaged, line... by jacquesm on Sunday January 06, 2019 @01:33PM (#18839741)
Whoosh!
Re:Tinyalloc: replacement for malloc/free in unmanaged, line... by saagarjha on Sunday January 06, 2019 @02:00PM (#18839908)
> PROT_RWX

Hmm…

Re:Tinyalloc: replacement for malloc/free in unmanaged, line... by blattimwind on Sunday January 06, 2019 @02:09PM (#18839968)
The X is for fleXibility.
Re:Tinyalloc: replacement for malloc/free in unmanaged, line... by rzzzt on Sunday January 06, 2019 @02:56PM (#18840212)
How else will you put the self-modifying code there?