Граф коммитов

112 Коммитов

Автор SHA1 Сообщение Дата
Cameron E Baird e12411cdc5
Kernel upgrade to version 5.15.60.2 (#3564)
* Kernel upgrade to 5.15.60.1 version

* move kernel to 5.15.60.2 source to fix arm builds

* Clean up changelog; add nopatches for CVE-2022-36879, CVE-2022-36946, CVE-2022-2503, CVE-2022-1973

Co-authored-by: CBL-Mariner Servicing Account <cblmargh@microsoft.com>
2022-08-18 10:37:43 -07:00
rlmenge 67b5ba4bf0
kernel: turn on landlock (#3484) 2022-08-04 13:19:38 -07:00
rlmenge d1ad32f19c
kernel: turned on CONFIG_BLK_DEV_ZONED (#3465) 2022-08-03 22:21:56 -07:00
Henry Li c3d05c2d35
remove provides from unsigned grub2 (#3461)
Co-authored-by: Henry Li <lihl@microsoft.com>
2022-07-29 22:26:55 -07:00
CBL-Mariner-Bot 288c17a8db
[AUTOPATCHER] Kernel upgrade to version 5.15.57.1 - branch main - (#3439)
* Kernel upgrade to 5.15.57.1 version

* Update config with build suggestion

* Update config acc to build

Co-authored-by: Neha Agarwal <nehaagarwal@microsoft.com>
2022-07-28 10:27:09 -07:00
Cameron E Baird 4a6e6fb170
Kernel upgrade to version 5.15.55.1 (#3415)
* Kernel upgrade to 5.15.55.1 version

* manually correct kernel config for 5.15.55

* nopatch CVE-2022-2318 CVE-2022-34918

Co-authored-by: CBL-Mariner Servicing Account <cblmargh@microsoft.com>
2022-07-22 16:26:41 -07:00
Henry Li 3c60151ba7
Add cpupower and turbostat to kernel-tools (#3409)
* add cpupower and turbostat to kernel-tools

* update manifest versioning

Co-authored-by: Henry Li <lihl@microsoft.com>
2022-07-21 17:05:03 -07:00
Henry Li 27f25906a2
resolve grub2 CVE (#3393)
Co-authored-by: Henry Li <lihl@microsoft.com>
2022-07-21 16:00:26 -07:00
Henry Li 8e5f41a845
Add second grub efi binary without specifying the prefix directory (#3361)
* staging for now

* update grub2

* add grub pxe binary

* fix mistake in spec

* revert unnecessary changes

* add subpackage and update binary name

* update changes

* Update SPECS-SIGNED/grub2-efi-binary-signed/grub2-efi-binary-signed.spec

Co-authored-by: Christopher Co <35273088+christopherco@users.noreply.github.com>

Co-authored-by: Henry Li <lihl@microsoft.com>
Co-authored-by: Christopher Co <35273088+christopherco@users.noreply.github.com>
2022-07-21 10:44:51 -07:00
eiffel-fl 93253b9c50
kernel config: Add configs needed by eBPF tracers. (#3210)
FTRACE_SYSCALLS was removed in a previous commit.
Sadly, this option is needed by eBPF CO-RE tools which use syscall tracepoints
(sys_enter_* and sys_exec_*).
Without this option, tools like iovisor/bcc/libbpf-tools/execsnoop cannot work
on CBL Mariner.

Also, some standard eBPF tools needs kernel headers to be available, hence
IKHEADERS was set as a module.
Without this option, tools like iovisor/bcc/tools/biolatency.py cannot work.

Fixes: 344c087e52 ("kernel configs to bring down boot time for initrd")
Signed-off-by: Francis Laniel <flaniel@linux.microsoft.com>
2022-07-13 10:56:00 -07:00
Neha Agarwal 94e2c8b8ed
kernel: enable virtio config, add vmlinuz symlink, enable verbose log (#3264)
* add virtio_fs config, remove quiet

* Add other files
2022-06-29 09:46:36 -07:00
Max Brodeur-Urbas 9b57ac6aec
Enabling Vgem driver in kernel (#3227) 2022-06-24 09:11:15 -07:00
Neha Agarwal 238dcba07f
Update kernel to v5.15.48.1 (#3188)
* Update kernel to v5.15.48.1

* Update source signature

* Fix config according to build

* Incorporate comments
2022-06-20 10:05:41 -07:00
Pawel Winogrodzki c982e3b29d
Adding `kpatch` package and updating `kernel.spec` and `kernel-rt.spec`. (#3171) 2022-06-15 13:53:56 -07:00
Cameron E Baird 0423c89595
[main] Update kernel to 5.15.45.1; kernel-rt to 5.15.44.1 (#3144)
* Update kernel to 5.15.45.1; kernel-rt to 5.15.44.1

* update kernel-rt cgmanifest entry

* update kernel configs

* address kernel config changes

* track nopatch; update Source0 in kernel-rt to reflect mariner-2 naming convention for tags
2022-06-15 12:02:53 -07:00
Max Brodeur-Urbas 8e53ebb480
kernel: silencing ptp_kvm failure error (#3122) 2022-06-07 11:05:17 -07:00
Pawel Winogrodzki 413fc8f5f8
Enabling the `LIVEPATCH` option in the kernel config. (#3107) 2022-06-03 17:53:09 -07:00
Minghe Ren 54f8e95cf6
kernel: Remove Smack LSM support from kernel (#3080)
* disable smack kernel config

Co-authored-by: minghe <mingheren@microsoft.com>
2022-06-03 17:20:57 -07:00
Cameron E Baird eb9bb8360b
Update kernel source to 5.15.41.1 to address CVE-2022-28893, CVE-2022-29581 (#3063)
* Nopatch CVE-2020-35501

* Kernel update script --> 5.15.41.1

* correct hashes

* correct kernel-rt signature; don't auto update kernel-rt (we need to check for a patch-version)

* re-fix sig

* Address more cves

* fix kernel-rt cgmanifest entry

* fix dockerfile and update_kernel script tag

* remove tag errors in cgman

* use nifty new cve tool to generate more accurate nopatch
2022-05-26 11:42:59 -07:00
Neha Agarwal 344c087e52
kernel configs to bring down boot time for initrd (#3048)
* change config for boot time

* Remove ring_buffer_allow_swap

* Update release in headers/signed
2022-05-24 11:43:10 -07:00
Neha Agarwal 4984e40369
Change kernel aarch64 config, marketplace image console (#3007)
* fix console, cdrom, mouse, kexec aarch64 config

* Bump up release number

* Fix aarch64 config according to build

* Bump up release in kernel-header

* Update release in kernel-signed, add kernel option for initcall_blacklist

* Add config for crash-on-demand

* Fix order in pkggen_core
2022-05-20 13:58:09 -07:00
Neha Agarwal d44a400958
[main] Update kernel to v5.15.37, fix CVE, enable IFB config (#2996)
* Update kernel to v5.15.37.1, enable IFB module

* Fix kernel source signature

* Add CVE nopatches

* Update signature in toolchain

* Fix config as suggested by build

* Update config_aarch64 to match build

* Fix typo in config-aarch64

* Add changelog for config

* Incorporate comments
2022-05-13 15:35:30 -07:00
Cameron E Baird d97c660004
[main] Update kernel to v5.15.34.1 to address several CVEs (#2789)
* update kernel to 5.15.34.1, clean up nopatches in kernel.spec, address CVEs

* bump kernel-rt config version

* add missed kernel-rt patch

* fix naming convention for kernel source tar to match that used in LSG

* fix toolchain container kernel source link

* correct toolchain kernel source hash

* fix signatures to be correct version of kernel source

* switch to cm2

* fix config hash kernel-rt

* fix usbip

* stop packaging tar creation script in usbip; add update_kernel.sh

* fix usbip again

* nopatch CVE-2022-29156

* clean up update_kernel.sh
2022-04-26 11:17:34 -07:00
Max Brodeur-Urbas 89577230f9
kernel: Removing lockdown cfg from grub envblock (#2793)
* kernel: Removing lockdown cfg from grub envblock

* kernel: updating release number on kernel-signed and kernel-headers
2022-04-22 16:02:12 -07:00
Andrew Phelps 2c27859664
Fix kernel debug build hang (#2720)
* fix kernel debug symbol issue

* update kernel-headers

* update hyperv-daemons and kernel-rt

* fix typo in specs

* remove xerces-c-devel BR from kernel

* exclude debug folder from main kernel package. fix bogus date in changelog

* remove aarch64 exclude workaround. use /usr/lib/debug
2022-04-15 18:03:25 -07:00
Neha Agarwal a8b995a2a6
[main] Update kernel to v5.15.32.1 (#2699)
* kernel: Update to v5.15.32.1

* Add files

* Add kernel-rt update, mana config

* Fix date in changelog
2022-04-11 12:16:54 -07:00
Henry Li b2bf426721
[main] Add kernel support for Dell devices (#2671)
* update kernel to support Dell devices

* update signature

Co-authored-by: Henry Li <lihl@microsoft.com>
2022-04-08 16:08:13 -07:00
rlmenge 9564d3c2c5
[main] kernel: Remove hardcoded cert from kernel config (#2608)
* Remove hardcoded cert from kernel config
2022-03-30 09:24:59 -07:00
Vince Perri 4f44807a20
[main] Add compressed firmware support (#2201)
* Add compressed firmware support

* Update *.signatures.json

* unset CONFIG_FW_LOADER_USER_HELPER_FALLBACK

* Fix version in kernel-headers changelog
2022-03-23 14:20:14 -07:00
Cameron E Baird 23062f91d9
[main] [kernel] [CVEs] Update kernel to v5.15.26.1; Address CVEs (#2436)
* Initial update pass

* blindly accept config changes

* bump to 15.26

* Address CVEs with nopatches

* fix kernel-headers manifests to be cm2

* correct configs

* rebase onto main

* update rt patch

* don't touch config_dxgkrnl

* fix kernel-rt spec

* fix naming mismatch in kernel-rt patch

* address CVE-2022-0847
2022-03-11 12:38:44 -08:00
George Mileka 763575c572
[main] Enable NO_IOMMU kernel flag. (#2385)
* [main] Enable NO_IOMMU kernel flag.

In order to support high data throughput for network connections, user-mode
drivers require direct access to the underlying devices. Such access can be
managed/protected by the IOMMU controller if it is present in the hardware.

For VMs, we may not have IOMMU exposed by the hypervisor. So we must provide
a way for the VFIO module to say that there is no IOMMU but still use VFIO
to keep the software stack the same.

The Mariner kernel today is compiled such that IOMMU is always required for
such user-mode drivers to work. This is a problem for virtual machines where
such requirement cannot be met.

This fix changes the kernel NO_IOMMU compile option such that it is possible
for the root user to choose whether to require IOMMU or not based on their
needs without recompiling the kernel.

The default is that IOMMU is required.

The root user must explicitly disable the IOMMU requirement with the following
command:
/sbin/modprobe vfio enable_unsafe_noiommu_mode=Y

* Enable NO_IOMMU: update version of kernel related spec files.

* Enable NO_IOMMU: update toolkit references.

* Enable NO_IOMMU: update pkggen references.

* Update kernel signature file after merge with main.
2022-03-07 17:33:07 -08:00
Cameron E Baird 0a9b7b6a72
[main] CONFIG_BPF_UNPRIV_DEFAULT_OFF=y (#2352)
* CONFIG_BPF_UNPRIV_DEFAULT_OFF=y

* kernel-rt parity

* release num

* rebase

* correct signatures after rebase
2022-03-04 14:11:21 -08:00
Henry Li 02a3af922d
[main] Re-enable tboot in Mariner and Upgrade tboot to v1.10.2 (#2357)
* save changes to kernel and tboot

* save change

* update kernel signature files

* fix manifests

* fix grub2-efi-binary-signed

* update changelog

* fix licesing

Co-authored-by: Henry Li <lihl@microsoft.com>
2022-03-03 15:24:44 -08:00
chalamalasetty bdd54e5acd
Add usbip kernel configs and user space modules (#2341) 2022-02-25 12:14:46 -08:00
Andrew Phelps 8c6486dbe1
Use _topdir variable in gen-ld-script.sh (#2249)
* use _topdir

* update spec

* use _topdir in other specs

* linting
2022-02-17 17:00:02 -08:00
Cameron E Baird b82585af98
[main] Update kernel to 5.15.18.1; Address several kernel CVES (#2104)
* Address CVES CVE-2010-0309 CVE-2018-1000026 CVE-2018-16880 CVE-2019-3016 CVE-2019-3819 CVE-2019-3887 CVE-2020-25672 CVE-2021-3564 CVE-2021-45095 CVE-2021-45469 CVE-2021-45480

* bump release

* correct nopatch justification

* swap patches to nopatches

* update kernel to 5.15.18.1

* update rt config version

* kernel-rt sig

* handle manifest divergence

* cm1 --> cm2

* remove redundant patch (upstreamed between 15.2 and 15.18)

* condense changelog entries

* finish removing 0002-add-linux-syscall...patch

* finish removing 0002-add-linux...patch

* fix config diff

* combine changelog entries
2022-02-14 09:34:50 -08:00
Christopher Co 977e74007a
grub2: Update to 2.06 and include tftp support (#2174)
* grub2: Update to 2.06 release

* grub2: Add efinet and tftp modules to grub efi binary

Signed-off-by: Chris Co <chrco@microsoft.com>
2022-02-10 11:48:26 -08:00
Christopher Co 8d6824e872
[main] shim: update shim bootloader (#2173)
* [1.0] shim: update shim bootloader (#2157)

* shim: update key used

Our current keys have a 1 year expiration time, and it will expire
shortly. Update the key to one that will expire in 10/13/22. Ultimately
we plan to move to a longer lived CA cert once that is made available.

* shim: Add critical patches

* shim: Update to new signed shim bootloader binary

New shim bootloader contains the renewed Mariner Secure Boot Production
key embedded inside. And this shim binary itself is signed with the MS
UEFI CA.

* grub: bump release number to force re-signing

In order to not regress current users of the grub2-2.06~rc1-7 package,
bump release number which will cause the newer grubx64.efi inside the
grub2-efi-binary-2.06~rc1-8 package to be signed with the updated secure
boot key that matches with the one embedded in the 15.4-2 shim binary.

* License verified

Signed-off-by: Chris Co <chrco@microsoft.com>
2022-02-09 18:35:20 -08:00
Henry Li 23bd9ce397
[main] Enable Intel_SGX Support in Mariner (#2154)
* enable sgx config

* update kernel-hyperv

* save changes

* update a couple packages

* fix spec file check

* fix linting

* update kernel configs

* revert unnecessary kernel config changes

* save changes

* update manifest

Co-authored-by: Henry Li <lihl@microsoft.com>
2022-02-08 22:21:13 -08:00
rlmenge 3398b7ccd8
Add libperf-jvmti.so to tools package (#2075)
As a result of the new install method for msopenjdk (from 40d19ce9b9),
the libperf-jvmti.so is now available and can be added to the tools
package
2022-02-02 16:00:21 -08:00
Dan Mihai 8bf0f7a0f7
Include KDB frontend for kgdb (CONFIG_KGDB_KDB) (#2043)
KDB seems to work easier than KGDB over Hyper-V VM serial ports.

The same kernel command line parameters used to enable KGDB are used
to enable KDB too. All the KDB commands are enabled at compile time, but
the run time availability of these features can be restricted by using the
kdb.cmd_enable command line parameter.

Switching back and forth between KDB to KGDB/gdb mode is also supported
(when debugging a machine where KGDB was working before this change).

Co-authored-by: Daniel Mihai <dmihai@microsoft.com>
2022-01-31 09:43:33 -08:00
Christopher Co 8450dc84b3
kernel: Update Mariner cert in kernel keyring (#1979)
* kernel: Update mariner cert in kernel keyring

* kernel-hyperv: Update mariner cert in kernel keyring

* kernel-headers: Bump to match kernel release number

* kernel-signed: Bump to match kernel release

Signed-off-by: Chris Co <chrco@microsoft.com>
2022-01-23 23:17:35 -08:00
rlmenge e992d0a3c4
[main] kernel: update to 5.15.2.1 (#1932)
* Update to 5.15

* audit: update to 3.0.6

Current audit 3.0 version fails to build because linux/ipx.h header
is no longer part of 5.15 kernel source. audit 3.0.6 has a change to
handle this 5.15 difference.

Co-authored-by: Chris Co <chrco@microsoft.com>
2022-01-19 16:22:09 -08:00
Andrew Phelps 455142ea03
exclude module_info.ld (#1912) 2022-01-13 16:00:28 -08:00
chalamalasetty 7e026da45c
Provides exclude debug build-id to generate aarch64 debuginfo rpm (#1840) 2022-01-04 15:25:59 -08:00
chalamalasetty 2543e9a223
Enable CONFIG_COMPAT kernel configs (#1815) 2021-12-29 12:50:28 -08:00
Pawel Winogrodzki e63dbeefbf
[main] `kernel-signed`: skip copying `ld` scripts from `%prep` phase. (#1779) 2021-12-16 11:23:34 -08:00
rlmenge 34502d0ddc
[dev] kernel: update to 5.10.78.1 (#1640)
* Update kernel 5.10.78.1

* Add patch to fix linux license issue in headers

* address additional CVE

* Move patch for better readability
2021-11-30 13:42:17 -08:00
Thomas Crain 3c5765cdeb
Add python3-perf subpackage to kernel (#1646) 2021-11-22 09:10:57 -08:00
Andrew Phelps d7cb7c78e9
Update toolchain and packages to build with gcc 11.2.0 and glibc 2.34 (#1623)
* update coreutils and texinfo specs

* update coreutils and texinfo in toolchain

* fix patch url

* update binutils to 2.37

* update version in manifests

* update util-linux mpfr mpc gmp

* fix mpfr tarball

* fix gmp

* update cgmanifest.json

* cleanup

* restore binutils patch

* fix gmp and mpfr specs

* update util-linux spec

* fix binutils and util-linux breaks

* update kernel CONFIG_LD_VERSION

* bump kernel release

* remove reference to rpm-define-RPM-LD-FLAGS.patch

* fix gen-ld-script.sh sha256sum

* update gcc spec to 11.2.0

* update kernel configs for gcc

* update cgmanifest

* update gcc to 11.2.0 in raw toolchain

* add patch for gcc texi issue

* update glibc to 2.34

* update manifests for diffutils and glibc

* disable tm_texi patch in toolchain

* fix SIGSTKSZ gcc issue

* patch m4 for glibc 2.34

* update make to 4.3 and diffutils to 3.8

* revert make to 4.2.1 due to operation not permitted error

* fix make and texinfo build issues with glibc 2.34

* dont build zstd in temp toolchain due to gcc build errors

* remove glibc workarounds for fintutils and gzip

* update findutils and gzip

* update gzip and findutils specs

* update gdbm to 1.21

* update elfutils to 1.185 in toolchain. fix manifests

* remove findutils test change

* remove texinfo patch

* fix kernel changelogs

* add patch for cpio extern issue

* restore rpm patch

* fix m4 spec

* fix elfutils and gpgme spec issues

* fix kernel-hyperv changelog

* update kbd and libtirpc to resolve gcc 11.2.0 issues

* fix m4 version in pkggen_core

* fix libtirpc in manifests

* fix nss error

* fix openjdk

* fix aarch64 openjdk8

* fix elfutils spec

* GODEBUG=netdns=go

* verbose rpm query

* fix coreutils on aarch64. use rpm 1.14.2.1 in raw toolchain. revert rpm.go

* bump cpio release

* revert rpm.go change

* cleanup toolchain scripts and specs. parallel make for glibc

* enable fortran

* remove aarch64 ld-2.27.so link

* add gfortran to toolchain manifests

* fix binutils changelog

* fix kernel release version

* update bison grep sed tar

* add glibc pthread patch

* upgrade file gawk and xz. fix sed and grep spec issues

* set -fcommon

* revert file to 5.34

* fix temp gawk version

* fix xz man1 files

* update libgpg-error to 1.43

* add ld-linux-aarch64.so.1 to glibc spec

* use /lib/ld-linux-aarch64.so.1

* update file 5.40 and bzip2 1.0.8 in toolchain. openjdk8 remove -fcommon.

* update to perl 5.32.0 in toolchain

* fix glibc aarch64 exclude. add shadow-utils provides. fix perl src filename

* fix efivar build. upgrade dtc

* Removing 'ctags'.

* Updating 'libacvp' to version 1.4.1.

* Updating 'nlohmann-json' to version 3.10.4.

* Updating 'dhcp.spec' CFLAGS to include CBL-Mariner's defaults.

* update and fix ipxe build. remove perl debuginfo.

* add fixes for autofs and libcomps

* Adjusting build steps for 'dhcp' and 'nlohmann-json'.

* fix rocksdb

* fix ntp

* fix libcomps url in cgmanifest. revert perl change

* fix nfs-utils

* fix azure-iot-sdk-c

* Remove 'tboot'.

* fix qemu-kvm

* update R and ant

* Updating 'libiothsm-std' to version 1.2.5.

* Linting.

* Remove tcp_wrappers  package

* fix syslinux

* Downgrading 'libiothsm-std' to 1.1.8.

* fix fuse. fix libcomps url

* Downgrading 'libacvp' to 1.3.0.

* Applying GCC 11 patch.

* fix fuse configure.ac issue

* Fixing 'libiothsm-std' build.

* Upgrade lldpad to 1.1.0

* Upgrade gdb to 11.1

* Upgrade catch to 2.13.7

* fixup! Upgrade gdb to 11.1

* fixup! Upgrade lldpad to 1.1.0

* remove bazel

* Updating 'toml11' to version 3.7.0.

* update cgmanifest for catch gdb lldpad

* fix qt5-qtbase

* fix device-mapper-multipath

* fix syslinux

* fix grpc

* fix kernel configs

* fix kernel-hyperv config

* increase heap size for ant

* update lttng-consume

* fix auoms

* update valgrind. fix arm64 gdb issue

* update arm64 kernel config

* fix blobfuse

* update and fix azure-iotedge

* fix grpc 1.41.1 in cgmanifest

* fix kernel and kernel-hyperv PTHREAD_STACK_MIN issue

* remove ant ant-contrib jna R

* Updating 'azure-iotedge' sources creation instructions.

* add back ant ant-contrib bazel jna R

* restrict jdk8 packages

* verify licenses

* only build conda picosat python-pycosat on arm64. fix cgmanifest

* update openjdk8 to version 1.8.0.302

* fix cgmanifest for ant and R

* always build ant

* update licenses. remove tdnf workaround. bump shadow-utils release

* update LICENSES-MAP.md to remove tboot ctags tcp_wrappers. bump libavcp release

* fix ant builds only on arm64

* Clarifying license for 'ntp'.

* Verifying license for 'ant-contrib'.

* Verifying more specs.

* revert libabcvp CFLAGS changes

* add kernel patch file

* set -fcommon to fix libacvp build

* fix python-filelock

* revert tdnf line change

Co-authored-by: CBL-Mariner Service Account <cblmargh@microsoft.com>
Co-authored-by: Pawel Winogrodzki <pawel.winogrodzki@microsoft.com>
Co-authored-by: Pawel Winogrodzki <pawelwi@microsoft.com>
Co-authored-by: Thomas Crain <thcrain@microsoft.com>
2021-11-17 21:41:55 -08:00