Skip to content

Conversation

PlaidCat
Copy link
Collaborator

This is a Kernel Rebuild request, currently the code for this is internal to CIQ, however over the next quarter we do plan to make it publically available.

General Process:

Contains the following: http://dl.rockylinux.org/vault/rocky/9.5/BaseOS/source/tree/Packages/k/

  • 5.14.0-503.23.2.el9_5
[maple@r9-sigcloud-builder kernel-src-tree]$ ../kernel-src-tree-tools/kernel_build.sh
/mnt/code/kernel-src-tree
no .config file found, moving on
[TIMER]{MRPROPER}: 0s
x86_64 architecture detected, copying config
'configs/kernel-x86_64-rhel.config' -> '.config'
Setting Local Version for build
CONFIG_LOCALVERSION="-rocky9_5_rebuild"
Making olddefconfig
#
# configuration written to .config
#
Starting Build
  SYNC    include/config/auto.conf.cmd
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_32.h
  SYSHDR  arch/x86/include/generated/uapi/asm/unistd_64.h

[SNIP]

  BTF [M] sound/x86/snd-hdmi-lpe-audio.ko
  BTF [M] sound/virtio/virtio_snd.ko
  BTF [M] sound/xen/snd_xen_front.ko
[TIMER]{BUILD}: 1652s
Making Modules
  INSTALL /lib/modules/5.14.0-rocky9_5_rebuild/kernel/arch/x86/crypto/blake2s-x86_64.ko
  STRIP   /lib/modules/5.14.0-rocky9_5_rebuild/kernel/arch/x86/crypto/blake2s-x86_64.ko
  SIGN    /lib/modules/5.14.0-rocky9_5_rebuild/kernel/arch/x86/crypto/blake2s-x86_64.ko

[SNIP]

  STRIP   /lib/modules/5.14.0-rocky9_5_rebuild/kernel/sound/xen/snd_xen_front.ko
  SIGN    /lib/modules/5.14.0-rocky9_5_rebuild/kernel/sound/xen/snd_xen_front.ko
  DEPMOD  /lib/modules/5.14.0-rocky9_5_rebuild
[TIMER]{MODULES}: 45s
Making Install
sh ./arch/x86/boot/install.sh 5.14.0-rocky9_5_rebuild \
	arch/x86/boot/bzImage System.map "/boot"
[TIMER]{INSTALL}: 41s
Checking kABI
kABI check passed
Setting Default Kernel to /boot/vmlinuz-5.14.0-rocky9_5_rebuild and Index to 2
The default is /boot/loader/entries/5f4984d84cf142b0a63e3f9ee00ee68e-5.14.0-rocky9_5_rebuild.conf with index 2 and kernel /boot/vmlinuz-5.14.0-rocky9_5_rebuild
The default is /boot/loader/entries/5f4984d84cf142b0a63e3f9ee00ee68e-5.14.0-rocky9_5_rebuild.conf with index 2 and kernel /boot/vmlinuz-5.14.0-rocky9_5_rebuild
Generating grub configuration file ...
Adding boot menu entry for UEFI Firmware Settings ...
done
Hopefully Grub2.0 took everything ... rebooting after time metrices
[TIMER]{MRPROPER}: 0s
[TIMER]{BUILD}: 1652s
[TIMER]{MODULES}: 45s
[TIMER]{INSTALL}: 41s
[TIMER]{TOTAL} 1742s
Rebooting in 10 seconds
[maple@r9-sigcloud-builder kernel-src-tree]$ Connection to 192.168.122.147 closed by remote host.
Connection to 192.168.122.147 closed.
[jmaple@devbox code]$ ssh -i ~/.ssh/libvirt_test maple@192.168.122.147
Last login: Thu Feb 13 20:57:00 2025 from 192.168.122.1

UNAME

[maple@r9-sigcloud-builder ~]$ uname -a
Linux r9-sigcloud-builder 5.14.0-rocky9_5_rebuild #1 SMP PREEMPT_DYNAMIC Thu Feb 13 20:58:03 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

Basic Test that it doesn't implode

[maple@r9-sigcloud-builder code]$ ./run_kerselftests.sh 2
Starting Test Loop 1
Test Loop 1 Done
Starting Test Loop 2
Test Loop 2 Done

…parse_format

jira LE-2348
cve CVE-2024-53104
Rebuild_History Non-Buildable kernel-5.14.0-503.23.2.el9_5
commit-author Benoit Sevens <bsevens@google.com>
commit ecf2b43

This can lead to out of bounds writes since frames of this type were not
taken into account when calculating the size of the frames buffer in
uvc_parse_streaming.

Fixes: c0efd23 ("V4L/DVB (8145a): USB Video Class driver")
	Signed-off-by: Benoit Sevens <bsevens@google.com>
	Cc: stable@vger.kernel.org
	Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
	Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
	Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
(cherry picked from commit ecf2b43)
	Signed-off-by: Jonathan Maple <jmaple@ciq.com>
Rebuild_History BUILDABLE
Rebuilding Kernel from rpm changelog with Fuzz Limit: 87.50%
Number of commits in upstream range v5.14~1..master: 280817
Number of commits in rpm: 3
Number of commits matched with upstream: 1 (33.33%)
Number of commits in upstream but not in rpm: 280816
Number of commits NOT found in upstream: 2 (66.67%)

Rebuilding Kernel on Branch rocky9_5_rebuild_kernel-5.14.0-503.23.2.el9_5 for kernel-5.14.0-503.23.2.el9_5
Clean Cherry Picks: 1 (100.00%)
Empty Cherry Picks: 0 (0.00%)
_______________________________

Full Details Located here:
ciq/ciq_backports/kernel-5.14.0-503.23.2.el9_5/rebuild.details.txt

Includes:
* git commit header above
* Empty Commits with upstream SHA
* RPM ChangeLog Entries that could not be matched

Individual Empty Commit failures contained in the same containing directory.
The git message for empty commits will have the path for the failed commit.
File names are the first 8 characters of the upstream SHA
Copy link

@gvrose8192 gvrose8192 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Copy link
Collaborator

@bmastbergen bmastbergen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥌

@PlaidCat PlaidCat merged commit 97e08c0 into rocky9_5 Feb 18, 2025
4 checks passed
@PlaidCat PlaidCat deleted the rocky9_5_rebuild branch February 18, 2025 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants