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.
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(+)