Re: [CHECKER] potential dereference of user pointer errors

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Sat Mar 22 2003 - 15:49:39 EST


On Fri, 2003-03-21 at 22:15, Chris Wright wrote:
> on first pass of the cmd. However, this is inconsistent with the rest
> of the file, so here is a patch to use kcmd.resbuf. I also added a NULL
> check, as done in similar funcitons in this file. Alan, this look ok?

Looks slightly wrong to me

#1 ->resbuf = NULL is a completely acceptable if odd user choice. If invalid
its covered

#2 - We copy to the users nominated cmd->resbuf. You are correct there,
that we should be using the kernel side copy. Fixed in my tree.

-
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 : Sun Mar 23 2003 - 22:00:42 EST