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 files71
satheesh575555/linux-4.19.72_cve-2023-0386Revision ef9a4a9fbf2b
- ↑..Parent directory
- Kconfig
- Makefile
- accel_2d.c
- backlight.c
- blitter.c
- blitter.h
- cdv_device.c
- cdv_device.h
- cdv_intel_crt.c
- cdv_intel_display.c
- cdv_intel_dp.c
- cdv_intel_hdmi.c
- cdv_intel_lvds.c
- framebuffer.c
- framebuffer.h
- gem.c
- gem.h
- gma_device.c
- gma_device.h
- gma_display.c
- gma_display.h
- gtt.c
- gtt.h
- intel_bios.c
- intel_bios.h
- intel_gmbus.c
- intel_i2c.c
- mdfld_device.c
- mdfld_dsi_dpi.c
- mdfld_dsi_dpi.h
- mdfld_dsi_output.c
- mdfld_dsi_output.h
- mdfld_dsi_pkg_sender.c
- mdfld_dsi_pkg_sender.h
- mdfld_intel_display.c
- mdfld_output.c
- mdfld_output.h
- mdfld_tmd_vid.c
- mdfld_tpo_vid.c
- mid_bios.c
- mid_bios.h
- mmu.c
- mmu.h
- oaktrail.h
- oaktrail_crtc.c
- oaktrail_device.c
- oaktrail_hdmi.c
- oaktrail_hdmi_i2c.c
- oaktrail_lvds.c
- oaktrail_lvds_i2c.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
drivers/gpu/drm/gma500/gtt.h
Text · 2,550 bytes/**************************************************************************
* Copyright (c) 2007-2008, Intel Corporation.
* All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
*
**************************************************************************/
#ifndef _PSB_GTT_H_
#define _PSB_GTT_H_
#include <drm/drmP.h>
#include <drm/drm_gem.h>
/* This wants cleaning up with respect to the psb_dev and un-needed stuff */
struct psb_gtt {
uint32_t gatt_start;
uint32_t mmu_gatt_start;
uint32_t gtt_start;
uint32_t gtt_phys_start;
unsigned gtt_pages;
unsigned gatt_pages;
unsigned long stolen_size;
unsigned long vram_stolen_size;
struct rw_semaphore sem;
};
/* Exported functions */
extern int psb_gtt_init(struct drm_device *dev, int resume);
extern void psb_gtt_takedown(struct drm_device *dev);
/* Each gtt_range describes an allocation in the GTT area */
struct gtt_range {
struct resource resource; /* Resource for our allocation */
u32 offset; /* GTT offset of our object */
struct drm_gem_object gem; /* GEM high level stuff */
int in_gart; /* Currently in the GART (ref ct) */
bool stolen; /* Backed from stolen RAM */
bool mmapping; /* Is mmappable */
struct page **pages; /* Backing pages if present */
int npage; /* Number of backing pages */
int roll; /* Roll applied to the GTT entries */
};
#define to_gtt_range(x) container_of(x, struct gtt_range, gem)
extern struct gtt_range *psb_gtt_alloc_range(struct drm_device *dev, int len,
const char *name, int backed,
u32 align);
extern void psb_gtt_kref_put(struct gtt_range *gt);
extern void psb_gtt_free_range(struct drm_device *dev, struct gtt_range *gt);
extern int psb_gtt_pin(struct gtt_range *gt);
extern void psb_gtt_unpin(struct gtt_range *gt);
extern void psb_gtt_roll(struct drm_device *dev,
struct gtt_range *gt, int roll);
extern int psb_gtt_restore(struct drm_device *dev);
#endif