dram is proven exploitable !!!!!!
Name:
Anonymous
2015-03-10 17:18
Name:
Anonymous
2015-03-12 17:09
>>9Something like this?
//cachetest.c
#include "void.h" //gist.github.com/FrozenVoid/87e6ad6212ac9ce496e0#file-void-h"
#define cachelinesize 64
#define invalidate(x) sm for(u8 i=0,imax=elems(x);i<imax;i+=cachelinesize/sizeof(x[0])){x[i]++;x[i]+=x[i];}; em
//link -lpthread
vp cacheflush(vp c){u8p arr=malloc(8000000);forever{invalidate(arr);};re 0;}
vp somekindofcode(vp v){;re 0;}
STDSTART
pthread_t threads[17];;
//16 threads invalidate cache at same time
for(u4 c=0;c<16;c++)
pthread_create(&threads[c], NULL, cacheflush,NULL);
//extra code to run
pthread_create(&threads[16], NULL, somekindofcode,NULL);
for(u4 c=0;c<17;c++) pthread_join( threads[c], NULL);
STDEND
Newer Posts