Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH 0/4] CPU_FLAGS_X86: Introduce 'rdrand' flag
Date: Tue, 14 Jul 2020 02:37:02
Message-Id: b68e16627e59673f7f881a7297e45506d7a41f9c.camel@gentoo.org
In Reply to: Re: [gentoo-dev] [PATCH 0/4] CPU_FLAGS_X86: Introduce 'rdrand' flag by "Francisco Blas Izquierdo Riera (klondike)"
1 On Mon, 2020-07-13 at 22:53 +0200, Francisco Blas Izquierdo Riera
2 (klondike) wrote:
3 > El 13/7/20 a las 22:07, Francisco Blas Izquierdo Riera (klondike) escribió:
4 > > El 13/7/20 a las 21:27, Michał Górny escribió:
5 > > > On Mon, 2020-07-13 at 19:33 +0200, Francisco Blas Izquierdo Riera
6 > > > (klondike) wrote:
7 > > > > El 13/7/20 a las 19:23, Michał Górny escribió:
8 > > > > > On Mon, 2020-07-13 at 19:07 +0200, Francisco Blas Izquierdo Riera
9 > > > > > (klondike) wrote:
10 > > > > > > Hi!
11 > > > > > >
12 > > > > > > We have currently two packages that have USE cpu-flags-x86-rdrand as there is no USE_EXPAND version available. This pattern is likely to confuse users as they may not be aware of the difference between dashes and underscores.
13 > > > > > >
14 > > > > > > Affected packages:
15 > > > > > > dev-haskell/cryptonite
16 > > > > > > dev-libs/json-c
17 > > > > > >
18 > > > > > I'm sorry but I haven't been following the big rdrand-AMD drama closely.
19 > > > > > Does the kernel mitigate broken RDRAND after resume these days?
20 > > > > >
21 > > > > AGESA patches do exist to address this issue: https://www.reddit.com/r/Amd/comments/cmza34/agesa_1003_abb_fixes_rdrandrdseed/ I suspect AMD microcode does too.
22 > > > >
23 > > > Lemme rephrase: is this something we should be warning our users before
24 > > > they enable the flag? I think we should aim to avoid the situation that
25 > > > cpuid2cpuflags enables this behind user's backs and their programs
26 > > > suddenly break as a result.
27 > > You then mean the other rdrand bug.
28 > >
29 > > Yes, current stable linux kernel (5.4.48) in amd64 does include the patch, I'm uncertain about prior kernel branches though but I don't expect many users on that confluence.
30 > >
31 > > The patch: https://lore.kernel.org/linux-doc/776cb5c2d33e7fd0d2893904724c0e52b394f24a.1565817448.git.thomas.lendacky@×××.com/
32 > > The bug: https://bugzilla.kernel.org/show_bug.cgi?id=85911
33 > >
34 > >
35 > I have checked also stable versions for other kernel branches and all seem to have the patch icluded.
36 >
37 >
38
39 LGTM then.
40
41 --
42 Best regards,
43 Michał Górny

Attachments

File name MIME type
signature.asc application/pgp-signature