kernel-hacking-2024-linux-s.../drivers/gpu/drm
Chris Wilson 7e61615857 drm/i915: Only destroy a constructed mmap offset
drm_ht_remove_item() does not handle removing an absent item and the hlist
in particular is incorrectly initialised. The easy remedy is simply skip
calling i915_gem_free_mmap_offset() unless we have actually created the
offset and associated ht entry.

This also fixes the mishandling of a partially constructed offset which
leaves pointers initialized after freeing them along the
i915_gem_create_mmap_offset() error paths.

In particular this should fix the oops found here:
https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/415357/comments/8

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Eric Anholt <eric@anholt.net>
Cc: stable@kernel.org
2009-09-11 11:40:39 -07:00
..
i810
i830
i915 drm/i915: Only destroy a constructed mmap offset 2009-09-11 11:40:39 -07:00
mga drm/mga: Use request_firmware() to load microcode 2009-08-27 10:46:54 +10:00
r128 drm/r128: Add test for initialisation to all ioctls that require it 2009-08-31 09:09:30 +10:00
radeon drm/radeon/r600: use fence->timeout directly 2009-09-09 08:17:57 +10:00
savage
sis
tdfx
ttm drm/ttm: consolidate cache flushing code in one place. 2009-08-27 09:53:47 +10:00
via
ati_pcigart.c
drm_agpsupport.c
drm_auth.c
drm_bufs.c
drm_cache.c drm: fix drm_cache.c for arch with no support. 2009-09-02 09:41:13 +10:00
drm_context.c
drm_crtc.c drm: split crtc/fb helpers into a separate module 2009-09-07 15:45:33 +10:00
drm_crtc_helper.c drm: prune modes when output is disconnected. 2009-09-08 11:51:46 +10:00
drm_debugfs.c
drm_dma.c
drm_drawable.c
drm_drv.c drm: remove root requirement from DRM_IOCTL_SET_VERSION (+ DRM_IOCTL_AUTH_MAGIC) 2009-08-19 15:51:55 +10:00
drm_edid.c drm: shut the EDID warnings up. 2009-09-08 11:48:40 +10:00
drm_encoder_slave.c drm: fixup include file in drm_encoder_slave 2009-08-13 13:31:54 +10:00
drm_fb_helper.c drm/kms: fix kms helper license + Kconfig 2009-09-08 11:15:58 +10:00
drm_fops.c
drm_gem.c drm: GEM handles are u32, not int 2009-08-27 11:21:08 +10:00
drm_hashtab.c
drm_info.c
drm_ioc32.c
drm_ioctl.c
drm_irq.c drm: silence pointless vblank warning. 2009-08-09 12:24:01 +10:00
drm_lock.c
drm_memory.c
drm_mm.c drm/mm: add ability to dump mm lists via debugfs 2009-09-02 09:39:43 +10:00
drm_modes.c drm/kms: try to find the std mode in DMT table 2009-09-07 16:04:15 +10:00
drm_pci.c
drm_proc.c drm: use proc_create_data() 2009-08-31 09:37:22 +10:00
drm_scatter.c
drm_sman.c
drm_stub.c
drm_sysfs.c Merge intel drm-intel-next branch 2009-09-07 20:27:20 +10:00
drm_vm.c
Kconfig drm/i915: force mode set at lid open time 2009-09-10 16:10:00 -07:00
Makefile drm/kms: fix kms helper license + Kconfig 2009-09-08 11:15:58 +10:00
README.drm

************************************************************
* For the very latest on DRI development, please see:      *
*     http://dri.freedesktop.org/                          *
************************************************************

The Direct Rendering Manager (drm) is a device-independent kernel-level
device driver that provides support for the XFree86 Direct Rendering
Infrastructure (DRI).

The DRM supports the Direct Rendering Infrastructure (DRI) in four major
ways:

    1. The DRM provides synchronized access to the graphics hardware via
       the use of an optimized two-tiered lock.

    2. The DRM enforces the DRI security policy for access to the graphics
       hardware by only allowing authenticated X11 clients access to
       restricted regions of memory.

    3. The DRM provides a generic DMA engine, complete with multiple
       queues and the ability to detect the need for an OpenGL context
       switch.

    4. The DRM is extensible via the use of small device-specific modules
       that rely extensively on the API exported by the DRM module.


Documentation on the DRI is available from:
    http://dri.freedesktop.org/wiki/Documentation
    http://sourceforge.net/project/showfiles.php?group_id=387
    http://dri.sourceforge.net/doc/

For specific information about kernel-level support, see:

    The Direct Rendering Manager, Kernel Support for the Direct Rendering
    Infrastructure
    http://dri.sourceforge.net/doc/drm_low_level.html

    Hardware Locking for the Direct Rendering Infrastructure
    http://dri.sourceforge.net/doc/hardware_locking_low_level.html

    A Security Analysis of the Direct Rendering Infrastructure
    http://dri.sourceforge.net/doc/security_low_level.html