diff --git a/fs/exec.c b/fs/exec.c index 433b1257694ab7eec831f2d762f980ca95183956..6b947ebf0c7a4f5c6f560b2fffd91406e29024e2 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -1560,7 +1560,7 @@ static void bprm_fill_uid(struct linux_binprm *bprm) /* * Fill the binprm structure from the inode. - * Check permissions, then read the first 128 (BINPRM_BUF_SIZE) bytes + * Check permissions, then read the first BINPRM_BUF_SIZE bytes * * This may be called multiple times for binary chains (scripts for example). */ diff --git a/include/uapi/linux/binfmts.h b/include/uapi/linux/binfmts.h index 4abad03a88530574a5b07760b4e194d90eae54b4..689025d9c185b06abe50e36161c88ca263bba7cf 100644 --- a/include/uapi/linux/binfmts.h +++ b/include/uapi/linux/binfmts.h @@ -16,6 +16,6 @@ struct pt_regs; #define MAX_ARG_STRINGS 0x7FFFFFFF /* sizeof(linux_binprm->buf) */ -#define BINPRM_BUF_SIZE 128 +#define BINPRM_BUF_SIZE 256 #endif /* _UAPI_LINUX_BINFMTS_H */