Exploit databaseDownload repository ZIP
GH-b6f78b211ff4ea5e7b3ebffe1f088758
abrarkhan/linux-4.19.72_cve-2020-24490
Sources for CVE-2020-24490
5 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files47
abrarkhan/linux-4.19.72_cve-2020-24490Revision aa3f6929b62b
- ↑..Parent directory
- Kbuild
- base.c
- cgrp.h
- chan.c
- chan.h
- chang84.c
- changf100.h
- changk104.h
- channv04.h
- channv50.c
- channv50.h
- dmag84.c
- dmanv04.c
- dmanv10.c
- dmanv17.c
- dmanv40.c
- dmanv50.c
- g84.c
- gf100.c
- gf100.h
- gk104.c
- gk104.h
- gk110.c
- gk208.c
- gk20a.c
- gm107.c
- gm200.c
- gm20b.c
- gp100.c
- gp10b.c
- gpfifog84.c
- gpfifogf100.c
- gpfifogk104.c
- gpfifogv100.c
- gpfifonv50.c
- gv100.c
- nv04.c
- nv04.h
- nv10.c
- nv17.c
- nv40.c
- nv50.c
- nv50.h
- priv.h
- regsnv04.h
- user.h
- usergv100.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
drivers/gpu/drm/nouveau/nvkm/engine/fifo/usergv100.c
C · 1,742 bytes/*
* Copyright 2018 Red Hat Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*/
#include "user.h"
static int
gv100_fifo_user_map(struct nvkm_object *object, void *argv, u32 argc,
enum nvkm_object_map *type, u64 *addr, u64 *size)
{
struct nvkm_device *device = object->engine->subdev.device;
*addr = 0x810000 + device->func->resource_addr(device, 0);
*size = 0x010000;
*type = NVKM_OBJECT_MAP_IO;
return 0;
}
static const struct nvkm_object_func
gv100_fifo_user = {
.map = gv100_fifo_user_map,
};
int
gv100_fifo_user_new(const struct nvkm_oclass *oclass, void *argv, u32 argc,
struct nvkm_object **pobject)
{
return nvkm_object_new_(&gv100_fifo_user, oclass, argv, argc, pobject);
}