Files
RedBear-OS/local
vasilito 76610fc8d0 intel: GEM ioctl dispatch + buffer validation
gem_dispatch.rs (120 lines):
  GemIoctlDispatch: thread-safe ioctl router
    All GEM managers behind Arc<Mutex<>> for shared access
    create/close/pin/unpin/cache/gtt_offset operations
    context_create/destroy delegation
    set_tiling/get_tiling with lock poisoning handling

  BufferValidator: static validation helpers
    validate_size: 0 < size <= 4GB check
    validate_offset_length: bounds + DWORD alignment
    validate_alignment: 4K alignment requirement
    validate_handle_list: batch validation of all handles

Ported from Linux 7.1:
  i915_gem_ioctls.h → GemIoctlDispatch dispatch constants
  i915_gem.c validate helpers → BufferValidator

GEM subdirectory: 24 files, 2,150 lines, 0 errors
2026-06-02 10:14:16 +03:00
..