Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/keepalived.spec'], chrootPath='/var/lib/mock/dist-ocs23-build-283015-27252/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/keepalived.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/keepalived-2.2.8-5.ocs23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/keepalived.spec'], chrootPath='/var/lib/mock/dist-ocs23-build-283015-27252/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/keepalived.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.LBLZmS + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf keepalived-2.2.8 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/keepalived-2.2.8.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd keepalived-2.2.8 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/CVE-2024-41184.patch + /usr/bin/patch -s --fuzz=0 --no-backup-if-mismatch -f The text leading up to this was: -------------------------- |From f3a32e3557520dccb298b36b4952eff3e236fb86 Mon Sep 17 00:00:00 2001 |From: Quentin Armitage |Date: Fri, 12 Jul 2024 15:11:13 +0100 |Subject: [PATCH 1/5] lib: don't return subtracted addresses for rb_find() | compare function | |If sizeof(int) < sizeof(void *) returning the difference between two |addresses in an int can cause an overflow. | |Use less_equal_greater_than() for comparing addresses. | |Signed-off-by: Quentin Armitage |--- | lib/memory.c | 2 +- | 1 file changed, 1 insertion(+), 1 deletion(-) | |diff --git a/lib/memory.c b/lib/memory.c |index c7217fdd..4b250ac9 100644 |--- a/lib/memory.c |+++ b/lib/memory.c -------------------------- No file to patch. Skipping patch. 1 out of 1 hunk ignored The text leading up to this was: -------------------------- |-- |2.34.1 | | |From e78513fe0ce5d83c226ea2c0bd222f375c2438e7 Mon Sep 17 00:00:00 2001 |From: Quentin Armitage |Date: Fri, 12 Jul 2024 15:16:47 +0100 |Subject: [PATCH 2/5] vrrp: Handle empty ipset names with vrrp_ipsets keyword | |We now handle empty ipset names and return a config error. | |Signed-off-by: Quentin Armitage |--- | keepalived/core/global_parser.c | 40 ++++++++++++++++++--------------- | 1 file changed, 22 insertions(+), 18 deletions(-) | |diff --git a/keepalived/core/global_parser.c b/keepalived/core/global_parser.c |index ed76b5cb..8935e502 100644 |--- a/keepalived/core/global_parser.c |+++ b/keepalived/core/global_parser.c -------------------------- No file to patch. Skipping patch. 6 out of 6 hunks ignored The text leading up to this was: -------------------------- |-- |2.34.1 | | |From 281de3aa8a0990fa3cd694a9addc0bf28953da0b Mon Sep 17 00:00:00 2001 |From: Quentin Armitage |Date: Fri, 12 Jul 2024 15:18:20 +0100 |Subject: [PATCH 3/5] vrrp: handle empty iptables chain names - vrrp_iptables | keyword | |We now return an error if a chain name is empty. | |Signed-off-by: Quentin Armitage |--- | keepalived/core/global_parser.c | 42 ++++++++++++++++++++------------- | 1 file changed, 25 insertions(+), 17 deletions(-) | |diff --git a/keepalived/core/global_parser.c b/keepalived/core/global_parser.c |index 8935e502..3d436e49 100644 |--- a/keepalived/core/global_parser.c |+++ b/keepalived/core/global_parser.c -------------------------- No file to patch. Skipping patch. 3 out of 3 hunks ignored The text leading up to this was: -------------------------- |-- |2.34.1 | | |From 1e5902c4793ac01b810f0faa3b5cf47b41ae95c1 Mon Sep 17 00:00:00 2001 |From: Quentin Armitage |Date: Fri, 12 Jul 2024 15:32:35 +0100 |Subject: [PATCH 4/5] vrrp and ipvs: handle empty nftables chain names | |We now return an error if a chain name is empty. | |Signed-off-by: Quentin Armitage |--- | keepalived/core/global_parser.c | 25 +++++++++++++++---------- | 1 file changed, 15 insertions(+), 10 deletions(-) | |diff --git a/keepalived/core/global_parser.c b/keepalived/core/global_parser.c |index 3d436e49..0a8f53ac 100644 |--- a/keepalived/core/global_parser.c |+++ b/keepalived/core/global_parser.c -------------------------- No file to patch. Skipping patch. 6 out of 6 hunks ignored RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.LBLZmS (%prep) Bad exit status from /var/tmp/rpm-tmp.LBLZmS (%prep) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/keepalived.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 597, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/keepalived.spec