Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1380078rdb; Wed, 24 Jan 2024 13:25:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IGg4QVblH1h2rICwvhSQMdif0fLpbqlhvuM90z+E92mx5h1R4CjkllTYCCOGvrfpbUt9uWl X-Received: by 2002:ac8:5d42:0:b0:42a:42c4:94db with SMTP id g2-20020ac85d42000000b0042a42c494dbmr4233305qtx.128.1706131549160; Wed, 24 Jan 2024 13:25:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706131549; cv=pass; d=google.com; s=arc-20160816; b=hRhdrUmbmSQooJc1HaVDi4m94OI5W5t+uPqKvFLH9iJVRzpr8g+XA7/9GP3boe6ZN+ OOoSWMyEKp470bDN4/MX4DhJu66vyTgIPfiDZaEeJg9n2ltqjABYo6KQkTpO7NsKOZ1j Vk8WS6jMfWd5tal2Tm5kzj2JxfFfV/YPaENdrJiGKhMv/BMhXiRYGDWEcbDHQSZ3kMwM jifis6gEkqsfH4fybpY24Dv9klK2fsNmceUb7rggoAqXJxszZ7b1b15gwSSsJSzLekfN 5zR6a8K4PgSE5y2R/X1LhSSqYgJNiT2SYQL+M7oAIrqWCshyqKCLoO3WT+R/m+626LLC 4XaA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=ZsZGAZvBdhZK7fdXjVzGYu8HkXRsJN03PHr+uP2R2GM=; fh=oIYsQ45jdFPf3osB/Xu1bZmXG1dDd54EdHk9leNhN4Y=; b=Y+azhCoUEhJUkcdU3quVcOgdzwDPamYtDo/NDnIdbEQKqV8QIzm4eTiudprJeMsCRh k94R4Osa58hChP0uZkqtZdExlNP1b47knUzA1U7iB1/SH4LcObWbw2xqds/OanDJ/P98 54XmqsSHeyKZGLJ6ViLoiY0TV/RkRwvmTZDWmjbPRf8HdFnxIzQrpaTyuT3zz0ptvuSf hmUZaY87aCVJWKBftlQXLRLjyo8okQ2fo5JEUAfFYX2snqn6+0t0lHz9xUeVNdtp9xeR 0rT53ONQglJUAh2Hzu4PgRC2HaYJyQqarbySbFzCy0c3NO21zY8kIYyrsh4a4R9K2wPk q0xA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="V/C7nsy2"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-37688-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37688-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c7-20020ac87dc7000000b0042a541555b5si3848871qte.274.2024.01.24.13.25.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 13:25:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-37688-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="V/C7nsy2"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-37688-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-37688-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E76D91C22E76 for ; Wed, 24 Jan 2024 21:25:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 771FE1353EF; Wed, 24 Jan 2024 21:25:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="V/C7nsy2" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1B92712AACC for ; Wed, 24 Jan 2024 21:25:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706131540; cv=none; b=DZ5iSikbFDU7Tw0Ijp+cwLojikhZopyigD5S9Vgpqzn7kSwyoht5d2fZtdYT17yYIu5h5QzpJ47WhZdVvykwarSjQqdpopflh5cDziPG6q3Iw/g9g2oCGh0YErcY2mYb5dQ6ZrKo9WvjdJhad0KRUQktFfWSmxEBP9EPqVLPFNU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706131540; c=relaxed/simple; bh=41yr/k9pg0nXDa50lJm3KIxoZszGdUcvNpLuv1FNMxk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=in9aMxtFWc86Lws6YOXyJHawEMfu29VTk22mRTByq/9R5VDFBkIuD/ep5v55I4fNkTnh1HY16htRcUC0eAaFrJRj0oUo7syORbju0vVpzEOB4x/QSMyyVYNDOu61lhBgIic0Ww+ySFdvjZEf4wgqyXRj0B0W1TKX9wrtAYrsuP0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=V/C7nsy2; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706131538; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZsZGAZvBdhZK7fdXjVzGYu8HkXRsJN03PHr+uP2R2GM=; b=V/C7nsy2rVjbBENTdKhbMl4UO+3rHi7ouy5EGUtQSYPwbL06RhQyyRuSEXTfLFs8WMYoSd Sw/pVwC74qQr/eBZUfYqBiKECYC5mzDcf2FmaExB7ztMmSr9ldbeNyUbEE1/uD+6peoZ2r pX4sOQlg9P/Er0KQimE30LW7TnVvJgY= Received: from mail-ua1-f71.google.com (mail-ua1-f71.google.com [209.85.222.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-660-Ef-nDVuoMGW10z7y76fRig-1; Wed, 24 Jan 2024 16:25:36 -0500 X-MC-Unique: Ef-nDVuoMGW10z7y76fRig-1 Received: by mail-ua1-f71.google.com with SMTP id a1e0cc1a2514c-7d0ac939b9fso1857826241.3 for ; Wed, 24 Jan 2024 13:25:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706131535; x=1706736335; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZsZGAZvBdhZK7fdXjVzGYu8HkXRsJN03PHr+uP2R2GM=; b=iROSoj6W2l985vZ9Slji3w7+wn96m6ODjuw1OQlTPvlSP7I/Uf9MgIGkof2xJ8CYhu YpVmVBQZeFGkcm7bWk+sVoD3Q3mVKFm9aOMbMCE9qHLWSGhKgbwoGkBaBhERE8TWFr6O qquC5m+yeyeAzQ4rxnMP4cjEwdBbh1Vp5vtHeWKsH5Kwmrk2H2Rc9jjYB2wkDvj7/218 nhlVOToO6mtxDAmCRFfw2n32rD41eCrB67X0zJCEpMXphu+wGwIhuQvMwNBysZvurV/W ZGzAJmuNQqT1u2GwKOeBRv06d48GwPuidwu44yAVCCDIdhHlA2+Yn7arbh/1l5g6QOcV aI5g== X-Gm-Message-State: AOJu0YyZTuuX75aMG9Ln2moeSD7H4x+eQExsT1X9k4VO1r2o1Bb261Jt s5zMSChbqsPmQu9/SWgtVD49m9vDw5SuSZmmmdY4oNMqTIHNOQUUa52v+3GJp6Go6Sw2NN7ii+j dZyEyQVo97vs0mW2Bw6S+lX0/6xZ5FOz/E5NqU3DuSAQwXBaPYxvVhnaW1YhqeiaTRv/mwqSTn1 GyQCs9vG6OIWzJUDdoKW2M80WNAZU9v8J0cIIu X-Received: by 2002:a05:6102:3214:b0:46a:fc04:53ea with SMTP id r20-20020a056102321400b0046afc0453eamr28313vsf.3.1706131535601; Wed, 24 Jan 2024 13:25:35 -0800 (PST) X-Received: by 2002:a05:6102:3214:b0:46a:fc04:53ea with SMTP id r20-20020a056102321400b0046afc0453eamr28304vsf.3.1706131535251; Wed, 24 Jan 2024 13:25:35 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240122231507.1307793-1-timschumi@gmx.de> <223a4e75-2e06-4bc6-a70c-823f0eb308d7@gmx.de> In-Reply-To: From: Peter Jones Date: Wed, 24 Jan 2024 16:25:24 -0500 Message-ID: Subject: Re: [PATCH] efivarfs: Iterate variables with increasing name buffer sizes To: Tim Schumacher Cc: Ard Biesheuvel , Matthew Garrett , linux-efi@vger.kernel.org, Jeremy Kerr , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jan 23, 2024 at 12:33=E2=80=AFPM Tim Schumacher = wrote: > > On 23.01.24 15:09, Ard Biesheuvel wrote: > > On Tue, 23 Jan 2024 at 14:55, Tim Schumacher wrote: > >> > >> I'd rather avoid introducing deviations from the specifications on the > >> kernel side as well. > > > > Which specification would this deviate from? > > The preexisting comment claims "Per EFI spec", and it appears that I got > mislead by that. Neither the UEFI specification, nor the newest revision > of the EFI specification (which I guess is what would have been current > back in 2004, when this comment was introduced) seem to make any mention > of a maximum length for the variable name. Curiously, I can't find it in the 1.02 spec (the oldest I can find) either. When I inherited efibootmgr around 2013, this was a limitation there, but I don't see anything in that tree that claims it's a spec limitation either. My suspicion is this is a former Itanium firmware limit that got promoted to "the spec says" by word of mouth, or was in some very early ia64 implementation spec. -- Peter