Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 818832 - genpatches: GENTOO_LINUX_INIT_SYSTEMD should enable KCMP instead of CHECKPOINT_RESTORE
Summary: genpatches: GENTOO_LINUX_INIT_SYSTEMD should enable KCMP instead of CHECKPOIN...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard: 5.14.14, 5.10.75
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2021-10-18 18:49 UTC by Mike Gilbert
Modified: 2021-10-21 12:17 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 Mike Gilbert gentoo-dev 2021-10-18 18:49:28 UTC
systemd uses the kcmp() syscall. In older kernel versions, this syscall was coupled to the CONFIG_CHECKPOINT_RESTORE option.

In 5.12, it was given its own config option (CONFIG_KCMP). See commit bfe3911a91047557eb0e620f95a370aee6a248c7.

This was backported to 5.10 in commit 1ea36020950d44ef9152d832887a0c1cee0edee2.

I have updated the systemd ebuild to check for KCMP instead.
Comment 1 Larry the Git Cow gentoo-dev 2021-10-18 21:16:14 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=3b04d123fde8dc5a19f647c83a59dedcbac92f06

commit 3b04d123fde8dc5a19f647c83a59dedcbac92f06
Author:     Mike Pagano <mpagano@gentoo.org>
AuthorDate: 2021-10-18 21:14:04 +0000
Commit:     Mike Pagano <mpagano@gentoo.org>
CommitDate: 2021-10-18 21:14:04 +0000

    For systemd, select CONFIG_KCMP as systemd uses the kcmp() call
    
    Originally tied to CHECKPOINT_RESTORE.
    
    Thanks to Mike Gilbert for reporting.
    
    Bug: https://bugs.gentoo.org/818832
    
    Signed-off-by: Mike Pagano <mpagano@gentoo.org>

 4567_distro-Gentoo-Kconfig.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)