Re: [PATCH] drm/gem: Add new flink_to ioctl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jul 8, 2010 at 11:59 AM, Keith Packard <keithp@xxxxxxxxxx> wrote:
> On Thu,  8 Jul 2010 11:23:25 -0400, Kristian Høgsberg <krh@xxxxxxxxxxxxx> wrote:
>
>>  - a mechanism to attach a binary blob to an flink_to buffer name.
>>    open_with_data returns the data.  Userspace (typically libdrm)
>>    decides the layout and versioning of the blob and the contents
>>    will be chipset specific.  it's an opaque blob to the kernel,
>>    which doesn't need to know about stride and formats etc.
>
> Arbitrary binary blobs considered harmful? Even if the kernel doesn't
> need to know all of this data, having it in an explicit (versioned)
> format will protect applications from randomly mis-interpreting the data.

I talked with ickle about that and whether or not to include a
version+format u32 for the data in the ioctl args.  He convinced me
that the kernel didn't need to know about the layout of the blob and
that requiring by convention that the first u32 of the blob is the
version+format u32 would suffice.  I can go either way on this, but I
guess I have a small preference for making it part of the ioctl args
as you suggest.

Kristian
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel



[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux