Re: [CHECKER] 30 potential dereference of user-pointer errors

From: Greg KH (greg@kroah.com)
Date: Tue Apr 29 2003 - 02:26:08 EST


On Fri, Apr 25, 2003 at 07:18:02PM -0700, Junfeng Yang wrote:
> [BUG] pointer (rdwr_arg.msgs[i]) points to user space
> /home/junfeng/linux-tainted/drivers/i2c/i2c-dev.c:230:i2cdev_ioctl: ERROR:TAINTED:230:230: dereferencing tainted ptr 'rdwr_arg.msgs + i * 12' [Callstack: ]
>
> if(rdwr_pa[i].buf == NULL)
> {
> res = -ENOMEM;
> break;
> }
>
> Error --->
> if(copy_from_user(rdwr_pa[i].buf,
> rdwr_arg.msgs[i].buf,
> rdwr_pa[i].len))
> {

This one should be already be fixed in the 2.5.68 kernel.

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Apr 30 2003 - 22:00:31 EST