Re: [PATCH] sysfs: attribute_group: Respect is_visible_const() when changing owner
From: Danilo Krummrich
Date: Wed Apr 08 2026 - 18:22:07 EST
On Fri Apr 3, 2026 at 6:31 PM CEST, Thomas Weißschuh wrote:
> The call to grp->is_visible in sysfs_group_attrs_change_owner() was
> missed when support for is_visible_const() was added.
>
> Check for both is_visible variants there too.
>
> Fixes: 7dd9fdb4939b ("sysfs: attribute_group: enable const variants of is_visible()")
> Cc: stable@xxxxxxxxxxxxxxx
> Reported-by: Michael Kelley <mhklinux@xxxxxxxxxxx>
> Closes: https://lore.kernel.org/lkml/SN6PR02MB4157D5F04608E4E3C21AB56ED45EA@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/
> Link: https://sashiko.dev/#/patchset/20260403-sysfs-const-hv-v2-0-8932ab8d41db%40weissschuh.net
> Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
Applied to driver-core-testing, thanks!