NoPaste

hikaru - spectre attack demo auf n270

von hikaru

Dein Code:
  1. hikaru@n270:/tmp/spectre/spectre-attack-demo-master$ gcc -o spectre spectre.c
  2. In file included from /usr/lib/gcc/i686-linux-gnu/6/include/xmmintrin.h:1249:0,
  3.                  from /usr/lib/gcc/i686-linux-gnu/6/include/x86intrin.h:33,
  4.                  from spectre.c:8:
  5. spectre.c: In function ‘readMemoryByte’:
  6. /usr/lib/gcc/i686-linux-gnu/6/include/emmintrin.h:1479:1: error: inlining failed in call to always_inline ‘_mm_clflush’: target specific option mismatch
  7.  _mm_clflush (void const *__A)
  8.  ^~~~~~~~~~~
  9. spectre.c:67:7: note: called from here
  10.        _mm_clflush( & array2[i * 512]); /* intrinsic for clflush instruction */
  11.        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  12. In file included from /usr/lib/gcc/i686-linux-gnu/6/include/xmmintrin.h:1249:0,
  13.                  from /usr/lib/gcc/i686-linux-gnu/6/include/x86intrin.h:33,
  14.                  from spectre.c:8:
  15. /usr/lib/gcc/i686-linux-gnu/6/include/emmintrin.h:1479:1: error: inlining failed in call to always_inline ‘_mm_clflush’: target specific option mismatch
  16.  _mm_clflush (void const *__A)
  17.  ^~~~~~~~~~~
  18. spectre.c:72:7: note: called from here
  19.        _mm_clflush( & array1_size);
  20.        ^~~~~~~~~~~~~~~~~~~~~~~~~~~

Quellcode

Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. Alternativ kannst du den gesamten Eintrag auch als Datei herunterladen.