Re: Fw: [PATCH v2] media: v4l2-core: fix size of devnode_nums[] bitarray

2018-04-05 Thread Peter Geis
Forwarded message: Date: Thu, 5 Apr 2018 07:13:41 -0300 From: Mauro Carvalho Chehab To: Linux Media Mailing List Cc: Mauro Carvalho Chehab , Mauro Carvalho Chehab , Al Viro , Hans Verkuil , Laurent Pinchart , Sakari Ailus , sta...@vger.kernel.org Subject: [PATCH v2] media: v4l2-core: fix size of

Re: [PATCH v2] media: v4l2-core: fix size of devnode_nums[] bitarray

2018-04-05 Thread MichaƂ Siemek
Carvalho > > Chehab , Al Viro , Hans > > Verkuil , Laurent Pinchart > > , Sakari Ailus > > , sta...@vger.kernel.org Subject: [PATCH > > v2] media: v4l2-core: fix size of devnode_nums[] bitarray > > > > > > The size of devnode_nums[] bit array is too short t

Fw: [PATCH v2] media: v4l2-core: fix size of devnode_nums[] bitarray

2018-04-05 Thread Mauro Carvalho Chehab
, sta...@vger.kernel.org Subject: [PATCH v2] media: v4l2-core: fix size of devnode_nums[] bitarray The size of devnode_nums[] bit array is too short to store information for VFL_TYPE_TOUCH. That causes it to override other memory regions. Thankfully, on recent reports, it is overriding

Re: [PATCH v2] media: v4l2-core: fix size of devnode_nums[] bitarray

2018-04-05 Thread Mauro Carvalho Chehab
Em Thu, 5 Apr 2018 12:16:13 +0200 Hans Verkuil escreveu: > On 05/04/18 12:13, Mauro Carvalho Chehab wrote: > > The size of devnode_nums[] bit array is too short to store information > > for VFL_TYPE_TOUCH. That causes it to override other memory regions. > > > > Thankfully, on recent reports, it

Re: [PATCH v2] media: v4l2-core: fix size of devnode_nums[] bitarray

2018-04-05 Thread Sakari Ailus
On Thu, Apr 05, 2018 at 12:16:13PM +0200, Hans Verkuil wrote: > On 05/04/18 12:13, Mauro Carvalho Chehab wrote: > > The size of devnode_nums[] bit array is too short to store information > > for VFL_TYPE_TOUCH. That causes it to override other memory regions. > > > > Thankfully, on recent reports,

Re: [PATCH v2] media: v4l2-core: fix size of devnode_nums[] bitarray

2018-04-05 Thread Hans Verkuil
On 05/04/18 12:13, Mauro Carvalho Chehab wrote: > The size of devnode_nums[] bit array is too short to store information > for VFL_TYPE_TOUCH. That causes it to override other memory regions. > > Thankfully, on recent reports, it is overriding video_device[] array, > trigging a WARN_ON(). Yet, it

[PATCH v2] media: v4l2-core: fix size of devnode_nums[] bitarray

2018-04-05 Thread Mauro Carvalho Chehab
The size of devnode_nums[] bit array is too short to store information for VFL_TYPE_TOUCH. That causes it to override other memory regions. Thankfully, on recent reports, it is overriding video_device[] array, trigging a WARN_ON(). Yet, it just warns about the problem, but let the code excecuting,