Skip to content

Commit

Permalink
Disable CONFIG_GCC_PLUGIN_RANDSTRUCT and enable CONFIG_SCSI_SMARTPQI (#…
Browse files Browse the repository at this point in the history
…661)

* Remove RANDSTRUCT and add SCSI_SMARTPQI configs

There is an issue where CONFIG_GCC_PLUGIN_RANDSTRUCT causes our
vmcore files to be unparseable. Disable config for now.

Enable CONFIG_SCSI_SMARTPQI so Mariner works on platforms with
the smartpqi storage.

Signed-off-by: Chris Co <[email protected]>

* Bump kernel release number

Signed-off-by: Chris Co <[email protected]>

* Add CONFIG_DEBUG_INFO_BTF not set

New config option required to pass our config checker.

Signed-off-by: Chris Co <[email protected]>
  • Loading branch information
christopherco authored Feb 24, 2021
1 parent c960793 commit bdf678d
Show file tree
Hide file tree
Showing 14 changed files with 35 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Summary: Signed Linux Kernel for aarch64 systems
Name: kernel-signed-aarch64
Version: 5.4.91
Release: 5%{?dist}
Release: 6%{?dist}
License: GPLv2
Vendor: Microsoft Corporation
Distribution: Mariner
Expand Down Expand Up @@ -82,6 +82,9 @@ ln -sf linux-%{uname_r}.cfg /boot/mariner.cfg
%config %{_localstatedir}/lib/initramfs/kernel/%{uname_r}

%changelog
* Tue Feb 23 2021 Chris Co <[email protected]> - 5.4.91-6
- Update to match kernel spec 5.4.91-6

* Tue Feb 16 2021 Nicolas Ontiveros <[email protected]> - 5.4.91-5
- Update to kernel release 5.4.91-5.

Expand Down
5 changes: 4 additions & 1 deletion SPECS-SIGNED/kernel-signed-x64/kernel-signed-x64.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Summary: Signed Linux Kernel for x86_64 systems
Name: kernel-signed-x64
Version: 5.4.91
Release: 5%{?dist}
Release: 6%{?dist}
License: GPLv2
Vendor: Microsoft Corporation
Distribution: Mariner
Expand Down Expand Up @@ -82,6 +82,9 @@ ln -sf linux-%{uname_r}.cfg /boot/mariner.cfg
%config %{_localstatedir}/lib/initramfs/kernel/%{uname_r}

%changelog
* Tue Feb 23 2021 Chris Co <[email protected]> - 5.4.91-6
- Update to match kernel spec 5.4.91-6

* Tue Feb 16 2021 Nicolas Ontiveros <[email protected]> - 5.4.91-5
- Update to kernel release 5.4.91-5.

