Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 790224 - systemd-rfkill fails to start with =sys-apps/systemd-247.2-r4 and linux 5.11 or higher
Summary: systemd-rfkill fails to start with =sys-apps/systemd-247.2-r4 and linux 5.11 ...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL: https://github.com/systemd/systemd/is...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-14 15:13 UTC by Nick
Modified: 2023-07-22 20:23 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 Nick 2021-05-14 15:13:37 UTC
On systemd < v248, there is a bug with linux 5.11 and higher that causes systemd-rfkill service to fail to start. The fix is pulled into v248 - can =sys-apps/systemd-248 be stabilized to pull in the fix?

See https://github.com/systemd/systemd/issues/18677 and https://github.com/systemd/systemd/pull/18679

Reproducible: Always

Steps to Reproduce:
1. Install gentoo with systemd, use =sys-apps/systemd-247.2-r4 (current stable version)
2. Install kernel version 5.11 or higher
3. Boot up
Actual Results:  
$ systemctl --failed
  UNIT                   LOAD   ACTIVE SUB    DESCRIPTION                    
● systemd-rfkill.service loaded failed failed Load/Save RF Kill Switch Status

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
1 loaded units listed.

Expected Results:  
$ systemctl --failed
  UNIT LOAD ACTIVE SUB DESCRIPTION
0 loaded units listed.

$ uname -r
5.12.2-gentoo
$ emerge -pv1 systemd

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] sys-apps/systemd-247.2-r4:0/2::gentoo  USE="acl cryptsetup gcrypt hwdb kmod lz4 pam pcre policykit resolvconf seccomp (split-usr) sysv-utils zstd -apparmor -audit -build -cgroup-hybrid -curl -dns-over-tls -elfutils -gnuefi -homed -http -idn -importd -lzma -nat -pkcs11 -pwquality -qrcode -repart (-selinux) -static-libs -test -vanilla -xkb" ABI_X86="32 (64) (-x32)" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-05-14 15:25:09 UTC
Note that 5.11 is not stable in Gentoo but we can’t really control which kernels users are on, so I guess this is worth thinking about.
Comment 2 Nick 2021-05-14 15:36:11 UTC
Per https://github.com/systemd/systemd/issues/18677 this bug also affects linux 5.10 (though the service does not fail to start)

The following can be seen in the journal:

systemd-rfkill[pid]: Couldn't write rfkill event structure, too short.