Commit Graph

45 Commits

Author SHA1 Message Date
Eugene Syromiatnikov
2dd4b685a8 update_ucode: avoid calling find on non-existing directories
During various reasons (specifically, due to being called at various
stags of mirocode_ctl installation/upgrade) it is possible that some
directories do not exist, which is problematic, as find exits
with non-zero exit code if being called on them.  Avoid that by wrapping
find calls in a function that checks that the first find argument
is indeed an existing directory before calling find itself.

* update_ucode (find_d): New function.
Convert find calls that are not prefixed with $cmd into find_d calls.
* microcode_ctl.spec (Release): Bump to 4.
(%changelog): Mention it.

Resolves: #2231065
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
2023-08-21 13:11:00 +02:00
Eugene Syromiatnikov
294b04071d check_caveats, reload_microcode, update_ucode: reset locale to C
The scripts are not expected to work with locale-sensitive data,
and since unusual locales may let them go haywire, try to avoid
it by forcing locale to C at the beginning of the scripts.

* check_caveats: Export LC_ALL=C.
* reload_microcode: Likewise.
* update_ucode: Likewise.
* microcode_ctl.spec (Release): Bump to 3.
(%changelog): Mention it.

Resolves: #2218096
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
2023-08-21 13:10:15 +02:00
Eugene Syromiatnikov
242b19d375 update_ucode: cleanup dangling symlinks during update
Microcode is not supposed to be removed during updates,
so there are several possible code paths/situations when
it is possible that symlinks are not completely cleaned up;
as a result, when such a case occurs (for example, when
there is a microcode, that is not supposed to be OS-loadable
in the first place, added end then removed) a dangling symlinks
may appear during updates;  the most straightforward way to deal
with it, it seems, is to just treat the microcode directories
as being owned by the package (which they de-facto are) and simply
cleanup all the dangling symlinks during an update.

* update_ucode: Remove all the dangling symlinks at the end of common
microcode removal phase;  remove all the dangling symlinks in the
kernel-specific directories at the end of the update process.
* microcode_ctl.spec (Release): Bump to 2.
(%changelog): Add an entry.

