Re: [patch] Staging: tidspbridge: make mmap root-only so it is not a security problem

2013-12-01 Thread Dan Carpenter
Looks good to me. regards, dan carpenter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [patch] Staging: tidspbridge: make mmap root-only so it is not a security problem

2013-12-01 Thread Pavel Machek
Hi! > >>--- a/drivers/staging/tidspbridge/rmgr/drv_interface.c > >>+++ b/drivers/staging/tidspbridge/rmgr/drv_interface.c > >>@@ -258,7 +258,17 @@ err: > >> /* This function maps kernel space memory to user space memory. */ > >> static int bridge_mmap(struct file *filp, struct vm_area_struct

Re: [patch] Staging: tidspbridge: make mmap root-only so it is not a security problem

2013-12-01 Thread Ivajlo Dimitrov
On 01.12.2013 14:27, Dan Carpenter wrote: On Sun, Dec 01, 2013 at 01:10:06PM +0100, Pavel Machek wrote: diff --git a/drivers/staging/tidspbridge/rmgr/drv_interface.c b/drivers/staging/tidspbridge/rmgr/drv_interface.c index 1aa4a3f..a8e86cf 100644 ---

Re: [patch] Staging: tidspbridge: make mmap root-only so it is not a security problem

2013-12-01 Thread Dan Carpenter
On Sun, Dec 01, 2013 at 01:10:06PM +0100, Pavel Machek wrote: > diff --git a/drivers/staging/tidspbridge/rmgr/drv_interface.c > b/drivers/staging/tidspbridge/rmgr/drv_interface.c > index 1aa4a3f..a8e86cf 100644 > --- a/drivers/staging/tidspbridge/rmgr/drv_interface.c > +++

Re: [patch] Staging: tidspbridge: make mmap root-only so it is not a security problem

2013-12-01 Thread Pavel Machek
Hi! > I can (and will) test whatever patches is needed. Also will try to get rid of > uuid helpers and send a patch today. > So ... here's patch that you can start from, and that may even work... Thanks, Pavel

Re: [patch] Staging: tidspbridge: make mmap root-only so it is not a security problem

2013-12-01 Thread Pali Rohár
On Sunday 01 December 2013 12:26:10 Pavel Machek wrote: > Hi! > > On Sat 2013-11-30 19:45:01, Greg KH wrote: > > On Sat, Nov 30, 2013 at 11:58:23PM +0100, Pavel Machek wrote: > > > On Sat 2013-11-30 14:05:53, Greg KH wrote: > > > > On Sat, Nov 30, 2013 at 09:42:37PM +0100, Pavel Machek wrote: >

Re: [patch] Staging: tidspbridge: make mmap root-only so it is not a security problem

2013-12-01 Thread Pavel Machek
Hi! On Sat 2013-11-30 19:45:01, Greg KH wrote: > On Sat, Nov 30, 2013 at 11:58:23PM +0100, Pavel Machek wrote: > > On Sat 2013-11-30 14:05:53, Greg KH wrote: > > > On Sat, Nov 30, 2013 at 09:42:37PM +0100, Pavel Machek wrote: > > > > > > > > mmap in tidspbridge is missing range-checks. For now,

Re: [patch] Staging: tidspbridge: make mmap root-only so it is not a security problem

2013-12-01 Thread Ивайло Димитров
I can (and will) test whatever patches is needed. Also will try to get rid of uuid helpers and send a patch today. On Sun Dec  1 11:41:39 2013 Pali Rohár wrote: > On Saturday 30 November 2013 23:58:23 Pavel Machek wrote: > > On Sat 2013-11-30 14:05:53, Greg KH wrote: > > > On Sat, Nov 30, 2013

Re: [patch] Staging: tidspbridge: make mmap root-only so it is not a security problem

2013-12-01 Thread Pali Rohár
On Sunday 01 December 2013 04:45:01 Greg KH wrote: > On Sat, Nov 30, 2013 at 11:58:23PM +0100, Pavel Machek wrote: > > On Sat 2013-11-30 14:05:53, Greg KH wrote: > > > On Sat, Nov 30, 2013 at 09:42:37PM +0100, Pavel Machek wrote: > > > > mmap in tidspbridge is missing range-checks. For now, > > >

Re: [patch] Staging: tidspbridge: make mmap root-only so it is not a security problem

2013-12-01 Thread Pali Rohár
On Saturday 30 November 2013 23:58:23 Pavel Machek wrote: > On Sat 2013-11-30 14:05:53, Greg KH wrote: > > On Sat, Nov 30, 2013 at 09:42:37PM +0100, Pavel Machek wrote: > > > mmap in tidspbridge is missing range-checks. For now, make > > > this interface root-only, so that it does not cause > > >

Re: [patch] Staging: tidspbridge: make mmap root-only so it is not a security problem

2013-12-01 Thread Pali Rohár
On Saturday 30 November 2013 23:58:23 Pavel Machek wrote: On Sat 2013-11-30 14:05:53, Greg KH wrote: On Sat, Nov 30, 2013 at 09:42:37PM +0100, Pavel Machek wrote: mmap in tidspbridge is missing range-checks. For now, make this interface root-only, so that it does not cause security

Re: [patch] Staging: tidspbridge: make mmap root-only so it is not a security problem

2013-12-01 Thread Pali Rohár
On Sunday 01 December 2013 04:45:01 Greg KH wrote: On Sat, Nov 30, 2013 at 11:58:23PM +0100, Pavel Machek wrote: On Sat 2013-11-30 14:05:53, Greg KH wrote: On Sat, Nov 30, 2013 at 09:42:37PM +0100, Pavel Machek wrote: mmap in tidspbridge is missing range-checks. For now, make this

Re: [patch] Staging: tidspbridge: make mmap root-only so it is not a security problem

2013-12-01 Thread Ивайло Димитров
I can (and will) test whatever patches is needed. Also will try to get rid of uuid helpers and send a patch today. On Sun Dec  1 11:41:39 2013 Pali Rohár pali.ro...@gmail.com wrote: On Saturday 30 November 2013 23:58:23 Pavel Machek wrote: On Sat 2013-11-30 14:05:53, Greg KH wrote: On

Re: [patch] Staging: tidspbridge: make mmap root-only so it is not a security problem

2013-12-01 Thread Pavel Machek
Hi! On Sat 2013-11-30 19:45:01, Greg KH wrote: On Sat, Nov 30, 2013 at 11:58:23PM +0100, Pavel Machek wrote: On Sat 2013-11-30 14:05:53, Greg KH wrote: On Sat, Nov 30, 2013 at 09:42:37PM +0100, Pavel Machek wrote: mmap in tidspbridge is missing range-checks. For now, make this

Re: [patch] Staging: tidspbridge: make mmap root-only so it is not a security problem

2013-12-01 Thread Pali Rohár
On Sunday 01 December 2013 12:26:10 Pavel Machek wrote: Hi! On Sat 2013-11-30 19:45:01, Greg KH wrote: On Sat, Nov 30, 2013 at 11:58:23PM +0100, Pavel Machek wrote: On Sat 2013-11-30 14:05:53, Greg KH wrote: On Sat, Nov 30, 2013 at 09:42:37PM +0100, Pavel Machek wrote: mmap in

Re: [patch] Staging: tidspbridge: make mmap root-only so it is not a security problem

2013-12-01 Thread Pavel Machek
Hi! I can (and will) test whatever patches is needed. Also will try to get rid of uuid helpers and send a patch today. So ... here's patch that you can start from, and that may even work... Thanks, Pavel

Re: [patch] Staging: tidspbridge: make mmap root-only so it is not a security problem

2013-12-01 Thread Dan Carpenter
On Sun, Dec 01, 2013 at 01:10:06PM +0100, Pavel Machek wrote: diff --git a/drivers/staging/tidspbridge/rmgr/drv_interface.c b/drivers/staging/tidspbridge/rmgr/drv_interface.c index 1aa4a3f..a8e86cf 100644 --- a/drivers/staging/tidspbridge/rmgr/drv_interface.c +++

Re: [patch] Staging: tidspbridge: make mmap root-only so it is not a security problem

2013-12-01 Thread Ivajlo Dimitrov
On 01.12.2013 14:27, Dan Carpenter wrote: On Sun, Dec 01, 2013 at 01:10:06PM +0100, Pavel Machek wrote: diff --git a/drivers/staging/tidspbridge/rmgr/drv_interface.c b/drivers/staging/tidspbridge/rmgr/drv_interface.c index 1aa4a3f..a8e86cf 100644 ---

Re: [patch] Staging: tidspbridge: make mmap root-only so it is not a security problem

2013-12-01 Thread Pavel Machek
Hi! --- a/drivers/staging/tidspbridge/rmgr/drv_interface.c +++ b/drivers/staging/tidspbridge/rmgr/drv_interface.c @@ -258,7 +258,17 @@ err: /* This function maps kernel space memory to user space memory. */ static int bridge_mmap(struct file *filp, struct vm_area_struct *vma) { -

Re: [patch] Staging: tidspbridge: make mmap root-only so it is not a security problem

2013-12-01 Thread Dan Carpenter
Looks good to me. regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [patch] Staging: tidspbridge: make mmap root-only so it is not a security problem

2013-11-30 Thread Greg KH
On Sat, Nov 30, 2013 at 11:58:23PM +0100, Pavel Machek wrote: > On Sat 2013-11-30 14:05:53, Greg KH wrote: > > On Sat, Nov 30, 2013 at 09:42:37PM +0100, Pavel Machek wrote: > > > > > > mmap in tidspbridge is missing range-checks. For now, make this > > > interface root-only, so that it does not

Re: [patch] Staging: tidspbridge: make mmap root-only so it is not a security problem

2013-11-30 Thread Pavel Machek
On Sat 2013-11-30 14:05:53, Greg KH wrote: > On Sat, Nov 30, 2013 at 09:42:37PM +0100, Pavel Machek wrote: > > > > mmap in tidspbridge is missing range-checks. For now, make this > > interface root-only, so that it does not cause security problems. > > Please fix this properly and don't paper

Re: [patch] Staging: tidspbridge: make mmap root-only so it is not a security problem

2013-11-30 Thread Greg KH
On Sat, Nov 30, 2013 at 09:42:37PM +0100, Pavel Machek wrote: > > mmap in tidspbridge is missing range-checks. For now, make this > interface root-only, so that it does not cause security problems. Please fix this properly and don't paper over the real problem here. thanks, greg k-h -- To

[patch] Staging: tidspbridge: make mmap root-only so it is not a security problem

2013-11-30 Thread Pavel Machek
mmap in tidspbridge is missing range-checks. For now, make this interface root-only, so that it does not cause security problems. Signed-off-by: Pavel Machek Reported-by: Nico Golde Reported-by: Fabian Yamaguchi --- On Sat 2013-11-30 22:49:35, Dan Carpenter wrote: > On Sat, Nov 30, 2013 at

[patch] Staging: tidspbridge: make mmap root-only so it is not a security problem

2013-11-30 Thread Pavel Machek
mmap in tidspbridge is missing range-checks. For now, make this interface root-only, so that it does not cause security problems. Signed-off-by: Pavel Machek pa...@ucw.cz Reported-by: Nico Golde n...@ngolde.de Reported-by: Fabian Yamaguchi f...@goesec.de --- On Sat 2013-11-30 22:49:35, Dan

Re: [patch] Staging: tidspbridge: make mmap root-only so it is not a security problem

2013-11-30 Thread Greg KH
On Sat, Nov 30, 2013 at 09:42:37PM +0100, Pavel Machek wrote: mmap in tidspbridge is missing range-checks. For now, make this interface root-only, so that it does not cause security problems. Please fix this properly and don't paper over the real problem here. thanks, greg k-h -- To

Re: [patch] Staging: tidspbridge: make mmap root-only so it is not a security problem

2013-11-30 Thread Pavel Machek
On Sat 2013-11-30 14:05:53, Greg KH wrote: On Sat, Nov 30, 2013 at 09:42:37PM +0100, Pavel Machek wrote: mmap in tidspbridge is missing range-checks. For now, make this interface root-only, so that it does not cause security problems. Please fix this properly and don't paper over the

Re: [patch] Staging: tidspbridge: make mmap root-only so it is not a security problem

2013-11-30 Thread Greg KH
On Sat, Nov 30, 2013 at 11:58:23PM +0100, Pavel Machek wrote: On Sat 2013-11-30 14:05:53, Greg KH wrote: On Sat, Nov 30, 2013 at 09:42:37PM +0100, Pavel Machek wrote: mmap in tidspbridge is missing range-checks. For now, make this interface root-only, so that it does not cause