|
@@ -2411,8 +2411,7 @@ static int copy_and_check(struct load_info *info,
|
|
return -ENOEXEC;
|
|
return -ENOEXEC;
|
|
|
|
|
|
/* Suck in entire file: we'll want most of it. */
|
|
/* Suck in entire file: we'll want most of it. */
|
|
- /* vmalloc barfs on "unusual" numbers. Check here */
|
|
|
|
- if (len > 64 * 1024 * 1024 || (hdr = vmalloc(len)) == NULL)
|
|
|
|
|
|
+ if ((hdr = vmalloc(len)) == NULL)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
|
|
|
|
if (copy_from_user(hdr, umod, len) != 0) {
|
|
if (copy_from_user(hdr, umod, len) != 0) {
|