Re: [PATCH v3] media: videobuf2-core: don't go out of the buffer range

2018-01-08 Thread Hans Verkuil
On 01/08/2018 02:15 PM, Mauro Carvalho Chehab wrote: > Em Mon, 8 Jan 2018 12:34:15 +0100 > Hans Verkuil escreveu: > >> Hi Mauro, >> >> On 12/28/2017 03:16 PM, Mauro Carvalho Chehab wrote: >>> Currently, there's no check if an invalid buffer range >>> is passed. However, while testing DVB memory m

Re: [PATCH v3] media: videobuf2-core: don't go out of the buffer range

2018-01-08 Thread Mauro Carvalho Chehab
Em Mon, 8 Jan 2018 12:34:15 +0100 Hans Verkuil escreveu: > Hi Mauro, > > On 12/28/2017 03:16 PM, Mauro Carvalho Chehab wrote: > > Currently, there's no check if an invalid buffer range > > is passed. However, while testing DVB memory mapped apps, > > I got this: > > > >videobuf2_core: VB: n

Re: [PATCH v3] media: videobuf2-core: don't go out of the buffer range

2018-01-08 Thread Hans Verkuil
Hi Mauro, On 12/28/2017 03:16 PM, Mauro Carvalho Chehab wrote: > Currently, there's no check if an invalid buffer range > is passed. However, while testing DVB memory mapped apps, > I got this: > >videobuf2_core: VB: num_buffers -2143943680, buffer 33, index -2143943647 >unable to handle

Re: [PATCH v3] media: videobuf2-core: don't go out of the buffer range

2017-12-28 Thread Sakari Ailus
On Thu, Dec 28, 2017 at 12:16:47PM -0200, Mauro Carvalho Chehab wrote: > Currently, there's no check if an invalid buffer range > is passed. However, while testing DVB memory mapped apps, > I got this: > >videobuf2_core: VB: num_buffers -2143943680, buffer 33, index -2143943647 >unable to

[PATCH v3] media: videobuf2-core: don't go out of the buffer range

2017-12-28 Thread Mauro Carvalho Chehab
Currently, there's no check if an invalid buffer range is passed. However, while testing DVB memory mapped apps, I got this: videobuf2_core: VB: num_buffers -2143943680, buffer 33, index -2143943647 unable to handle kernel paging request at 888b773c0890 IP: __vb2_queue_alloc+0x134/0x4