Return-Path: Received: from mail-wm0-f41.google.com ([74.125.82.41]:37791 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750918AbcBYVCs (ORCPT ); Thu, 25 Feb 2016 16:02:48 -0500 Received: by mail-wm0-f41.google.com with SMTP id g62so45129758wme.0 for ; Thu, 25 Feb 2016 13:02:47 -0800 (PST) From: Matt Fleming To: stable@vger.kernel.org Cc: Ard Biesheuvel , Peter Jones , Matthew Garrett , joeyli , Matt Fleming Subject: [PATCH v2 0/7] make efivarfs files immutable by default (for stable) Date: Thu, 25 Feb 2016 21:02:38 +0000 Message-Id: <1456434165-32520-1-git-send-email-matt@codeblueprint.co.uk> Sender: stable-owner@vger.kernel.org List-ID: Stable folks, This is a backport of the efivarfs anti-bricking changes [1] for stable. Some fixing up was required because the series doesn't apply cleanly before v4.5-rc1 due to the missing inode_lock() accessor. [1] - https://lkml.kernel.org/r/1454960895-3473-1-git-send-email-pjones@redhat.com Jason Andryuk (1): lib/ucs2_string: Correct ucs2 -> utf8 conversion Matt Fleming (1): efi: Add pstore variables to the deletion whitelist Peter Jones (5): lib/ucs2_string: Add ucs2 -> utf8 helper functions efi: Use ucs2_as_utf8 in efivarfs instead of open coding a bad version efi: Do variable name validation tests in utf8 efi: Make our variable validation list include the guid efi: Make efivarfs entries immutable by default Documentation/filesystems/efivarfs.txt | 7 ++ drivers/firmware/efi/efivars.c | 35 +++--- drivers/firmware/efi/vars.c | 144 ++++++++++++++++++------- fs/efivarfs/file.c | 70 ++++++++++++ fs/efivarfs/inode.c | 30 ++++-- fs/efivarfs/internal.h | 3 +- fs/efivarfs/super.c | 16 +-- include/linux/efi.h | 5 +- include/linux/ucs2_string.h | 4 + lib/ucs2_string.c | 62 +++++++++++ tools/testing/selftests/efivarfs/efivarfs.sh | 19 +++- tools/testing/selftests/efivarfs/open-unlink.c | 72 ++++++++++++- 12 files changed, 384 insertions(+), 83 deletions(-) -- 2.6.2