lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 9 Sep 2020 22:03:21 +0200
From:   Borislav Petkov <bp@...en8.de>
To:     "Luck, Tony" <tony.luck@...el.com>
Cc:     x86-ml <x86@...nel.org>, lkml <linux-kernel@...r.kernel.org>
Subject: Re: [RFC PATCH] x86/mce: Make mce_rdmsrl() do a plain RDMSR only

On Wed, Sep 09, 2020 at 11:20:51AM -0700, Luck, Tony wrote:
> Do we think there will be other places where we want this
> MSR-or-die behaviour?

MSR-or-die - I like that. That belongs on a T-shirt. :-)

> If there are, then most of this belongs elsewhere from
> arch/x86/kernel/cpu/mce/core.c

Yeah, I can't think of any other users needing this ATM. But if they do,
lifting those and moving them somewhere else is trivial.

> The "_once" version seems a little pointless when the next statement
> in the function is "panic()".

True, removed.

> "warn" seems understated for an error that is going to crash the system.
> Just go for "pr_emerg()".

Done.

> There seems no consistency on using "rIP" or "RIP" ... but I think "RIP"
> is slightly ahead.

The "r" in rIP means that it can be RIP or EIP and that code builds on
32-bit too.

> nitpick: I don't thing Architectural needs to be capitalized.

Done.

> Ugh. Is this why you have warn_once() ... because panic might return?

People tend to put all kinds of things in panic() and I want to make
sure that even if it returns for whatever reason, at some point in
the future, we don't make any further progress here. Think of it as a
paranoid precation of sorts...

Thx.

-- 
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