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

Greg KH (greg@kroah.com)
Tue, 29 Apr 2003 00:26:08 -0700


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/