From: matt@console-pimps.org (Matt Fleming) Date: Tue, 8 Jul 2014 10:52:47 +0100 Subject: [PATCH 2/2] efi: implement mandatory locking for UEFI Runtime Services In-Reply-To: References: <1404295802-28030-1-git-send-email-ard.biesheuvel@linaro.org> <1404295802-28030-2-git-send-email-ard.biesheuvel@linaro.org> <20140707202954.GC27474@console-pimps.org> <20140708092958.GD27474@console-pimps.org> Message-ID: <20140708095247.GE27474@console-pimps.org> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Tue, 08 Jul, at 11:45:03AM, Ard Biesheuvel wrote: > > Well, that is what is says in the comment: > * ops.get_next_variable() is only called from register_efivars() > * or efivar_update_sysfs_entries(), > * which is protected by the BKL, so that path is safe. Oops, so it does. That's a stale comment. I'll update it. > I agree. So shall I update my patch to add a single spin_lock that is > used by all wrappers? > We will likely need the wrappers on ARM as well, only ia64 needs > another approach (if desired) Please do, that would be great! -- Matt Fleming, Intel Open Source Technology Center