Re: [PATCH] module: do not print allocation-fail warning on bogus user buffer size

From: Rusty Russell
Date: Mon Feb 16 2015 - 18:56:34 EST

"Kirill A. Shutemov" <kirill.shutemov@xxxxxxxxxxxxxxx> writes:
> init_module(2) passes user-specified buffer length directly to
> vmalloc(). It makes warn_alloc_failed() to print out a lot of info into
> dmesg if user specified insane size, like -1.
> Let's silence the warning. It doesn't add much value to -ENOMEM return
> code. Without the patch the syscall is prohibitive noisy for testing
> with trinity.

Heh, we used to have an explicit length check because vmalloc would
BUG(). So I guess this is progress...

Applied thanks,
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at