From: Jeff Moyer <jmoyer@redhat.com>
To: Dan Williams <dan.j.williams@intel.com>
Cc: linux-nvdimm <linux-nvdimm@lists.01.org>
Subject: Re: [patch] nfit: report frozen security state
Date: Wed, 07 Aug 2019 17:48:41 -0400 [thread overview]
Message-ID: <x49ef1whcjq.fsf@segfault.boston.devel.redhat.com> (raw)
In-Reply-To: <CAPcyv4js-dZWFyRM7=JgC31uJUyxVzuwrderFrWf5p=z82E+WA@mail.gmail.com> (Dan Williams's message of "Wed, 7 Aug 2019 14:36:50 -0700")
Dan Williams <dan.j.williams@intel.com> writes:
> On Thu, Aug 1, 2019 at 2:55 PM Jeff Moyer <jmoyer@redhat.com> wrote:
>>
>> If a dimm is frozen, it is currently reported as being "locked". While
>> that's not technically wrong, it is misleading as the dimm can't be
>> unlocked. Fix the confusion.
>
> This looks ok, but now I wonder about the case where the DIMM is
> unlocked, but frozen?
Hah, forgot that was even a possibility. :)
> I think it makes more sense to show "frozen" when the DIMM is
> frozen-locked, and show "unlocked" when frozen-unlocked. I.e. if the
> DIMM is frozen the user should assume it's disabled for general
> purpose operation, and if it's unlocked the fact that it will fail
> some security operations is a constrained error case. Thoughts?
I think that adds confusion. I think we should print out both whether
or not it's locked and whether or not it's frozen. Maybe:
unlocked, not frozen: "unlocked"
locked, not frozen: "locked"
unlocked, frozen: "unlocked (frozen)"
locked, frozen: "locked (frozen)"
Something like that? I think nvdimm_security_state should be a bitmask,
not an enum. That may be a part of the problem.
-Jeff
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm
next prev parent reply other threads:[~2019-08-07 21:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-01 21:54 [patch] nfit: report frozen security state Jeff Moyer
2019-08-07 21:36 ` Dan Williams
2019-08-07 21:48 ` Jeff Moyer [this message]
2019-08-07 22:27 ` Dan Williams
2019-08-08 20:20 ` Jeff Moyer
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=x49ef1whcjq.fsf@segfault.boston.devel.redhat.com \
--to=jmoyer@redhat.com \
--cc=dan.j.williams@intel.com \
--cc=linux-nvdimm@lists.01.org \
/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