Expand Down
5 changes: 4 additions & 1 deletion SPECS/kernel-headers/kernel-headers.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Summary: Linux API header files
Name: kernel-headers
Version: 5.4.91
Release: 5%{?dist}
Release: 6%{?dist}
License: GPLv2
Vendor: Microsoft Corporation
Distribution: Mariner
Expand Down Expand Up @@ -34,6 +34,9 @@ cp -rv usr/include/* /%{buildroot}%{_includedir}
%{_includedir}/*

%changelog
* Tue Feb 23 2021 Chris Co <[email protected]> - 5.4.91-6
- Update to match kernel spec 5.4.91-6

* Tue Feb 16 2021 Nicolas Ontiveros <[email protected]> - 5.4.91-5
- Update to kernel release 5.4.91-5

Expand Down
4 changes: 2 additions & 2 deletions SPECS/kernel-hyperv/config
Original file line number Diff line number Diff line change
Expand Up @@ -699,8 +699,7 @@ CONFIG_HAVE_GCC_PLUGINS=y
CONFIG_GCC_PLUGINS=y
# CONFIG_GCC_PLUGIN_CYC_COMPLEXITY is not set
CONFIG_GCC_PLUGIN_LATENT_ENTROPY=y
CONFIG_GCC_PLUGIN_RANDSTRUCT=y
# CONFIG_GCC_PLUGIN_RANDSTRUCT_PERFORMANCE is not set
# CONFIG_GCC_PLUGIN_RANDSTRUCT is not set
# end of General architecture-dependent options

CONFIG_RT_MUTEXES=y
Expand Down Expand Up @@ -4193,6 +4192,7 @@ CONFIG_DEBUG_INFO=y
# CONFIG_DEBUG_INFO_REDUCED is not set
# CONFIG_DEBUG_INFO_SPLIT is not set
# CONFIG_DEBUG_INFO_DWARF4 is not set
# CONFIG_DEBUG_INFO_BTF is not set
# CONFIG_GDB_SCRIPTS is not set
CONFIG_ENABLE_MUST_CHECK=y
CONFIG_FRAME_WARN=2048
Expand Down
2 changes: 1 addition & 1 deletion SPECS/kernel-hyperv/kernel-hyperv.signatures.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"Signatures": {
"config": "fd91efcaa152b1e29cf3d73d04e6f1532543802612cef443b3ab1bc58b3731be",
"config": "7dfdd7cd85283d7f9dc7c69502a6ec8092db9aeab7ab7be3880cdf9fc692e5cb",
"linux-msft-5.4.91.tar.gz": "5f36254d8e78d0a17b7103df4a37d706b6f24a7cc343c938a8b6453e4137c97c",
"sha512hmac-openssl.sh": "02ab91329c4be09ee66d759e4d23ac875037c3b56e5a598e32fd1206da06a27f"
}
Expand Down
5 changes: 4 additions & 1 deletion SPECS/kernel-hyperv/kernel-hyperv.spec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Summary: Linux Kernel optimized for Hyper-V
Name: kernel-hyperv
Version: 5.4.91
Release: 4%{?dist}
Release: 5%{?dist}
License: GPLv2
Vendor: Microsoft Corporation
Distribution: Mariner
Expand Down Expand Up @@ -272,6 +272,9 @@ ln -sf linux-%{uname_r}.cfg /boot/mariner.cfg
%{_libdir}/perf/include/bpf/*

%changelog
* Tue Feb 23 2021 Chris Co <[email protected]> - 5.4.91-5
- Remove CONFIG_GCC_PLUGIN_RANDSTRUCT

* Thu Feb 11 2021 Nicolas Ontiveros <[email protected]> - 5.4.91-4
- Add configs to enable tcrypt in FIPS mode

Expand Down
6 changes: 3 additions & 3 deletions SPECS/kernel/config
Original file line number Diff line number Diff line change
Expand Up @@ -787,8 +787,7 @@ CONFIG_HAVE_GCC_PLUGINS=y
CONFIG_GCC_PLUGINS=y
# CONFIG_GCC_PLUGIN_CYC_COMPLEXITY is not set
CONFIG_GCC_PLUGIN_LATENT_ENTROPY=y
CONFIG_GCC_PLUGIN_RANDSTRUCT=y
# CONFIG_GCC_PLUGIN_RANDSTRUCT_PERFORMANCE is not set
# CONFIG_GCC_PLUGIN_RANDSTRUCT is not set
# end of General architecture-dependent options

CONFIG_RT_MUTEXES=y
Expand Down Expand Up @@ -2056,7 +2055,7 @@ CONFIG_SCSI_MPT3SAS=y
CONFIG_SCSI_MPT2SAS_MAX_SGE=128
CONFIG_SCSI_MPT3SAS_MAX_SGE=128
CONFIG_SCSI_MPT2SAS=y
# CONFIG_SCSI_SMARTPQI is not set
CONFIG_SCSI_SMARTPQI=y
CONFIG_SCSI_UFSHCD=m
CONFIG_SCSI_UFSHCD_PCI=m
# CONFIG_SCSI_UFS_DWC_TC_PCI is not set
Expand Down Expand Up @@ -6471,6 +6470,7 @@ CONFIG_DEBUG_INFO=y
# CONFIG_DEBUG_INFO_REDUCED is not set
# CONFIG_DEBUG_INFO_SPLIT is not set
# CONFIG_DEBUG_INFO_DWARF4 is not set
# CONFIG_DEBUG_INFO_BTF is not set
# CONFIG_GDB_SCRIPTS is not set
CONFIG_ENABLE_MUST_CHECK=y
CONFIG_FRAME_WARN=2048
Expand Down
4 changes: 2 additions & 2 deletions SPECS/kernel/config_aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -798,8 +798,7 @@ CONFIG_HAVE_GCC_PLUGINS=y
CONFIG_GCC_PLUGINS=y
# CONFIG_GCC_PLUGIN_CYC_COMPLEXITY is not set
CONFIG_GCC_PLUGIN_LATENT_ENTROPY=y
CONFIG_GCC_PLUGIN_RANDSTRUCT=y
# CONFIG_GCC_PLUGIN_RANDSTRUCT_PERFORMANCE is not set
# CONFIG_GCC_PLUGIN_RANDSTRUCT is not set
# end of General architecture-dependent options

CONFIG_RT_MUTEXES=y
Expand Down Expand Up @@ -8346,6 +8345,7 @@ CONFIG_DEBUG_INFO=y
# CONFIG_DEBUG_INFO_REDUCED is not set
# CONFIG_DEBUG_INFO_SPLIT is not set
# CONFIG_DEBUG_INFO_DWARF4 is not set
# CONFIG_DEBUG_INFO_BTF is not set
# CONFIG_GDB_SCRIPTS is not set
CONFIG_ENABLE_MUST_CHECK=y
CONFIG_FRAME_WARN=2048
Expand Down
4 changes: 2 additions & 2 deletions SPECS/kernel/kernel.signatures.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"Signatures": {
"config": "0617508be96d515187cb63f65f073dc3d391fab22e3ba619f0510be6dbd6e5bf",
"config_aarch64": "189730a7759833ce6815e867986473b183dfbe339d42025fa6ca2c776370c38e",
"config": "2020db9b7b3c39f855ae18b906c3a41e7733b428bfd27a3d2af32849583c32ec",
"config_aarch64": "bff0d16dda6c2345f042dcd2671a51b4eaf83b17b8f737aa279665c355d830c3",
"linux-msft-5.4.91.tar.gz": "5f36254d8e78d0a17b7103df4a37d706b6f24a7cc343c938a8b6453e4137c97c",
"sha512hmac-openssl.sh": "02ab91329c4be09ee66d759e4d23ac875037c3b56e5a598e32fd1206da06a27f"
}
Expand Down
6 changes: 5 additions & 1 deletion SPECS/kernel/kernel.spec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Summary: Linux Kernel
Name: kernel
Version: 5.4.91
Release: 5%{?dist}
Release: 6%{?dist}
License: GPLv2
Vendor: Microsoft Corporation
Distribution: Mariner
Expand Down Expand Up @@ -459,6 +459,10 @@ ln -sf linux-%{uname_r}.cfg /boot/mariner.cfg
%endif

%changelog
* Tue Feb 23 2021 Chris Co <[email protected]> - 5.4.91-6
- Remove CONFIG_GCC_PLUGIN_RANDSTRUCT
- Add CONFIG_SCSI_SMARTPQI=y

* Thu Feb 11 2021 Nicolas Ontiveros <[email protected]> - 5.4.91-5
- Add configs to enable tcrypt in FIPS mode

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
filesystem-1.1-7.cm1.aarch64.rpm
kernel-headers-5.4.91-5.cm1.noarch.rpm
kernel-headers-5.4.91-6.cm1.noarch.rpm
glibc-2.28-17.cm1.aarch64.rpm
glibc-devel-2.28-17.cm1.aarch64.rpm
glibc-i18n-2.28-17.cm1.aarch64.rpm
Expand Down
2 changes: 1 addition & 1 deletion toolkit/resources/manifests/package/pkggen_core_x86_64.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
filesystem-1.1-7.cm1.x86_64.rpm
kernel-headers-5.4.91-5.cm1.noarch.rpm
kernel-headers-5.4.91-6.cm1.noarch.rpm
glibc-2.28-17.cm1.x86_64.rpm
glibc-devel-2.28-17.cm1.x86_64.rpm
glibc-i18n-2.28-17.cm1.x86_64.rpm
Expand Down
2 changes: 1 addition & 1 deletion toolkit/resources/manifests/package/toolchain_aarch64.txt
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ json-c-debuginfo-0.14-3.cm1.aarch64.rpm
json-c-devel-0.14-3.cm1.aarch64.rpm
kbd-2.0.4-5.cm1.aarch64.rpm
kbd-debuginfo-2.0.4-5.cm1.aarch64.rpm
kernel-headers-5.4.91-5.cm1.noarch.rpm
kernel-headers-5.4.91-6.cm1.noarch.rpm
kmod-25-4.cm1.aarch64.rpm
kmod-debuginfo-25-4.cm1.aarch64.rpm
kmod-devel-25-4.cm1.aarch64.rpm
Expand Down
2 changes: 1 addition & 1 deletion toolkit/resources/manifests/package/toolchain_x86_64.txt
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ json-c-debuginfo-0.14-3.cm1.x86_64.rpm
json-c-devel-0.14-3.cm1.x86_64.rpm
kbd-2.0.4-5.cm1.x86_64.rpm
kbd-debuginfo-2.0.4-5.cm1.x86_64.rpm
kernel-headers-5.4.91-5.cm1.noarch.rpm
kernel-headers-5.4.91-6.cm1.noarch.rpm
kmod-25-4.cm1.x86_64.rpm
kmod-debuginfo-25-4.cm1.x86_64.rpm
kmod-devel-25-4.cm1.x86_64.rpm
Expand Down

0 comments on commit bdf678d

Please sign in to comment.