Re: Off-by-one bug at unix_mkname ?

From: YOSHIFUJI Hideaki / 吉藤英明
Date: Mon Mar 28 2005 - 04:33:35 EST


In article <Pine.LNX.4.61.0503281124450.18443@xxxxxxxxxxxxxxx> (at Mon, 28 Mar 2005 11:25:39 +0200 (MEST)), Jan Engelhardt <jengelh@xxxxxxxxxxxxxxx> says:

>
> On Mar 28 2005 17:39, YOSHIFUJI Hideaki / 吉藤英明 wrote:
>
> >+ * This may look like an off by one error but it is
> >+ * a bit more subtle. 108 is the longest valid AF_UNIX
> >+ * path for a binding. sun_path[108] doesnt as such
> >+ * exist. However in kernel space we are guaranteed that
> >+ * it is a valid memory location in our kernel
> >+ * address buffer.
> >+ */
>
> Now, does 2.6. _still_ guarantee that 108 is a valid offset?

Yes, it does.

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