kernel-fxtec-pro1x/fs/efivarfs
Michael Schaller 02bb497cd6 efivarfs: Replace invalid slashes with exclamation marks in dentries.
commit 336af6a4686d885a067ecea8c3c3dd129ba4fc75 upstream.

Without this patch efivarfs_alloc_dentry creates dentries with slashes in
their name if the respective EFI variable has slashes in its name. This in
turn causes EIO on getdents64, which prevents a complete directory listing
of /sys/firmware/efi/efivars/.

This patch replaces the invalid shlashes with exclamation marks like
kobject_set_name_vargs does for /sys/firmware/efi/vars/ to have consistently
named dentries under /sys/firmware/efi/vars/ and /sys/firmware/efi/efivars/.

Signed-off-by: Michael Schaller <misch@google.com>
Link: https://lore.kernel.org/r/20200925074502.150448-1-misch@google.com
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-11-05 11:08:32 +01:00
..
file.c efivarfs: Limit the rate for non-root to read files 2018-02-22 10:21:02 -08:00
inode.c efivars: Call guid_parse() against guid_t type of variable 2018-07-22 14:13:44 +02:00
internal.h efi: Make efivarfs entries immutable by default 2016-02-10 16:25:52 +00:00
Kconfig
Makefile
super.c efivarfs: Replace invalid slashes with exclamation marks in dentries. 2020-11-05 11:08:32 +01:00