Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/external/source/exploits/CVE-2017-13861/koffsets.h
Views: 11780
#ifndef koffsets_h1#define koffsets_h23enum kstruct_offset {4/* struct task */5KSTRUCT_OFFSET_TASK_LCK_MTX_TYPE,6KSTRUCT_OFFSET_TASK_REF_COUNT,7KSTRUCT_OFFSET_TASK_ACTIVE,8KSTRUCT_OFFSET_TASK_VM_MAP,9KSTRUCT_OFFSET_TASK_NEXT,10KSTRUCT_OFFSET_TASK_PREV,11KSTRUCT_OFFSET_TASK_ITK_SPACE,12KSTRUCT_OFFSET_TASK_BSD_INFO,13KSTRUCT_OFFSET_TASK_ALL_IMAGE_INFO_ADDR,14KSTRUCT_OFFSET_TASK_ALL_IMAGE_INFO_SIZE,15KSTRUCT_OFFSET_TASK_TFLAGS,1617/* struct ipc_port */18KSTRUCT_OFFSET_IPC_PORT_IO_BITS,19KSTRUCT_OFFSET_IPC_PORT_IO_REFERENCES,20KSTRUCT_OFFSET_IPC_PORT_IKMQ_BASE,21KSTRUCT_OFFSET_IPC_PORT_MSG_COUNT,22KSTRUCT_OFFSET_IPC_PORT_IP_RECEIVER,23KSTRUCT_OFFSET_IPC_PORT_IP_KOBJECT,24KSTRUCT_OFFSET_IPC_PORT_IP_PREMSG,25KSTRUCT_OFFSET_IPC_PORT_IP_CONTEXT,26KSTRUCT_OFFSET_IPC_PORT_IP_SRIGHTS,2728/* struct proc */29KSTRUCT_OFFSET_PROC_PID,30KSTRUCT_OFFSET_PROC_P_FD,31KSTRUCT_OFFSET_PROC_TASK,32KSTRUCT_OFFSET_PROC_UCRED,33KSTRUCT_OFFSET_PROC_P_LIST,3435/* struct filedesc */36KSTRUCT_OFFSET_FILEDESC_FD_OFILES,3738/* struct fileproc */39KSTRUCT_OFFSET_FILEPROC_F_FGLOB,4041/* struct fileglob */42KSTRUCT_OFFSET_FILEGLOB_FG_DATA,4344/* struct socket */45KSTRUCT_OFFSET_SOCKET_SO_PCB,4647/* struct pipe */48KSTRUCT_OFFSET_PIPE_BUFFER,4950/* struct ipc_space */51KSTRUCT_OFFSET_IPC_SPACE_IS_TABLE_SIZE,52KSTRUCT_OFFSET_IPC_SPACE_IS_TABLE,5354/* struct vnode */55KSTRUCT_OFFSET_VNODE_V_MOUNT,56KSTRUCT_OFFSET_VNODE_VU_SPECINFO,57KSTRUCT_OFFSET_VNODE_V_LOCK,5859/* struct specinfo */60KSTRUCT_OFFSET_SPECINFO_SI_FLAGS,6162/* struct mount */63KSTRUCT_OFFSET_MOUNT_MNT_FLAG,6465/* struct host */66KSTRUCT_OFFSET_HOST_SPECIAL,6768KFREE_ADDR_OFFSET,69};7071int koffset(enum kstruct_offset offset);72void offsets_init(void);7374#endif757677