From patchwork Thu Dec 8 13:40:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 631881 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp224864pvb; Thu, 8 Dec 2022 05:40:17 -0800 (PST) X-Google-Smtp-Source: AA0mqf6ZIGa62eQ0sMhnwgeBVRij5dztRcjpPURsb9wYKqI3Xzc8D6O9kJEP3kmyG/ME1WtgYeU4 X-Received: by 2002:a5e:a818:0:b0:6e0:95b:42e9 with SMTP id c24-20020a5ea818000000b006e0095b42e9mr1392576ioa.13.1670506817240; Thu, 08 Dec 2022 05:40:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670506817; cv=none; d=google.com; s=arc-20160816; b=wW+Br6Re/zIQ8+iOfhulUGqq9/HRBDKaDhwJZbTBv4/zrgfkrFitGRYAkP1fU3rV6P XXddRSNxjqbm+09iWuFQaPrgBdJ7nNTR/U00LEWZUjK3D/ctfwuwbSjLNxzWy4AQLv6P xWBzgjoE9R5sxlhGii/EMc/AhZoPQVQ4yz3uNeUrhFr3g81FRGzgsJ0pUe+Qu7yHV6DP ZLhJfEUrys58Wpk/U0zkmJYNcJmd4O/oe28dlmyohkLWI6aodGrRdXwsWjdyw1cd8Cph tfND3b5Cs7xlZTRbc76nabpekV7+cEboIsybLz9wo19gDX+uLlqqS4i3IUZFGjzwK+JC n5gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=T31QWTklNHXCW4dEmyClsdjBuL403IkTvtrrc1lU60c=; b=CbmuhSReiFRG439v/+tb17ZDlti5gnkwaS1cHE91fYH6Fx2oD+W2BlEEtDfdvduac6 hgIx2dm2iVMwBa2zvXJBp4hLr3oxZ9QuOig+oRLsCP3C1fFjachZFQTzRKMX3uWj8dv3 PClCB6aL423/qHmtiUzj4NSi4HFPRP4K/3Zurz+rwq1h8XJPLVPQzgXBstXzItvLhXop SlV08JHGtshUskwi9XlEIBTxFjVu6ceck0Yxjj4N6XGVvkZ2uer04QqX/9AYHdQsI5kO 4R2orb4b3e6y436jLHJlMlKuGNxOwZ4jHfHZATFw+Q7oh4i2YOiPVv+n8y3vpT/5iwNM 8ZPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w2iGkcTw; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id d17-20020a0566022d5100b006de4131454dsi17022782iow.110.2022.12.08.05.40.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Dec 2022 05:40:17 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w2iGkcTw; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D9CA485016; Thu, 8 Dec 2022 14:39:43 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="w2iGkcTw"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 195EC85006; Thu, 8 Dec 2022 14:39:38 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E80AE84D1B for ; Thu, 8 Dec 2022 14:39:24 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=masahisa.kojima@linaro.org Received: by mail-pj1-x1030.google.com with SMTP id fy4so1340730pjb.0 for ; Thu, 08 Dec 2022 05:39:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=T31QWTklNHXCW4dEmyClsdjBuL403IkTvtrrc1lU60c=; b=w2iGkcTwI4Ur5MmFNX1TRqrY4hvSJkfsEgsh2vPrsILmaRVA5ZLKottiWxWGfVkRrv CzLX9zZ0ta28KHz8U/PWxk7UUX7Si28AS5miWh6Ds9zeOgyz6IG2+jiHuDm42WhT5Xwl eVaRwbzqn/pwq0C/SX5ErxnQgJuDa8ZLTXKTgGwXl581neqOcBf9DD6I3UHdjuL2C/DJ zjxofhQzrEIe6yQkTwoTyIMkbSPOSklgFWe+G1jjt9I4ApO7nvwygbcNhSCQqA2N7/7x oTIaRRGwiZGIiJZPDVLsIoaQZOo04aezmqEVnpDTLKU/vCf6QFYoDc84Iznfmn5imFsF Sliw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=T31QWTklNHXCW4dEmyClsdjBuL403IkTvtrrc1lU60c=; b=zgZlLKIEGKNfC8QxyRLk6kW8/Jwa5lsp6wCLLKdk63/A9J2z/00e74hCP2f/IPlk1d ubWrZYzJumCQ/JvedbgQCeX01ZI2b0nEhRSXp8P4xH+s5BZtVygKHmSZ7TzomWiYPMfz qwXHhuOSBHW5FkuPUu/JHmllcKa46bo8gjTYPGktRxpmXSwE8yN0cc8M+NQpyUiiZUBm qYWY6U6twZ1/NUbvK4C3hI1+GjHHTvvEwQ4X6IEV+Ct0F04ee0w2WohrpaamY20/B+Y1 JSbwawo7sqGVtWreooS9ZDkvIi2fodpU7rDGnuwh9VWYTyxVDow3wcTIClplguwVwZ51 TIcg== X-Gm-Message-State: ANoB5pmBuM0kDOwcAWop/auUTaMmB60v2/zX2dwGwQ+q5ILiM0fDQ70Y iISTwde21FVpMvysn3d7DeEp/fZfrag4fxaf X-Received: by 2002:a17:902:744b:b0:189:9cfd:be72 with SMTP id e11-20020a170902744b00b001899cfdbe72mr2250915plt.8.1670506762557; Thu, 08 Dec 2022 05:39:22 -0800 (PST) Received: from localhost.localdomain ([240d:1a:cf7:5800:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id z18-20020a170903019200b00177f4ef7970sm16716151plg.11.2022.12.08.05.39.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Dec 2022 05:39:21 -0800 (PST) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Masahisa Kojima Subject: [PATCH 0/2] fix eficonfig GetNextVariableName calls handling Date: Thu, 8 Dec 2022 22:40:20 +0900 Message-Id: <20221208134022.28621-1-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.17.1 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean This series includes refactoring and bugfix of GetNextVariableName calls in eficonfig. After "eficonfig: curve out efi_get_next_variable_name_int calls" patch is merged, I will send the follow-up patch to use common function in cmd/efidebug.c and cmd/nvedit_efi.c. These files also implement alloc -> efi_get_next_variable_name_int -> realloc -> efi_get_next_variable_name_int sequence. Masahisa Kojima (2): eficonfig: curve out efi_get_next_variable_name_int calls eficonfig: avoid SetVariable between GetNextVariableName calls cmd/eficonfig.c | 119 ++++++++++++++++++------------------ include/efi_loader.h | 2 + lib/efi_loader/efi_helper.c | 34 +++++++++++ 3 files changed, 95 insertions(+), 60 deletions(-)