Commit c328793e authored by Committed by Greg Kroah-HartmanBrowse files
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 <firstname.lastname@example.org> Link: https://email@example.com Signed-off-by: Ard Biesheuvel <firstname.lastname@example.org> Signed-off-by: dann frazier <email@example.com> Signed-off-by: Greg Kroah-Hartman <firstname.lastname@example.org>