Resolves: #2135376
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
2023-06-07 00:14:50 +02:00
Eugene Syromiatnikov
308f3271d0 Update Intel CPU microcode to microcode-20230214 release
- Update Intel CPU microcode to microcode-20230214 release, addresses
  CVE-2022-21216, CVE-2022-33196, CVE-2022-33972, CVE-2022-38090:
  - Addition of 06-6c-01/0x10 (ICL-D B0) microcode at revision 0x1000211;
  - Addition of 06-8f-04/0x87 (SPR-SP E0/S1) microcode at revision
    0x2b000181;
  - Addition of 06-8f-04/0x10 microcode at revision 0x2c000170;
  - Addition of 06-8f-05/0x87 (SPR-SP E2) microcode (in
    intel-ucode/06-8f-04) at revision 0x2b000181;
  - Addition of 06-8f-05/0x10 (SPR-HBM B1) microcode (in
    intel-ucode/06-8f-04) at revision 0x2c000170;
  - Addition of 06-8f-06/0x87 (SPR-SP E3) microcode (in
    intel-ucode/06-8f-04) at revision 0x2b000181;
  - Addition of 06-8f-06/0x10 microcode (in intel-ucode/06-8f-04) at
    revision 0x2c000170;
  - Addition of 06-8f-07/0x87 (SPR-SP E4/S2) microcode (in
    intel-ucode/06-8f-04) at revision 0x2b000181;
  - Addition of 06-8f-08/0x87 (SPR-SP E5/S3) microcode (in
    intel-ucode/06-8f-04) at revision 0x2b000181;
  - Addition of 06-8f-08/0x10 (SPR-HBM B3) microcode (in
    intel-ucode/06-8f-04) at revision 0x2c000170;
  - Addition of 06-8f-04/0x87 (SPR-SP E0/S1) microcode (in
    intel-ucode/06-8f-05) at revision 0x2b000181;
  - Addition of 06-8f-04/0x10 microcode (in intel-ucode/06-8f-05) at
    revision 0x2c000170;
  - Addition of 06-8f-05/0x87 (SPR-SP E2) microcode at revision
    0x2b000181;
  - Addition of 06-8f-05/0x10 (SPR-HBM B1) microcode at revision
    0x2c000170;
  - Addition of 06-8f-06/0x87 (SPR-SP E3) microcode (in
    intel-ucode/06-8f-05) at revision 0x2b000181;
  - Addition of 06-8f-06/0x10 microcode (in intel-ucode/06-8f-05) at
    revision 0x2c000170;
  - Addition of 06-8f-07/0x87 (SPR-SP E4/S2) microcode (in
    intel-ucode/06-8f-05) at revision 0x2b000181;
  - Addition of 06-8f-08/0x87 (SPR-SP E5/S3) microcode (in
    intel-ucode/06-8f-05) at revision 0x2b000181;
  - Addition of 06-8f-08/0x10 (SPR-HBM B3) microcode (in
    intel-ucode/06-8f-05) at revision 0x2c000170;
  - Addition of 06-8f-04/0x87 (SPR-SP E0/S1) microcode (in
    intel-ucode/06-8f-06) at revision 0x2b000181;
  - Addition of 06-8f-04/0x10 microcode (in intel-ucode/06-8f-06) at
    revision 0x2c000170;
  - Addition of 06-8f-05/0x87 (SPR-SP E2) microcode (in
    intel-ucode/06-8f-06) at revision 0x2b000181;
  - Addition of 06-8f-05/0x10 (SPR-HBM B1) microcode (in
    intel-ucode/06-8f-06) at revision 0x2c000170;
  - Addition of 06-8f-06/0x87 (SPR-SP E3) microcode at revision
    0x2b000181;
  - Addition of 06-8f-06/0x10 microcode at revision 0x2c000170;
  - Addition of 06-8f-07/0x87 (SPR-SP E4/S2) microcode (in
    intel-ucode/06-8f-06) at revision 0x2b000181;
  - Addition of 06-8f-08/0x87 (SPR-SP E5/S3) microcode (in
    intel-ucode/06-8f-06) at revision 0x2b000181;
  - Addition of 06-8f-08/0x10 (SPR-HBM B3) microcode (in
    intel-ucode/06-8f-06) at revision 0x2c000170;
  - Addition of 06-8f-04/0x87 (SPR-SP E0/S1) microcode (in
    intel-ucode/06-8f-07) at revision 0x2b000181;
  - Addition of 06-8f-05/0x87 (SPR-SP E2) microcode (in
    intel-ucode/06-8f-07) at revision 0x2b000181;
  - Addition of 06-8f-06/0x87 (SPR-SP E3) microcode (in
    intel-ucode/06-8f-07) at revision 0x2b000181;
  - Addition of 06-8f-07/0x87 (SPR-SP E4/S2) microcode at revision
    0x2b000181;
  - Addition of 06-8f-08/0x87 (SPR-SP E5/S3) microcode (in
    intel-ucode/06-8f-07) at revision 0x2b000181;
  - Addition of 06-8f-04/0x87 (SPR-SP E0/S1) microcode (in
    intel-ucode/06-8f-08) at revision 0x2b000181;
  - Addition of 06-8f-04/0x10 microcode (in intel-ucode/06-8f-08) at
    revision 0x2c000170;
  - Addition of 06-8f-05/0x87 (SPR-SP E2) microcode (in
    intel-ucode/06-8f-08) at revision 0x2b000181;
  - Addition of 06-8f-05/0x10 (SPR-HBM B1) microcode (in
    intel-ucode/06-8f-08) at revision 0x2c000170;
  - Addition of 06-8f-06/0x87 (SPR-SP E3) microcode (in
    intel-ucode/06-8f-08) at revision 0x2b000181;
  - Addition of 06-8f-06/0x10 microcode (in intel-ucode/06-8f-08) at
    revision 0x2c000170;
  - Addition of 06-8f-07/0x87 (SPR-SP E4/S2) microcode (in
    intel-ucode/06-8f-08) at revision 0x2b000181;
  - Addition of 06-8f-08/0x87 (SPR-SP E5/S3) microcode at revision
    0x2b000181;
  - Addition of 06-8f-08/0x10 (SPR-HBM B3) microcode at revision
    0x2c000170;
  - Addition of 06-b7-01/0x32 (RPL-S S0) microcode at revision 0x112;
  - Addition of 06-ba-02/0xc0 microcode at revision 0x410e;
  - Addition of 06-ba-03/0xc0 microcode (in intel-ucode/06-ba-02) at
    revision 0x410e;
  - Addition of 06-ba-02/0xc0 microcode (in intel-ucode/06-ba-03) at
    revision 0x410e;
  - Addition of 06-ba-03/0xc0 microcode at revision 0x410e;
  - Update of 06-8c-01/0x80 (TGL-UP3/UP4 B1) microcode (in
    intel-06-8c-01/intel-ucode/06-8c-01) from revision 0xa4 up to 0xa6;
  - Update of 06-8e-0c/0x94 (AML-Y 4+2 V0, CML-U 4+2 V0, WHL-U V0)
    microcode (in intel-06-8e-9e-0x-dell/intel-ucode/06-8e-0c) from
    revision 0xf0 up to 0xf4;
  - Update of 06-9e-0d/0x22 (CFL-H/S/Xeon E R0) microcode (in
    intel-06-8e-9e-0x-dell/intel-ucode/06-9e-0d) from revision 0xf0 up
    to 0xf4;
  - Update of 06-55-03/0x97 (SKX-SP B1) microcode from revision 0x100015e
    up to 0x1000161;
  - Update of 06-55-06/0xbf (CLX-SP B0) microcode from revision 0x4003302
    up to 0x4003303;
  - Update of 06-55-07/0xbf (CLX-SP/W/X B1/L1) microcode from revision
    0x5003302 up to 0x5003303;
  - Update of 06-55-0b/0xbf (CPX-SP A1) microcode from revision 0x7002501
    up to 0x7002503;
  - Update of 06-6a-06/0x87 (ICX-SP D0) microcode from revision 0xd000375
    up to 0xd000389;
  - Update of 06-7a-01/0x01 (GLK B0) microcode from revision 0x3c up
    to 0x3e;
  - Update of 06-7a-08/0x01 (GLK-R R0) microcode from revision 0x20 up
    to 0x22;
  - Update of 06-7e-05/0x80 (ICL-U/Y D1) microcode from revision 0xb2
    up to 0xb8;
  - Update of 06-8a-01/0x10 (LKF B2/B3) microcode from revision 0x31 up
    to 0x32;
  - Update of 06-8d-01/0xc2 (TGL-H R0) microcode from revision 0x40 up
    to 0x42;
  - Update of 06-96-01/0x01 (EHL B1) microcode from revision 0x16 up
    to 0x17;
  - Update of 06-97-02/0x07 (ADL-HX/S 8+8 C0) microcode from revision
    0x22 up to 0x2c (old pf 0x3);
  - Update of 06-97-05/0x07 (ADL-S 6+0 K0) microcode (in
    intel-ucode/06-97-02) from revision 0x22 up to 0x2c (old pf 0x3);
  - Update of 06-bf-02/0x07 (ADL C0) microcode (in intel-ucode/06-97-02)
    from revision 0x22 up to 0x2c (old pf 0x3);
  - Update of 06-bf-05/0x07 (ADL C0) microcode (in intel-ucode/06-97-02)
    from revision 0x22 up to 0x2c (old pf 0x3);
  - Update of 06-97-02/0x07 (ADL-HX/S 8+8 C0) microcode (in
    intel-ucode/06-97-05) from revision 0x22 up to 0x2c (old pf 0x3);
  - Update of 06-97-05/0x07 (ADL-S 6+0 K0) microcode from revision 0x22
    up to 0x2c (old pf 0x3);
  - Update of 06-bf-02/0x07 (ADL C0) microcode (in intel-ucode/06-97-05)
    from revision 0x22 up to 0x2c (old pf 0x3);
  - Update of 06-bf-05/0x07 (ADL C0) microcode (in intel-ucode/06-97-05)
    from revision 0x22 up to 0x2c (old pf 0x3);
  - Update of 06-9a-03/0x80 (ADL-P 6+8/U 9W L0/R0) microcode from revision
    0x421 up to 0x429;
  - Update of 06-9a-04/0x80 (ADL-P 2+8 R0) microcode (in
    intel-ucode/06-9a-03) from revision 0x421 up to 0x429;
  - Update of 06-9a-03/0x80 (ADL-P 6+8/U 9W L0/R0) microcode (in
    intel-ucode/06-9a-04) from revision 0x421 up to 0x429;
  - Update of 06-9a-04/0x80 (ADL-P 2+8 R0) microcode from revision 0x421
    up to 0x429;
  - Update of 06-9c-00/0x01 (JSL A0/A1) microcode from revision 0x24000023
    up to 0x24000024;
  - Update of 06-a5-02/0x20 (CML-H R1) microcode from revision 0xf0 up
    to 0xf4;
  - Update of 06-a5-03/0x22 (CML-S 6+2 G1) microcode from revision 0xf0
    up to 0xf4;
  - Update of 06-a5-05/0x22 (CML-S 10+2 Q0) microcode from revision 0xf0
    up to 0xf4;
  - Update of 06-a6-00/0x80 (CML-U 6+2 A0) microcode from revision 0xf0
    up to 0xf4;
  - Update of 06-a6-01/0x80 (CML-U 6+2 v2 K1) microcode from revision
    0xf0 up to 0xf4;
  - Update of 06-a7-01/0x02 (RKL-S B0) microcode from revision 0x54 up
    to 0x57;
  - Update of 06-97-02/0x07 (ADL-HX/S 8+8 C0) microcode (in
    intel-ucode/06-bf-02) from revision 0x22 up to 0x2c (old pf 0x3);
  - Update of 06-97-05/0x07 (ADL-S 6+0 K0) microcode (in
    intel-ucode/06-bf-02) from revision 0x22 up to 0x2c (old pf 0x3);
  - Update of 06-bf-02/0x07 (ADL C0) microcode from revision 0x22 up to
    0x2c (old pf 0x3);
  - Update of 06-bf-05/0x07 (ADL C0) microcode (in intel-ucode/06-bf-02)
    from revision 0x22 up to 0x2c (old pf 0x3);
  - Update of 06-97-02/0x07 (ADL-HX/S 8+8 C0) microcode (in
    intel-ucode/06-bf-05) from revision 0x22 up to 0x2c (old pf 0x3);
  - Update of 06-97-05/0x07 (ADL-S 6+0 K0) microcode (in
    intel-ucode/06-bf-05) from revision 0x22 up to 0x2c (old pf 0x3);
  - Update of 06-bf-02/0x07 (ADL C0) microcode (in intel-ucode/06-bf-05)
    from revision 0x22 up to 0x2c (old pf 0x3);
  - Update of 06-bf-05/0x07 (ADL C0) microcode from revision 0x22 up to
    0x2c (old pf 0x3).

