Exploit databaseDownload repository ZIP
GH-9a497cc26994d431b276e9e3b7a8f75c
satheesh575555/linux-4.19.72_cve-2023-0386
Sources for CVE-2023-0386
20 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files53
satheesh575555/linux-4.19.72_cve-2023-0386Revision ef9a4a9fbf2b
- ↑..Parent directory
- cl0002.h
- cl0046.h
- cl006b.h
- cl0080.h
- cl506e.h
- cl506f.h
- cl5070.h
- cl507a.h
- cl507b.h
- cl507c.h
- cl507d.h
- cl507e.h
- cl826e.h
- cl826f.h
- cl906f.h
- cl9097.h
- cla06f.h
- class.h
- clc37b.h
- clc37e.h
- client.h
- device.h
- disp.h
- driver.h
- event.h
- fifo.h
- if0000.h
- if0001.h
- if0002.h
- if0003.h
- if0004.h
- if0005.h
- if0008.h
- if000a.h
- if000b.h
- if000c.h
- if000d.h
- if500b.h
- if500d.h
- if900b.h
- if900d.h
- ifb00d.h
- ifc00d.h
- ioctl.h
- list.h
- mem.h
- mmu.h
- notify.h
- object.h
- os.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
drivers/gpu/drm/nouveau/include/nvif/mmu.h
Text · 1,441 bytes#ifndef __NVIF_MMU_H__
#define __NVIF_MMU_H__
#include <nvif/object.h>
struct nvif_mmu {
struct nvif_object object;
u8 dmabits;
u8 heap_nr;
u8 type_nr;
u16 kind_nr;
s32 mem;
struct {
u64 size;
} *heap;
struct {
#define NVIF_MEM_VRAM 0x01
#define NVIF_MEM_HOST 0x02
#define NVIF_MEM_COMP 0x04
#define NVIF_MEM_DISP 0x08
#define NVIF_MEM_KIND 0x10
#define NVIF_MEM_MAPPABLE 0x20
#define NVIF_MEM_COHERENT 0x40
#define NVIF_MEM_UNCACHED 0x80
u8 type;
u8 heap;
} *type;
u8 *kind;
};
int nvif_mmu_init(struct nvif_object *, s32 oclass, struct nvif_mmu *);
void nvif_mmu_fini(struct nvif_mmu *);
static inline bool
nvif_mmu_kind_valid(struct nvif_mmu *mmu, u8 kind)
{
const u8 invalid = mmu->kind_nr - 1;
if (kind) {
if (kind >= mmu->kind_nr || mmu->kind[kind] == invalid)
return false;
}
return true;
}
static inline int
nvif_mmu_type(struct nvif_mmu *mmu, u8 mask)
{
int i;
for (i = 0; i < mmu->type_nr; i++) {
if ((mmu->type[i].type & mask) == mask)
return i;
}
return -EINVAL;
}
#endif