Files
linux/fs
Michael Schaller c328793e21 efivarfs: Replace invalid slashes with exclamation marks in dentries.
commit 336af6a468 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-01 12:45:37 +01:00
..
2020-08-19 08:27:03 +02:00
2020-10-29 10:08:02 +01:00
2020-09-09 19:14:10 +02:00
2020-10-29 10:08:20 +01:00
2020-08-26 11:49:06 +02:00
2020-09-03 11:29:31 +02:00
2020-05-14 16:44:25 +02:00
2020-02-07 14:48:35 -05:00
2020-03-05 21:00:40 -05:00
2020-05-14 16:44:24 +02:00
2020-05-14 16:44:24 +02:00