Messages in this thread | | | Date | Tue, 2 Nov 2004 08:35:34 +0100 (CET) | From | Pawel Sikora <> | Subject | Re: [oops] lib/vsprintf.c |
| |
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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |