Merge blocked
Welcome To openEuler Community
Hey @xiaoo_robot , thanks for your contribution to the community.
Bot Usage Manual
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands. You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
Contact Guide
If you have any questions, please contact the SIG: Networking ,
and any of the maintainers: @Apricity_HW, @MrRlu, @robert-xingwang, @sunsuwan ,
and any of the committers: @jiangheng12138, @zhongxuan2 .


当前仓库存在以下 保护分支 :
| Protected Branch | Version | Release |
|---|---|---|
| master | 1.3.7 | 2 |
| openEuler-24.03-LTS-SP1 | 1.3.4 | 5 |
| openEuler-24.03-LTS-SP3 | 1.3.4 | 5 |
| openEuler-24.03-LTS-SP4 | 1.3.4 | 5 |
| openEuler-24.03-LTS-Next | 1.3.4 | 5 |
| openEuler-26.09 | 1.3.7 | 1 |
| openEuler-26.09-DevStation | 1.3.7 | 1 |
| openEuler-22.03-LTS-SP4 | 1.3.2 | 5 |
| openEuler-20.03-LTS-SP4 | 1.2.6 | 5 |
| openEuler1.0-base | 1.1.4 | 1 |
| openEuler1.0 | 1.1.4 | 1 |
评论 /sync <branch1> <branch2> ... 可将当前 PR 修改同步到其它分支(创建同步 PR):
a) 如果当前 PR 是 Open 状态,同步操作将延迟到 PR 被合并时执行
b) 如果当前 PR 已经 Merged,将立即执行同步操作
注意:
- /sync 命令可以指定同步到多个分支,仅最后一个 /sync 命令生效
- 如果创建的同步 PR 不正确,可通过向同步 PR 的源分支提交轻量级 PR 完善,或使用 /close 命令关闭


