Summary: | media-libs/mesa-20.3.4 requests kernel CONFIG_CHECKPOINT_RESTORE even on kernels with CONFIG_KCMP | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Dan Moulding <dmoulding> |
Component: | Current packages | Assignee: | Gentoo X packagers <x11> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dmoulding, ionen |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Dan Moulding
2021-03-09 17:34:38 UTC
Here is the commit that introduced the change, creating a separate CONFIG_KCMP, in the linux-5.10.y branch: commit 1ea36020950d44ef9152d832887a0c1cee0edee2 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Fri Feb 5 22:00:12 2021 +0000 kcmp: Support selection of SYS_kcmp without CHECKPOINT_RESTORE commit bfe3911a91047557eb0e620f95a370aee6a248c7 upstream. Userspace has discovered the functionality offered by SYS_kcmp and has started to depend upon it. In particular, Mesa uses SYS_kcmp for os_same_file_description() in order to identify when two fd (e.g. device or dmabuf) point to the same struct file. Since they depend on it for core functionality, lift SYS_kcmp out of the non-default CONFIG_CHECKPOINT_RESTORE into the selectable syscall category. Rasmus Villemoes also pointed out that systemd uses SYS_kcmp to deduplicate the per-service file descriptor store. Note that some distributions such as Ubuntu are already enabling CHECKPOINT_RESTORE in their configs and so, by extension, SYS_kcmp. References: https://gitlab.freedesktop.org/drm/intel/-/issues/3046 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Kees Cook <keescook@chromium.org> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Will Drewry <wad@chromium.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Dave Airlie <airlied@gmail.com> Cc: Daniel Vetter <daniel@ffwll.ch> Cc: Lucas Stach <l.stach@pengutronix.de> Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk> Cc: Cyrill Gorcunov <gorcunov@gmail.com> Cc: stable@vger.kernel.org Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> # DRM depends on kcmp Acked-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> # systemd uses kcmp Reviewed-by: Cyrill Gorcunov <gorcunov@gmail.com> Reviewed-by: Kees Cook <keescook@chromium.org> Acked-by: Thomas Zimmermann <tzimmermann@suse.de> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20210205220012.1983-1-chris@chris-wilson.co.uk Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Thanks... So I found that the commit is in v5.12-rc1, v5.11.3, and v5.10.20. Irritating amount of logic to handle that. I hope it doesn't get backported further. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de371306554b093d175fa9e12163b2e377d17762 commit de371306554b093d175fa9e12163b2e377d17762 Author: Matt Turner <mattst88@gentoo.org> AuthorDate: 2021-03-11 16:36:22 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2021-03-11 16:38:00 +0000 media-libs/mesa: Check for CONFIG_KCMP on appropriate kernel versions Closes: https://bugs.gentoo.org/775095 Signed-off-by: Matt Turner <mattst88@gentoo.org> media-libs/mesa/mesa-20.3.4.ebuild | 10 +++++++++- media-libs/mesa/mesa-21.0.0_rc5.ebuild | 12 ++++++++++-- media-libs/mesa/mesa-9999.ebuild | 12 ++++++++++-- 3 files changed, 29 insertions(+), 5 deletions(-) |