Re: [RFC v2 01/10] media: Support variable size IOCTL arguments

2018-03-26 Thread Sakari Ailus
Hi Mauro, On Mon, Mar 26, 2018 at 07:47:42AM -0300, Mauro Carvalho Chehab wrote: > Em Fri, 23 Mar 2018 23:17:35 +0200 > Sakari Ailus escreveu: > > > Maintain a list of supported IOCTL argument sizes and allow only those in > > the list. > > > > As an additional bonus, IOCTL handlers will be abl

Re: [RFC v2 01/10] media: Support variable size IOCTL arguments

2018-03-26 Thread Mauro Carvalho Chehab
Em Fri, 23 Mar 2018 23:17:35 +0200 Sakari Ailus escreveu: > Maintain a list of supported IOCTL argument sizes and allow only those in > the list. > > As an additional bonus, IOCTL handlers will be able to check whether the > caller actually set (using the argument size) the field vs. assigning i

[RFC v2 01/10] media: Support variable size IOCTL arguments

2018-03-23 Thread Sakari Ailus
Maintain a list of supported IOCTL argument sizes and allow only those in the list. As an additional bonus, IOCTL handlers will be able to check whether the caller actually set (using the argument size) the field vs. assigning it to zero. Separate macro can be provided for that. This will be easi