适配冲突说明
backport-CVE-2026-85977.patch
适配说明
- 原补丁 9 个 hunk 中 3 个因上游基线(ccc1acf)与 openEuler 24.03-LTS-Next libtirpc-1.3.4 基线的局部代码差异无法直接应用(git apply --check 逐 hunk 验证),全部为纯上下文行适配,核心 +/- 变更行逐字节保留:hunk02(src/pmap_prot2.c xdr_pmaplist 声明区)——上游上下文为 `struct pmaplist *next = NULL
+struct pmaplist *next_copy(上游后续提交的 next_copy 重构),目标基线为struct pmaplist **next= NULL - /* pacify gcc */`(二级指针、无 next_copy),仅替换 3 行尾随上下文并将 hunk 头由 -87,7 +89,7 调整为 -89,7 +91,7
- hunk04(src/rpcb_prot.c:89)——上游 ANSI 风格跨行函数定义
xdr_rpcblist_ptr(+XDR *xdrs,与目标 K&R 风格xdr_rpcblist_ptr(xdrs, rp)+ `XDR *xdrs- ` 不匹配,仅替换 2 行尾随上下文
- hunk07(src/rpcb_prot.c:178)——同 hunk04 的 ANSI→K&R 差异(
xdr_rpcb_entry_list_ptr(xdrs, rp))- 其余 6 个 hunk(01/03/05/06/08/09)核心变更行原样保留(hunk03 行号 102/104→103/105 属白名单内偏移,为 git diff 真实行号)
- 无 API 替换、无常量内联、无签名/继承/结构变更
- XDR_DECODE 符号已验证存在于 tirpc/rpc/xdr.h:85
- 适配后补丁已真实应用到 source_dir(git apply + commit 923b2a0,baseline 53ebdfd),git diff HEAD~1 --stat 确认 baseline 变化:2 files changed, 24 insertions(+), 1 deletion(-),与原补丁统计一致
完整代码 diff(原补丁 → 适配补丁)
src/pmap_prot2.c
--- 原补丁/src/pmap_prot2.c
+++ 适配补丁/src/pmap_prot2.c
@@ -7,16 +7,16 @@
/*
* What is going on with linked lists? (!)
-@@ -87,7 +89,7 @@ xdr_pmaplist(XDR *xdrs, struct pmaplist **rp)
+@@ -89,7 +91,7 @@ xdr_pmaplist(xdrs, rp)
* xdr_bool when the direction is XDR_DECODE.
*/
bool_t more_elements;
- int freeing;
+ int freeing, node_count = 0;
- struct pmaplist *next = NULL;
- struct pmaplist *next_copy;
+ struct pmaplist **next = NULL; /* pacify gcc */
-@@ -102,6 +104,11 @@ xdr_pmaplist(XDR *xdrs, struct pmaplist **rp)
+ assert(xdrs != NULL);
+@@ -103,6 +105,11 @@ xdr_pmaplist(xdrs, rp)
return (FALSE);
if (! more_elements)
return (TRUE); /* we are done */
src/rpcb_prot.c
--- 原补丁/src/rpcb_prot.c
+++ 适配补丁/src/rpcb_prot.c
@@ -1,4 +1,4 @@
-@@ -89,6 +89,9 @@ xdr_rpcb(
+@@ -89,6 +89,9 @@ xdr_rpcb(xdrs, objp)
* serialize the rpcb elements.
*/
@@ -6,9 +6,9 @@
+#define RPCBLIST_DECODE_MAX_NODES 1024
+
bool_t
- xdr_rpcblist_ptr(
- XDR *xdrs,
-@@ -101,6 +104,7 @@ xdr_rpcblist_ptr(
+ xdr_rpcblist_ptr(xdrs, rp)
+ XDR *xdrs;
+@@ -101,6 +104,7 @@ xdr_rpcblist_ptr(xdrs, rp)
*/
bool_t more_elements;
int freeing = (xdrs->x_op == XDR_FREE);
@@ -16,7 +16,7 @@
rpcblist_ptr next;
rpcblist_ptr next_copy;
-@@ -113,6 +117,10 @@ xdr_rpcblist_ptr(
+@@ -113,6 +117,10 @@ xdr_rpcblist_ptr(xdrs, rp)
if (! more_elements) {
return (TRUE); /* we are done */
}
@@ -27,7 +27,7 @@
/*
* the unfortunate side effect of non-recursion is that in
* the case of freeing we must remember the next object
-@@ -178,6 +186,9 @@ xdr_rpcb_entry(
+@@ -178,6 +186,9 @@ xdr_rpcb_entry(xdrs, objp)
return (TRUE);
}
@@ -35,9 +35,9 @@
+#define RPCB_ENTRY_LIST_DECODE_MAX_NODES 1024
+
bool_t
- xdr_rpcb_entry_list_ptr(
- XDR *xdrs,
-@@ -190,6 +201,7 @@ xdr_rpcb_entry_list_ptr(
+ xdr_rpcb_entry_list_ptr(xdrs, rp)
+ XDR *xdrs;
+@@ -190,6 +201,7 @@ xdr_rpcb_entry_list_ptr(xdrs, rp)
*/
bool_t more_elements;
int freeing = (xdrs->x_op == XDR_FREE);
@@ -45,7 +45,7 @@
rpcb_entry_list_ptr next;
rpcb_entry_list_ptr next_copy;
-@@ -202,6 +214,10 @@ xdr_rpcb_entry_list_ptr(
+@@ -202,6 +214,10 @@ xdr_rpcb_entry_list_ptr(xdrs, rp)
if (! more_elements) {
return (TRUE); /* we are done */
}


门禁正在运行, 您可以通过以下链接查看实时门禁检查结果.
若您对门禁结果含义不清晰或者遇到问题不知如何解决,可参考门禁指导手册
门禁入口及编码规范检查: multiarch/src-openeuler/trigger/libtirpc/19


x86_64架构构建及构建后检查:multiarch/src-openeuler/x86-64/libtirpc/19


aarch64架构构建及构建后检查:multiarch/src-openeuler/aarch64/libtirpc/19


| Check Name | Build Result | 详情 | Build Details | |
|---|---|---|---|---|
| check_binary_file | ✅SUCCESS | #19 | ||
| check_lfsconfig | ☑EXCLUDE | |||
| check_package_yaml_file | ✅SUCCESS | |||
| check_repo_in_maintain | ✅SUCCESS | |||
| check_consistency | ✅SUCCESS | |||
| check_spec_file | ✅SUCCESS | |||
| x86_64 | check_build | ✅SUCCESS | #19 | |
| check_install | ✅SUCCESS | |||
| check_license | ✅SUCCESS | |||
| aarch64 | check_build | ✅SUCCESS | #19 | |
| check_install | ✅SUCCESS | |||
| check_license | ✅SUCCESS | |||


如下为接口变更检查结果,目标分支为openEuler-24.03-LTS-Next,请PR提交者check差异信息
| Arch Name | Check Items | Rpm Name | Check Result | Build Details |
|---|---|---|---|---|
| compare_package(x86_64) | add_rpms | ✅SUCCESS | #19 | |
| delete_rpms | ✅SUCCESS | |||
| rpm_abi | ✅SUCCESS | |||
| rpm_files | ✅SUCCESS | |||
| rpm_header | ✅SUCCESS | |||
| rpm_lib | ✅SUCCESS | |||
| rpm_provides | ✅SUCCESS | |||
| rpm_requires | ✅SUCCESS | |||
| rpm_symbol | ✅SUCCESS | |||
| compare_package(aarch64) | add_rpms | ✅SUCCESS | #19 | |
| delete_rpms | ✅SUCCESS | |||
| rpm_abi | ✅SUCCESS | |||
| rpm_files | ✅SUCCESS | |||
| rpm_header | ✅SUCCESS | |||
| rpm_lib | ✅SUCCESS | |||
| rpm_provides | ✅SUCCESS | |||
| rpm_requires | ✅SUCCESS | |||
| rpm_symbol | ✅SUCCESS |


CVE 修复
CVE ID: CVE-2026-85977
目标分支: openEuler-24.03-LTS-Next
修复说明:
本 PR 修复 CVE-2026-85977 安全漏洞。
关联 Issue: https://gitcode.com/src-openeuler/libtirpc/issues/21#note_7e72683626fa9e6ee591b973568f63ad81c8f9c8
当前PR是否有AI参与:
[] 否
[x] 是
__1. Agent平台信息: xiaoo
__2. 模型信息: local/glm-5.3
__3. Prompt摘要: 基于 CVE 补丁完成安全漏洞的源码级影响分析、补丁适配与自动化应用,协助修复本次安全漏洞
希望检视人员了解:
任务触发者: @Qservice(来自 Issue 评论)
补丁适配冲突说明:内容较长,PR 创建后将以下方评论形式附上。