Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 847655 - <sys-kernel/gentoo-sources-5: Please backport BINPRM_BUF_SIZE increase
Summary: <sys-kernel/gentoo-sources-5: Please backport BINPRM_BUF_SIZE increase
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: https://git.kernel.org/pub/scm/linux/...
Whiteboard: 4.19.245,4.14.281,4.9.317
Keywords:
Depends on:
Blocks: 847631 847085
  Show dependency tree
 
Reported: 2022-05-27 07:00 UTC by Michał Górny
Modified: 2022-07-22 17:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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(+)