1. 11 11月, 2016 2 次提交
  2. 08 11月, 2016 1 次提交
  3. 03 11月, 2016 1 次提交
  4. 29 10月, 2016 5 次提交
  5. 18 10月, 2016 1 次提交
    • C
      drm/i915: Restrict pagefault disabling to just around copy_from_user() · ebc0808f
      Chris Wilson 提交于
      When handling execbuf relocations, we play a delicate dance with
      pagefault. We first try to access the user pages underneath our
      struct_mutex. However, if those pages were inside a GEM object, we may
      trigger a pagefault and deadlock as i915_gem_fault() tries to
      recursively acquire struct_mutex. Instead, we choose to disable
      pagefaulting around the copy_from_user whilst inside the struct_mutex
      and handle the EFAULT by falling back to a copy outside the
      struct_mutex.
      
      We however presumed that disabling pagefaults would be expensive. It is
      just an operation on the local current task. Cheap enough that we can
      restrict the disable/enable to the critical section around the copy, and
      so avoid having to handle the atomic sections within the relocation
      handling itself.
      
      v2: Just illustrate the broken error handling rather than argue why it
      is safer to ignore it, for now.
      Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
      Reviewed-by: NTvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
      Link: http://patchwork.freedesktop.org/patch/msgid/20161018120251.25043-4-chris@chris-wilson.co.uk
      ebc0808f
  6. 14 10月, 2016 3 次提交
  7. 10 10月, 2016 1 次提交
  8. 07 10月, 2016 1 次提交
  9. 04 10月, 2016 1 次提交
  10. 28 9月, 2016 1 次提交
    • A
      get rid of separate multipage fault-in primitives · 4bce9f6e
      Al Viro 提交于
      * the only remaining callers of "short" fault-ins are just as happy with generic
      variants (both in lib/iov_iter.c); switch them to multipage variants, kill the
      "short" ones
      * rename the multipage variants to now available plain ones.
      * get rid of compat macro defining iov_iter_fault_in_multipage_readable by
      expanding it in its only user.
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      4bce9f6e
  11. 09 9月, 2016 2 次提交
  12. 01 9月, 2016 1 次提交
  13. 27 8月, 2016 1 次提交
  14. 22 8月, 2016 1 次提交
  15. 20 8月, 2016 1 次提交
  16. 19 8月, 2016 9 次提交
  17. 15 8月, 2016 2 次提交
  18. 10 8月, 2016 1 次提交
  19. 05 8月, 2016 5 次提交