From patchwork Mon Dec 7 18:02:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 339301 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.0 required=3.0 tests=BAYES_00,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 76ED4C433FE for ; Mon, 7 Dec 2020 18:03:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4414D238D6 for ; Mon, 7 Dec 2020 18:03:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726247AbgLGSDF (ORCPT ); Mon, 7 Dec 2020 13:03:05 -0500 Received: from mail.kernel.org ([198.145.29.99]:52666 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726243AbgLGSDF (ORCPT ); Mon, 7 Dec 2020 13:03:05 -0500 From: Ard Biesheuvel Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: linux-efi@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Ard Biesheuvel , Samer El-Haj-Mahmoud Subject: [PATCH 0/2] efi capsule loader fixes Date: Mon, 7 Dec 2020 19:02:14 +0100 Message-Id: <20201207180216.3349-1-ardb@kernel.org> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-efi@vger.kernel.org A couple of fixes for the EFI capsule loader. Patch #1 switches from kmap() to kmap_atomic(). Patch #2 adds cache maintenance of the scatter gather list entries passed to UpdateCapsule. Cc: Samer El-Haj-Mahmoud Ard Biesheuvel (2): efi: capsule: use atomic kmap for transient sglist mappings efi: capsule: clean scatter-gather entries from the D-cache arch/arm/include/asm/efi.h | 5 +++++ arch/arm64/include/asm/efi.h | 5 +++++ drivers/firmware/efi/capsule.c | 16 ++++++++++++++-- 3 files changed, 24 insertions(+), 2 deletions(-)