Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 797358 - sys-process/lsof: Add backport to fix ARM SIGBUS crash
Summary: sys-process/lsof: Add backport to fix ARM SIGBUS crash
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM Linux
: Normal major
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: unaligned-access
  Show dependency tree
 
Reported: 2021-06-21 13:04 UTC by Adrian Ratiu
Modified: 2023-05-06 05:39 UTC (History)
1 user (show)

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 Adrian Ratiu 2021-06-21 13:04:40 UTC
Hi, lsof upstream got a fix for an ARM SIGBUS crash on glibc 2.33.

I already created a github PR: 
https://github.com/gentoo/gentoo/pull/21354

Can you please merge it? Thank you!
Comment 1 Larry the Git Cow gentoo-dev 2021-06-21 13:27:00 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6639b5025d4c120c30022cb2993832fcf0c2e928

commit 6639b5025d4c120c30022cb2993832fcf0c2e928
Author:     Adrian Ratiu <adrian.ratiu@collabora.com>
AuthorDate: 2021-06-21 09:21:40 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-06-21 13:26:52 +0000

    sys-process/lsof: backport arm sigbus crash fix
    
    This backports an upstream fix for a crash which happens on
    armv7a + glibc 2.33 due to a buffer misalignment.
    
    Upstream issue: https://github.com/lsof-org/lsof/issues/160
    Upstream commit: 21cb1dad1243f4c0a427d893babab12e48b60f0e
    Bug: https://bugs.gentoo.org/797358
    Closes: https://github.com/gentoo/gentoo/pull/21354
    Acked-by: David Seifert <soap@gentoo.org>
    Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 .../lsof/files/lsof-4.94-arm-sigbus-fix.patch      | 63 ++++++++++++++++++++++
 .../{lsof-4.94.0.ebuild => lsof-4.94.0-r1.ebuild}  |  1 +
 2 files changed, 64 insertions(+)
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-06-21 13:27:36 UTC
Thanks!