Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 801214 - sys-power/acpi_call incompatible for kernels >=5.13
Summary: sys-power/acpi_call incompatible for kernels >=5.13
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Conrad Kostecki
URL: https://github.com/nix-community/acpi...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2021-07-08 15:00 UTC by Alexander Wetzel
Modified: 2021-07-09 15:38 UTC (History)
0 users

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


Attachments
Proposed fix (0001-Fix-for-5.13-kernels.patch,989 bytes, patch)
2021-07-08 15:00 UTC, Alexander Wetzel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Wetzel 2021-07-08 15:00:01 UTC
Created attachment 722737 [details, diff]
Proposed fix

Using app-laptop/tpacpi-bat-3.1 is causing a null pointer exception:
Jul 08 10:05:58 Perry kernel: BUG: kernel NULL pointer dereference, address: 0000000000000000
Jul 08 10:05:58 Perry kernel: #PF: supervisor instruction fetch in kernel mode
Jul 08 10:05:58 Perry kernel: #PF: error_code(0x0010) - not-present page
Jul 08 10:05:58 Perry kernel: PGD 0 P4D 0 

I tracked that down to the usage of lseek of tpacpi-bat and with that to the linux kernel commit d4455faccd6c ('proc: mandate ->proc_lseek in "struct proc_ops"') which made seek support mandatory for the proc FS.

The attached patch fixes the issue for me. I'll also report the issue upstream.
Comment 1 Larry the Git Cow gentoo-dev 2021-07-09 15:38:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88139c57b784ecdc49c0e2936c8a5d001cf1c1c1

commit 88139c57b784ecdc49c0e2936c8a5d001cf1c1c1
Author:     Conrad Kostecki <conikost@gentoo.org>
AuthorDate: 2021-07-09 15:36:33 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2021-07-09 15:36:33 +0000

    sys-power/acpi_call: support kernel >=5.13
    
    Closes: https://bugs.gentoo.org/801214
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 sys-power/acpi_call/acpi_call-1.2.1.ebuild         |  2 ++
 .../files/acpi_call-1.2.1-kernel-5.13.patch        | 30 ++++++++++++++++++++++
 2 files changed, 32 insertions(+)