* .gitignore: Replace /microcode-20220809.tar.gz entry with
/microcode-20230214.tar.gz.
* codenames.list: Add entries for CPU signatures 606c1 (ICL-D B0),
806f4 (SPR-SP E0/S1), 806f5 (SPR-HBM B1, SPR-SP E2), 806f6 (SPR-SP E3),
806f7 (SPR-SP E4/S2), 806f8 (SPR-HBM B3, SPR-SP E5/S3), b0671 (RPL-S S0),
806a2 (SPR-P 6+8/H 6+8 J0), and 806a3 (SPR-U 2+8 Q0).
* microcode_ctl.spec (intel_ucode_version): Bump to 20230214.
(Release): Reset to 1.
(%changelog): Add a record.
* sources: Replace microcode-20220809.tar.gz record with
microcode-20230214.tar.gz.

Resolves: #2171234
Resolves: #2171259
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
2023-05-22 06:21:31 +02:00
Troy Dawson
e7edfe4932 Bring gating.yaml over from Brew dist-git
Signed-off-by: Troy Dawson <tdawson@redhat.com>
2023-03-10 11:03:54 -08:00
James Antill
46f1e7f348 Import rpm: c8s 2023-02-27 14:22:48 -05:00
CentOS Sources
4f973f3636 Auto sync2gitlab import of microcode_ctl-20220809-2.el8.src.rpm 2023-01-24 14:09:35 +00:00
CentOS Sources
522a307d31 Auto sync2gitlab import of microcode_ctl-20220207-1.20220809.1.el8_6.src.rpm 2022-11-09 04:14:19 +00:00
CentOS Sources
37898ea06b Auto sync2gitlab import of microcode_ctl-20220809-1.el8.src.rpm 2022-09-21 10:12:26 +00:00
CentOS Sources
8388930d64 Auto sync2gitlab import of microcode_ctl-20220510-1.el8.src.rpm 2022-06-23 17:27:41 +00:00
CentOS Sources
5574dff3eb Auto sync2gitlab import of microcode_ctl-20220510-1.el8.src.rpm 2022-06-23 14:48:30 +00:00
CentOS Sources
106aff79b5 Auto sync2gitlab import of microcode_ctl-20220510-1.el8.src.rpm 2022-06-23 08:22:01 +00:00
CentOS Sources
5fe727ef88 Auto sync2gitlab import of microcode_ctl-20220510-1.el8.src.rpm 2022-06-23 02:22:40 +00:00
CentOS Sources
4726084c3c Auto sync2gitlab import of microcode_ctl-20220510-1.el8.src.rpm 2022-06-22 20:22:42 +00:00
CentOS Sources
c9ba0e0b00 Auto sync2gitlab import of microcode_ctl-20220510-1.el8.src.rpm 2022-06-22 14:23:02 +00:00
CentOS Sources
5abf65d14f Auto sync2gitlab import of microcode_ctl-20220510-1.el8.src.rpm 2022-06-22 08:10:34 +00:00
CentOS Sources
8d3d069e05 Auto sync2gitlab import of microcode_ctl-20220510-1.el8.src.rpm 2022-06-22 02:15:18 +00:00
CentOS Sources
572cf11904 Auto sync2gitlab import of microcode_ctl-20220510-1.el8.src.rpm 2022-06-21 17:19:42 +00:00
CentOS Sources
798d046948 Auto sync2gitlab import of microcode_ctl-20220510-1.el8.src.rpm 2022-06-21 07:29:44 +00:00
CentOS Sources
ef318e3c3f Auto sync2gitlab import of microcode_ctl-20220510-1.el8.src.rpm 2022-06-20 23:30:08 +00:00
CentOS Sources
d60b1b199b Auto sync2gitlab import of microcode_ctl-20220510-1.el8.src.rpm 2022-06-20 19:39:43 +00:00
CentOS Sources
d9420908a8 Auto sync2gitlab import of microcode_ctl-20220510-1.el8.src.rpm 2022-06-20 13:42:07 +00:00
CentOS Sources
65b67066df Auto sync2gitlab import of microcode_ctl-20220510-1.el8.src.rpm 2022-06-20 09:46:43 +00:00
CentOS Sources
18eb555cbb Auto sync2gitlab import of microcode_ctl-20220510-1.el8.src.rpm 2022-06-20 01:51:49 +00:00
CentOS Sources
f359d06f4d Auto sync2gitlab import of microcode_ctl-20220510-1.el8.src.rpm 2022-06-19 21:49:41 +00:00
CentOS Sources
e2a4a2ce69 Auto sync2gitlab import of microcode_ctl-20220510-1.el8.src.rpm 2022-06-19 17:51:06 +00:00
CentOS Sources
8ba8877fa5 Auto sync2gitlab import of microcode_ctl-20220510-1.el8.src.rpm 2022-06-19 09:55:39 +00:00
CentOS Sources
19f9d6a4ac Auto sync2gitlab import of microcode_ctl-20220510-1.el8.src.rpm 2022-06-19 05:48:50 +00:00
CentOS Sources
930fd4a928 Auto sync2gitlab import of microcode_ctl-20220510-1.el8.src.rpm 2022-06-18 21:49:51 +00:00
CentOS Sources
7dea4214dd Auto sync2gitlab import of microcode_ctl-20220510-1.el8.src.rpm 2022-06-18 17:46:57 +00:00
CentOS Sources
b3ea00ce3c Auto sync2gitlab import of microcode_ctl-20220510-1.el8.src.rpm 2022-06-18 13:50:36 +00:00
CentOS Sources
28d298480f Auto sync2gitlab import of microcode_ctl-20220510-1.el8.src.rpm 2022-06-18 09:49:07 +00:00
CentOS Sources
6456891b19 Auto sync2gitlab import of microcode_ctl-20220510-1.el8.src.rpm 2022-06-18 05:38:39 +00:00
CentOS Sources
c539cb997f Auto sync2gitlab import of microcode_ctl-20220510-1.el8.src.rpm 2022-06-18 01:38:42 +00:00
CentOS Sources
fd18a6e3c1 Auto sync2gitlab import of microcode_ctl-20220510-1.el8.src.rpm 2022-06-17 21:37:48 +00:00
CentOS Sources
0e44d9a9b1 Auto sync2gitlab import of microcode_ctl-20220510-1.el8.src.rpm 2022-06-17 17:35:57 +00:00
CentOS Sources
79586d2dcb Auto sync2gitlab import of microcode_ctl-20220510-1.el8.src.rpm 2022-06-17 11:28:21 +00:00
CentOS Sources
dcc6163307 Auto sync2gitlab import of microcode_ctl-20220510-1.el8.src.rpm 2022-06-17 05:32:36 +00:00
CentOS Sources
0ce1519c19 Auto sync2gitlab import of microcode_ctl-20220510-1.el8.src.rpm 2022-06-17 02:28:45 +00:00
CentOS Sources
65b449f995 Auto sync2gitlab import of microcode_ctl-20220510-1.el8.src.rpm 2022-06-16 20:28:20 +00:00
CentOS Sources
a4718e8bee Auto sync2gitlab import of microcode_ctl-20220510-1.el8.src.rpm 2022-06-16 17:28:21 +00:00
CentOS Sources
10b8bdf580 Auto sync2gitlab import of microcode_ctl-20220510-1.el8.src.rpm 2022-06-16 13:28:56 +00:00
CentOS Sources
12f2196907 Auto sync2gitlab import of microcode_ctl-20220510-1.el8.src.rpm 2022-06-16 08:21:12 +00:00
CentOS Sources
32681ba457 Auto sync2gitlab import of microcode_ctl-20220510-1.el8.src.rpm 2022-06-16 05:19:20 +00:00
James Antill
1420296594 Initial c8s branch. 2022-05-26 11:23:07 -04:00