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

Function read_msg

CVE-2021-22555/exploit.c:197–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197int read_msg(int msqid, void *msgp, size_t msgsz, long msgtyp) {
198 if (msgrcv(msqid, msgp, msgsz - sizeof(long), msgtyp, 0) < 0) {
199 perror("[-] msgrcv");
200 return -1;
201 }
202 return 0;
203}
204
205int spray_skbuff(int ss[NUM_SOCKETS][2], const void *buf, size_t size) {
206 for (int i = 0; i < NUM_SOCKETS; i++) {

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected