Skip to content

Commit 9991d9e

Browse files
committed
Solve comments
1 parent 7ac12c0 commit 9991d9e

File tree

2 files changed

+5
-5
lines changed
  • pocs/linux/kernelctf/CVE-2024-26642_mitigation/exploit/mitigation-v3-6.1.55

2 files changed

+5
-5
lines changed

pocs/linux/kernelctf/CVE-2024-26642_mitigation/exploit/mitigation-v3-6.1.55/poc.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -679,12 +679,12 @@ int bypass_kaslr(u64 base) {
679679
i64 off = base - 0xffffffff81000000;
680680
printf("kernel off: %lld\n", off);
681681

682-
return off;
683-
/*
684-
#define x(name) { name -= diff; printf("corrected %s to %llx\n", #name, name); }
682+
//return off;
683+
684+
#define x(name) { name -= off; printf("corrected %s to %llx\n", #name, name); }
685685
FOR_ALL_OFFSETS(x);
686686
#undef x
687687

688-
return 0;
689-
*/
688+
return off;
689+
690690
}

0 commit comments

Comments
 (0)