Exploit databaseDownload repository ZIP
GH-1813a0de211df53e0dda1f9ab58c9f9c
0xkol/badspin
Sources for CVE-2022-20421
3 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files27
0xkol/badspinRevision 5db87120b221
- ↑..Parent directory
- libsepol/
- .gitignore
- Makefile
- binder.h
- binder_client.c
- binder_client.h
- dev_config.h
- exploit.c
- exploit.h
- kernel_constants.h
- ksym.c
- light_cond.c
- light_cond.h
- root.c
- rw.c
- rw.h
- sepolicy.c
- sepolicy.h
- token_manager.c
- token_manager.h
- uao.c
- uao.h
- unix.c
- unix.h
- util.c
- util.h
- vuln.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
src/light_cond.h
Text · 423 bytes#ifndef _LIGHT_COND_H
#define _LIGHT_COND_H
#include "util.h"
#include <stdint.h>
typedef struct light_cond_s {
_Atomic uint32_t futex;
int flags;
} light_cond_t;
enum {
LIGHT_COND_FLAG_PROCESS_SHARED = 1,
};
int light_cond_init(light_cond_t *c, int flags);
int light_cond_init_shared(light_cond_t *c);
int light_cond_wait(light_cond_t *c);
int light_cond_broadcast(light_cond_t *c);
#endif // _LIGHT_COND_H