Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 847655

Summary: <sys-kernel/gentoo-sources-5: Please backport BINPRM_BUF_SIZE increase
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: Current packagesAssignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/fs/exec.c?id=6eb3c3d0a52dca337e327ae8868ca1f44a712e02
See Also: https://bugs.gentoo.org/show_bug.cgi?id=859895
Whiteboard: 4.19.245,4.14.281,4.9.317
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 847631, 847085    

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-05-27 07:00:45 UTC
In 5.x kernels, BINPRM_BUF_SIZE has been increased to 256 bytes:
https://github.com/torvalds/linux/commit/6eb3c3d0a52dca337e327ae8868ca1f44a712e02

Could we please backport this change to our 4.x genpatches?  Right now I'm seeing increased number of bugs reported by people using old kernel branches and hitting shebang length limit.
Comment 1 Larry the Git Cow gentoo-dev 2022-06-06 12:05:56 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=787729d3b4e25f2e14db048cf68510381e7b5a3a

commit 787729d3b4e25f2e14db048cf68510381e7b5a3a
Author:     Mike Pagano <mpagano@gentoo.org>
AuthorDate: 2022-06-06 12:00:50 +0000
Commit:     Mike Pagano <mpagano@gentoo.org>
CommitDate: 2022-06-06 12:00:50 +0000

    sys-kernel/gentoo-sources: add 4.19.246 and genpatches
    
    exec: increase BINPRM_BUF_SIZE to 256
    Closes: https://bugs.gentoo.org/847655
    
    Signed-off-by: Mike Pagano <mpagano@gentoo.org>

 sys-kernel/gentoo-sources/Manifest                 |  3 +++
 .../gentoo-sources/gentoo-sources-4.19.246.ebuild  | 28 ++++++++++++++++++++++
 2 files changed, 31 insertions(+)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24cf59fb8c9d3b633b4a39a7e6859a9d406d6971

commit 24cf59fb8c9d3b633b4a39a7e6859a9d406d6971
Author:     Mike Pagano <mpagano@gentoo.org>
AuthorDate: 2022-06-06 12:00:27 +0000
Commit:     Mike Pagano <mpagano@gentoo.org>
CommitDate: 2022-06-06 12:00:27 +0000

    sys-kernel/gentoo-sources: add 4.14.282 and genpatches
    
    exec: increase BINPRM_BUF_SIZE to 256
    Bug: https://bugs.gentoo.org/847655
    
    Signed-off-by: Mike Pagano <mpagano@gentoo.org>

 sys-kernel/gentoo-sources/Manifest                 |  3 +++
 .../gentoo-sources/gentoo-sources-4.14.282.ebuild  | 28 ++++++++++++++++++++++
 2 files changed, 31 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17d3f51047348c749133347bcceba0be6839f7c0

commit 17d3f51047348c749133347bcceba0be6839f7c0
Author:     Mike Pagano <mpagano@gentoo.org>
AuthorDate: 2022-06-06 11:59:20 +0000
Commit:     Mike Pagano <mpagano@gentoo.org>
CommitDate: 2022-06-06 11:59:20 +0000

    sys-kernel/gentoo-sources: add 4.9.317 and genpatches
    
    exec: increase BINPRM_BUF_SIZE to 256
    Bug: https://bugs.gentoo.org/847655
    
    Signed-off-by: Mike Pagano <mpagano@gentoo.org>

 sys-kernel/gentoo-sources/Manifest                 |  3 +++
 .../gentoo-sources/gentoo-sources-4.9.317.ebuild   | 28 ++++++++++++++++++++++
 2 files changed, 31 insertions(+)