1. 21 4月, 2011 1 次提交
    • V
      agp: fix OOM and buffer overflow · b522f021
      Vasiliy Kulikov 提交于
      page_count is copied from userspace.  agp_allocate_memory() tries to
      check whether this number is too big, but doesn't take into account the
      wrap case.  Also agp_create_user_memory() doesn't check whether
      alloc_size is calculated from num_agp_pages variable without overflow.
      This may lead to allocation of too small buffer with following buffer
      overflow.
      
      Another problem in agp code is not addressed in the patch - kernel memory
      exhaustion (AGPIOC_RESERVE and AGPIOC_ALLOCATE ioctls).  It is not checked
      whether requested pid is a pid of the caller (no check in agpioc_reserve_wrap()).
      Each allocation is limited to 16KB, though, there is no per-process limit.
      This might lead to OOM situation, which is not even solved in case of the
      caller death by OOM killer - the memory is allocated for another (faked) process.
      Signed-off-by: NVasiliy Kulikov <segoon@openwall.com>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      b522f021
  2. 31 3月, 2011 1 次提交
  3. 23 2月, 2011 1 次提交
  4. 22 2月, 2011 1 次提交
  5. 16 2月, 2011 1 次提交
  6. 04 2月, 2011 3 次提交
  7. 25 1月, 2011 1 次提交
  8. 15 1月, 2011 1 次提交
  9. 12 1月, 2011 3 次提交
  10. 14 12月, 2010 1 次提交
  11. 05 12月, 2010 1 次提交
  12. 24 11月, 2010 12 次提交
  13. 23 11月, 2010 2 次提交
  14. 18 11月, 2010 3 次提交
  15. 04 11月, 2010 2 次提交
  16. 02 11月, 2010 2 次提交
  17. 31 10月, 2010 1 次提交
  18. 30 10月, 2010 2 次提交
  19. 28 10月, 2010 1 次提交
    • D
      intel-gtt: maximize ggtt size on platforms that support this · 20172842
      Daniel Vetter 提交于
      On VT-d supporting platforms the GGTT is allocated in a stolen mem
      section separate from graphcis stolen mem. The GMCH register contains
      a bitfield specifying the size of that region. Docs suggest that this
      region can only be used for GGTT and PPGTT. Hence ensure that the
      PPGTT is disabled and use the complete area for the GGTT.
      
      Unfortunately the graphics core on G33/Pineview can't cope with really
      large GTTs and the BIOS usually enables the maximum of 512MB. So
      don't bother with maximizing the GTT on these platforms.
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
      20172842