asm / deep_spectre Goto Github PK
View Code? Open in Web Editor NEWDeep learning side channel privileged memory reader
Deep learning side channel privileged memory reader
python setup.py install
running install
running build
running build_ext
building 'deep_spectre' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -g0 -ggdb0 -Ofast -mtune=native -march=native -mfpmath=sse -fexcess-precision=fast -fno-strict-aliasing --param l2-cache-size=2048 --param l1-cache-line-size=64 --param l1-cache-size=64 -D_FORTIFY_SOURCE=2 -fPIE -pie -fPIC -fstack-protector -Wl,-z,relro -Wl,-z,now -fPIC -I/usr/include/python2.7 -c deep_spectre.c -o build/temp.linux-x86_64-2.7/deep_spectre.o
deep_spectre.c: In function 'readMemoryByte':
deep_spectre.c:69:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (volatile int z = 0; z < 100; z++) {} /* Delay (can also mfence) /
^
deep_spectre.c:69:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
deep_spectre.c:85:23: warning: pointer targets in passing argument 1 of '__rdtscp' differ in signedness [-Wpointer-sign]
time1 = __rdtscp( & junk); / READ TIMER */
^
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.9/include/x86intrin.h:27:0,
from deep_spectre.c:8:
/usr/lib/gcc/x86_64-linux-gnu/4.9/include/ia32intrin.h:112:1: note: expected 'unsigned int *' but argument is of type 'int *'
__rdtscp (unsigned int __A) ^
deep_spectre.c:87:23: warning: pointer targets in passing argument 1 of '__rdtscp' differ in signedness [-Wpointer-sign]
time2 = __rdtscp( & junk) - time1; / READ TIMER & COMPUTE ELAPSED TIME */
^
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.9/include/x86intrin.h:27:0,
from deep_spectre.c:8:
/usr/lib/gcc/x86_64-linux-gnu/4.9/include/ia32intrin.h:112:1: note: expected 'unsigned int *' but argument is of type 'int *'
__rdtscp (unsigned int __A)
^
deep_spectre.c: At top level:
deep_spectre.c:145:15: error: variable 'deep_spectre_module' has initializer but incomplete type
static struct PyModuleDef deep_spectre_module = {
^
deep_spectre.c:146:5: error: 'PyModuleDef_HEAD_INIT' undeclared here (not in a function)
PyModuleDef_HEAD_INIT,
^
deep_spectre.c:146:5: warning: excess elements in struct initializer
deep_spectre.c:146:5: warning: (near initialization for 'deep_spectre_module')
deep_spectre.c:147:5: warning: excess elements in struct initializer
"deep_spectre", / name of module /
^
deep_spectre.c:147:5: warning: (near initialization for 'deep_spectre_module')
deep_spectre.c:148:5: warning: excess elements in struct initializer
NULL, / module documentation, may be NULL /
^
deep_spectre.c:148:5: warning: (near initialization for 'deep_spectre_module')
deep_spectre.c:149:5: warning: excess elements in struct initializer
-1, / size of per-interpreter state of the module,
^
deep_spectre.c:149:5: warning: (near initialization for 'deep_spectre_module')
deep_spectre.c:152:1: warning: excess elements in struct initializer
};
^
deep_spectre.c:152:1: warning: (near initialization for 'deep_spectre_module')
deep_spectre.c: In function 'PyInit_deep_spectre':
deep_spectre.c:156:5: warning: implicit declaration of function 'PyModule_Create' [-Wimplicit-function-declaration]
return PyModule_Create(&deep_spectre_module);
^
deep_spectre.c:156:5: warning: 'return' with a value, in function returning void
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Hello, I would like to ask a question about your job. When I run your code on m computer, it could not recover the correct message and show a low accuracy when training data. Is there anything I should pay attention to or do some modify when I run your code ? Thank you !
The result is as follows.
`Epoch 1/10
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.