From patchwork Sun Oct 13 05:11:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Marek X-Patchwork-Id: 835134 Received: from mail-qk1-f181.google.com (mail-qk1-f181.google.com [209.85.222.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3AB8A1862 for ; Sun, 13 Oct 2024 05:16:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728796603; cv=none; b=hFiM0hq76SsPu3ePJOgJsOFY5blSEZ+YWFyxSi8p1/3n4vBMIT3D7TP5BGFCjbCaEyPjpss4UNQzbLWR50CRat5JT4zW3K/yeKOJBZvMoYYY983rMgLAPyKkyMJieb7/MDdkXkAop6B6SuqeEA2Gfg1CAT+zhgDH4QbH5exAxRk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728796603; c=relaxed/simple; bh=HU69t/U2R87EH0IIXRZwqe3pK8N1gmRLZwkGN9lyVKc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fM3Nt5MdA8ytS7oP2uooh1LISMqz70pTS3LiBqQ3ttEXJSk3RFRDlBby8Ruf/YGJaNJj3A6zrhnWm0OwwodEZScxGhoX3cD4ZsyiqA3MZ3Q6HxpZwibJ/EshblEeVcLCgmabrQdyn6npANxWRPing9FWD4YrDSYZ8WhkBq4tZdk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=marek.ca; spf=pass smtp.mailfrom=marek.ca; dkim=pass (2048-bit key) header.d=marek.ca header.i=@marek.ca header.b=AG+6D1mS; arc=none smtp.client-ip=209.85.222.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=marek.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=marek.ca Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marek.ca header.i=@marek.ca header.b="AG+6D1mS" Received: by mail-qk1-f181.google.com with SMTP id af79cd13be357-7b1109e80f8so249995685a.0 for ; Sat, 12 Oct 2024 22:16:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marek.ca; s=google; t=1728796600; x=1729401400; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=/v6ZIW1ohWKzbazrFBWrOZgEehfeMTcOHMOxiyDbSBc=; b=AG+6D1mSYjKvrje/5Vg+bBJ1QinMk51ZI1T47dDRdiaIDyJsUGAjhTjymknIOcVmWm gOTXgeL/jZaukIlQ6/VOFYKxtTHCvUA9a6Q0oXScaWu1GbBIvVs17UjY8EB2Q4JUV2gs eAgYwcyeZpfbfgOSlzez16XhpNSOp90nYtTp0ss6LqmX2azc0QWbEpqVnFm0OHQXNZ3t vXx1gCfidMr3OEHySBuW7jFSR5sLn9phApQHBweIT6M7cPjk2wLrbrjKpXdt14N5lT49 VczjJpvddTLn5zOT5IylztDiEMQA3wYG9cZpx+rgbgO09Tj4Carcqna8iVTiCY7x/gQw wgxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728796600; x=1729401400; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/v6ZIW1ohWKzbazrFBWrOZgEehfeMTcOHMOxiyDbSBc=; b=Y3inqqxI4MPmcIgPs3YWNmszJJquUoSJ58XwbVi13ZOaLtuN8uibZG3bhJLg2bC6Fa Z/ZBMjQOqDaQoGa7Yah9ufkUqNvqrREa00xpsFTi4Rvq0t6zzxD1WMZzO0VoIpR8i3qP WrDlR/2MFquvqhrCiV6aJ1ncHdLr2rQ0m/oqOJDacydOiIEeGtvDndV2OMgoWfltQpPt LGuMfpw/tFwK+DCrSKjaDozBwSW8DoJheRuKwBUzzYnEBNNm6RNKGXyIj10KAsiPcMtY cfHEygtuOVkM9qpUZY5blLsQM5hyjDZ/14sY5K2S9Ys7Fnz5lQEyPtJhIncuCqpXvUZT Iu2Q== X-Gm-Message-State: AOJu0Yy5GHcUOS9gXBx+7mSHeUqSDr34FytF5I6REJmd3omULkAG/RVP ZWf1K2hr/B3Vgn4lhwyTKsROaxLnnXPv/woIMVO9RdIYw42VlG302Hkgg6oehlvmSE3duRsb1Mr 5vM0= X-Google-Smtp-Source: AGHT+IHyd20bRK+z5lKhwyfqeRnEsniX4BsP2zlFFtf4KsKYxpCxEu7uhRRSQTHmEz7r3exf85tZAA== X-Received: by 2002:a05:620a:470d:b0:7a9:a1f4:d4e1 with SMTP id af79cd13be357-7b120fcfe30mr710015285a.39.1728796600055; Sat, 12 Oct 2024 22:16:40 -0700 (PDT) Received: from localhost.localdomain (modemcable125.110-19-135.mc.videotron.ca. [135.19.110.125]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-460427dafc0sm31457681cf.35.2024.10.12.22.16.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Oct 2024 22:16:39 -0700 (PDT) From: Jonathan Marek To: linux-efi@vger.kernel.org Cc: Aditya Garg , Andrew Morton , Ard Biesheuvel , "Borislav Petkov (AMD)" , Ingo Molnar , Kees Cook , "Kirill A. Shutemov" , Kuppuswamy Sathyanarayanan , linux-kernel@vger.kernel.org (open list), Nikolay Borisov Subject: [PATCH v2 0/2] efi/libstub: fix efi_parse_options() ignoring the default command line Date: Sun, 13 Oct 2024 01:11:55 -0400 Message-ID: <20241013051239.22564-1-jonathan@marek.ca> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-efi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 v2: - changed to check for NUL character instead of size==1 - reworked cleanup patch to remove cmd_line_len - moved 3rd commit out of this series Jonathan Marek (2): efi/libstub: fix efi_parse_options() ignoring the default command line efi/libstub: remove unnecessary cmd_line_len from efi_convert_cmdline() drivers/firmware/efi/libstub/efi-stub-helper.c | 3 +-- drivers/firmware/efi/libstub/efi-stub.c | 7 +++---- drivers/firmware/efi/libstub/efistub.h | 2 +- drivers/firmware/efi/libstub/x86-stub.c | 3 +-- 4 files changed, 6 insertions(+), 9 deletions(-)