Re: [oops] lib/vsprintf.c

From: Pawel Sikora
Date: Tue Nov 02 2004 - 02:40:35 EST



On Tue, 2 Nov 2004, Nick Piggin wrote:

Pawe Sikora wrote:
Hi,

vsprintf.c- case 's':
vsprintf.c- s = va_arg(args, char *);
vsprintf.c- if ((unsigned long)s < PAGE_SIZE)
vsprintf.c- s = "<NULL>";
vsprintf.c-
vsprintf.c: OOPS! => len = strnlen(s, precision);


But it is the kernel module that's buggy. What's the problem?



I think that block similar to setjmp/longjmp should be placed
around such dangerous places to refues future oops.
That's all.
-
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/