!284 runc:format log instead panic when procError missing payload

From: @zhong-jiawei-1 
Reviewed-by: @zhangsong234 
Signed-off-by: @zhangsong234
This commit is contained in:
openeuler-ci-bot 2024-08-31 03:08:59 +00:00 committed by Gitee
commit 7f39192a63
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 34 additions and 2 deletions

View File

@ -1 +1 @@
b41140eddc29b390cf030de10de67c9878d50ae6
b5df7029488e0b42b65b5df8e23c7bd9e8884099

View File

@ -0,0 +1,25 @@
From 46b7c30e013c15fc254a17e5151f05c99da6def4 Mon Sep 17 00:00:00 2001
From: zhongjiawei <zhongjiawei1@huawei.com>
Date: Fri, 30 Aug 2024 15:55:15 +0800
Subject: [PATCH] runc:format log instead panic when procError missing payload
---
libcontainer/sync.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libcontainer/sync.go b/libcontainer/sync.go
index 25dc286..e6029fd 100644
--- a/libcontainer/sync.go
+++ b/libcontainer/sync.go
@@ -115,7 +115,7 @@ func parseSync(pipe io.Reader, fn func(*syncT) error) error {
return ierr
}
// Programmer error.
- panic("No error following JSON procError payload.")
+ return errors.New("procError missing error payload")
}
if err := fn(&sync); err != nil {
--
2.33.0

View File

@ -3,7 +3,7 @@
Name: runc
Version: 1.1.8
Release: 15
Release: 20
Summary: runc is a CLI tool for spawning and running containers according to the OCI specification.
License: ASL 2.0
@ -54,6 +54,12 @@ install -p -m 755 runc $RPM_BUILD_ROOT/%{_bindir}/runc
%{_bindir}/runc
%changelog
* Fri Aug 30 2024 zhongjiawei<zhongjiawei1@huawei.com> - 1.1.8-20
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:format log instead panic when procError missing payload
* Fri Aug 30 2024 zhongjiawei<zhongjiawei1@huawei.com> - 1.1.8-15
- Type:bugfix
- CVE:NA

View File

@ -39,3 +39,4 @@ patch/0039-runc-fix-CVE-2024-3154.patch
patch/0040-add-loongarch64-seccomp-support.patch
patch/0042-runc-fix-a-data-race.patch
patch/0043-runc-do-not-support-set-umask-through-native.umask.patch
patch/0044-runc-format-log-instead-panic-when-procError-missing.patch