Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1528403

Re: [PATCH v2] x86/mce: Include the PPIN in machine check records when it is available

From Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Newsgroups linux.kernel
Subject Re: [PATCH v2] x86/mce: Include the PPIN in machine check records when it is available
Date 2016-11-23 14:40 +0100
Message-ID <sGFWi-5vy-5@gated-at.bofh.it> (permalink)
References <sEUPL-1xM-11@gated-at.bofh.it> <sEVsu-1L1-31@gated-at.bofh.it> <sGEdQ-4jn-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, 23 Nov 2016, Borislav Petkov wrote:
> +		/* if PPIN is disabled, but not locked, try to enable: */
> +		if (!(val & 3ul)) {
> +			wrmsrl_safe(MSR_PPIN_CTL,  val | 2ul);
> +			rdmsrl_safe(MSR_PPIN_CTL, &val);
> +		}

Actually, since this thing is supposed to be opt-in [through UEFI
config] for a good reason (privacy), IMHO it would make more sense to:

1. Assuming we can do it, always lock it when it is found to be unlocked
   at kernel boot.

2. Not attempt to change its state from disabled to enabled *unless*
   given a command line parameter authorizing it.  A kconfig-based
   solution for default+command line override would also work well IMHO,
   if it makes more sense.

This would keep the feature opt-in as it is supposed to be, while making
it "safer" on firmware that leaves it unlocked after boot, and would
still allow owners of systems that leave it unlocked to change its
state at boot.  Everyone ends up happy...

-- 
  Henrique Holschuh

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 2/2] mcelog: Print the PPIN in machine check records when it is available "Luck, Tony" <tony.luck@intel.com> - 2016-11-18 01:40 +0100
  [PATCH 1/2] x86/mce: Include the PPIN in machine check records when it is available "Luck, Tony" <tony.luck@intel.com> - 2016-11-18 01:40 +0100
    Re: [PATCH 1/2] x86/mce: Include the PPIN in machine check records  when it is available Borislav Petkov <bp@suse.de> - 2016-11-18 14:10 +0100
      Re: [PATCH 1/2] x86/mce: Include the PPIN in machine check records  when it is available "Luck, Tony" <tony.luck@intel.com> - 2016-11-18 17:50 +0100
      Re: [PATCH 1/2] x86/mce: Include the PPIN in machine check records when it is available Andi Kleen <andi@firstfloor.org> - 2016-11-18 18:10 +0100
        Re: [PATCH 1/2] x86/mce: Include the PPIN in machine check records  when it is available Borislav Petkov <bp@suse.de> - 2016-11-18 18:50 +0100
        [PATCH v2] x86/mce: Include the PPIN in machine check records when it is available "Luck, Tony" <tony.luck@intel.com> - 2016-11-18 18:50 +0100
          Re: [PATCH v2] x86/mce: Include the PPIN in machine check records  when it is available Borislav Petkov <bp@suse.de> - 2016-11-23 12:50 +0100
            Re: [PATCH v2] x86/mce: Include the PPIN in machine check records  when it is available Henrique de Moraes Holschuh <hmh@hmh.eng.br> - 2016-11-23 14:40 +0100
              Re: [PATCH v2] x86/mce: Include the PPIN in machine check records  when it is available Borislav Petkov <bp@suse.de> - 2016-11-23 14:40 +0100
                Re: [PATCH v2] x86/mce: Include the PPIN in machine check records  when it is available Borislav Petkov <bp@suse.de> - 2016-11-23 16:00 +0100
                Re: [PATCH v2] x86/mce: Include the PPIN in machine check records when it is available Tony Luck <tony.luck@gmail.com> - 2016-11-23 17:50 +0100
                Re: [PATCH v2] x86/mce: Include the PPIN in machine check records  when it is available Borislav Petkov <bp@suse.de> - 2016-11-23 18:00 +0100
                Re: [PATCH v2] x86/mce: Include the PPIN in machine check records  when it is available Henrique de Moraes Holschuh <hmh@hmh.eng.br> - 2016-11-23 18:30 +0100
                Re: [PATCH v2] x86/mce: Include the PPIN in machine check records when it is available Tony Luck <tony.luck@gmail.com> - 2016-11-23 22:00 +0100
                Re: [PATCH v2] x86/mce: Include the PPIN in machine check records  when it is available Henrique de Moraes Holschuh <hmh@hmh.eng.br> - 2016-11-24 12:30 +0100
            [tip:ras/core] x86/mce: Include the PPIN in MCE records when  available tip-bot for Tony Luck <tipbot@zytor.com> - 2016-11-23 17:00 +0100

csiph-web