From: Richard Weinberger <richard@nod.at>
To: "Luck, Tony" <tony.luck@intel.com>
Cc: "Fleming, Matt" <matt.fleming@intel.com>,
"cbouatmailru@gmail.com" <cbouatmailru@gmail.com>,
"ccross@android.com" <ccross@android.com>,
"keescook@chromium.org" <keescook@chromium.org>,
"linux-efi@vger.kernel.org" <linux-efi@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"matthew.garrett@nebula.com" <matthew.garrett@nebula.com>
Subject: Re: [PATCH 1/2] efivars: Check max_size only if it is non-zero.
Date: Thu, 04 Apr 2013 18:12:39 +0200 [thread overview]
Message-ID: <515DA677.8050805@nod.at> (raw)
In-Reply-To: <3908561D78D1C84285E8C5FCA982C28F1E0987DE@ORSMSX108.amr.corp.intel.com>
Am 04.04.2013 18:00, schrieb Luck, Tony:
>> Some (broken?) EFI implementations return always a MaximumVariableSize of 0,
>> check against max_size only if it is non-zero.
>
> The spec doesn't say that zero has any special meaning - so if an implementation
> returns max_size == 0 but lets you set a variable to a size > 0, then I don't think
> there is a need for parentheses or a "?" in this commit comment.
Thanks for the clarification.
Yesterday I've looked into the spec, but the >2000 pages hurt my brain. ;-)
> But if Linux silently accepts such broken EFI, then there is no feedback loop
> to let EFI implementations know that they are broken. In other areas we have
> thrown out messages about firmware being broken ... perhaps:
>
> if (max_size == 0)
> printk_once("Broken EFI implementation is returning MaxVariableSize=0\n");
>
> would help? After all there probably *is* a maximum size - but EFI isn't telling us what it is.
Fair point. I'll add such a printk() to my patch and resend.
Thanks,
//richard
next prev parent reply other threads:[~2013-04-04 16:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-04 13:01 [PATCH 1/2] efivars: Check max_size only if it is non-zero Richard Weinberger
2013-04-04 13:01 ` [PATCH 2/2] efivars: Implement no_storage_paranoia parameter Richard Weinberger
[not found] ` <1365080500-13677-1-git-send-email-richard-/L3Ra7n9ekc@public.gmane.org>
2013-04-04 16:00 ` [PATCH 1/2] efivars: Check max_size only if it is non-zero Luck, Tony
2013-04-04 16:12 ` Richard Weinberger [this message]
[not found] ` <515DA677.8050805-/L3Ra7n9ekc@public.gmane.org>
2013-04-05 14:03 ` Matt Fleming
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=515DA677.8050805@nod.at \
--to=richard@nod.at \
--cc=cbouatmailru@gmail.com \
--cc=ccross@android.com \
--cc=keescook@chromium.org \
--cc=linux-efi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=matt.fleming@intel.com \
--cc=matthew.garrett@nebula.com \
--cc=tony.luck@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).