Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
description of repo status
Open Source
>
Other
>
Operation System
&&
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
458
Star
1.7K
Fork
1.9K
GVP
openEuler
/
kernel
Closed
Code
Issues
1271
Pull Requests
991
Wiki
Insights
Pipelines
Service
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
DevLens
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
[olk-6.6] global-out-of-bounds in bpf_link_show_fdinfo
Done
#I9IMXD
Bug
Pu Lehui
Opened this issue
2024-04-22 15:15
**【标题描述】能够简要描述问题:说明什么场景下,做了什么操作,出现什么问题(尽量使用正向表达方式)** **一、缺陷信息** ``` ================================================================== BUG: KASAN: global-out-of-bounds in bpf_link_show_fdinfo+0x2eb/0x310 kernel/bpf/syscall.c:2942 Read of size 8 at addr ffffffffa097a038 by task systemd-coredum/3549 CPU: 3 PID: 3549 Comm: systemd-coredum Not tainted 6.6.0+ #7 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 Call Trace: <TASK> __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x72/0xa0 lib/dump_stack.c:106 print_address_description.constprop.0+0x6b/0x3d0 mm/kasan/report.c:364 print_report+0xba/0x280 mm/kasan/report.c:475 kasan_report+0xaf/0xe0 mm/kasan/report.c:588 bpf_link_show_fdinfo+0x2eb/0x310 kernel/bpf/syscall.c:2942 seq_show+0x53a/0x700 fs/proc/fd.c:70 seq_read_iter+0x503/0x1280 fs/seq_file.c:230 seq_read+0x153/0x200 fs/seq_file.c:162 vfs_read+0x17a/0x5b0 fs/read_write.c:470 ksys_read+0x12e/0x260 fs/read_write.c:615 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0x90 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x6e/0xd8 RIP: 0033:0x7f7d5e11c4b1 Code: 00 48 8b 15 69 49 0d 00 f7 d8 64 89 02 b8 ff ff ff ff eb c3 e8 90 c4 01 00 f3 0f 1e fa 80 3d b5 ce 0d 00 00 74 13 31 c0 0f 05 <48> 3d 00 f0 ff ff 77 57 c3 66 0f 1f 44 00 00 48 83 ec 28 48 89 54 RSP: 002b:00007fffb3e18628 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 0000563fb33972f0 RCX: 00007f7d5e11c4b1 RDX: 0000000000000400 RSI: 0000563fb33974d0 RDI: 0000000000000006 RBP: 00007f7d5e1f0090 R08: 00007f7d5e1f0288 R09: 0000000000000001 R10: 0000000000001000 R11: 0000000000000246 R12: 00007f7d5e1eff40 R13: 0000563fb33972f0 R14: 0000000000100000 R15: 0000000000000001 </TASK> The buggy address belongs to the variable: bpf_link_type_strs+0x58/0x80 The buggy address belongs to the physical page: page:00000000c4ec5cfc refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xb157a flags: 0x3fffff00004000(reserved|node=0|zone=1|lastcpupid=0x1fffff) page_type: 0xffffffff() raw: 003fffff00004000 ffffea0002c55e88 ffffea0002c55e88 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffffffffa0979f00: f9 f9 f9 f9 05 f9 f9 f9 f9 f9 f9 f9 00 05 f9 f9 ffffffffa0979f80: f9 f9 f9 f9 00 03 f9 f9 f9 f9 f9 f9 00 00 00 00 >ffffffffa097a000: 00 00 00 00 00 00 f9 f9 f9 f9 f9 f9 00 00 00 00 ^ ffffffffa097a080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffffffa097a100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ``` **内核信息:** **缺陷归属组件:** **缺陷归属的版本:** **缺陷简述:** **【环境信息】** 硬件信息 - 裸机场景请提供问题的硬件信息 - 虚拟机场景请提供虚拟机的XML文件或配置信息 软件信息 - OS版本及分支信息 - 内核信息 - 发现问题的组件版本信息 网络信息 - 如果有特殊组网,请提供网络拓扑信息 **【问题复现步骤】**,请描述具体的操作步骤 **【实际结果】**,请描述出问题的结果和影响 **【其他相关附件信息】** 比如系统message日志/组件日志、dump信息、图片等 **缺陷详情参考链接:** **缺陷分析指导链接:** https:xxx
**【标题描述】能够简要描述问题:说明什么场景下,做了什么操作,出现什么问题(尽量使用正向表达方式)** **一、缺陷信息** ``` ================================================================== BUG: KASAN: global-out-of-bounds in bpf_link_show_fdinfo+0x2eb/0x310 kernel/bpf/syscall.c:2942 Read of size 8 at addr ffffffffa097a038 by task systemd-coredum/3549 CPU: 3 PID: 3549 Comm: systemd-coredum Not tainted 6.6.0+ #7 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 Call Trace: <TASK> __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x72/0xa0 lib/dump_stack.c:106 print_address_description.constprop.0+0x6b/0x3d0 mm/kasan/report.c:364 print_report+0xba/0x280 mm/kasan/report.c:475 kasan_report+0xaf/0xe0 mm/kasan/report.c:588 bpf_link_show_fdinfo+0x2eb/0x310 kernel/bpf/syscall.c:2942 seq_show+0x53a/0x700 fs/proc/fd.c:70 seq_read_iter+0x503/0x1280 fs/seq_file.c:230 seq_read+0x153/0x200 fs/seq_file.c:162 vfs_read+0x17a/0x5b0 fs/read_write.c:470 ksys_read+0x12e/0x260 fs/read_write.c:615 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0x90 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x6e/0xd8 RIP: 0033:0x7f7d5e11c4b1 Code: 00 48 8b 15 69 49 0d 00 f7 d8 64 89 02 b8 ff ff ff ff eb c3 e8 90 c4 01 00 f3 0f 1e fa 80 3d b5 ce 0d 00 00 74 13 31 c0 0f 05 <48> 3d 00 f0 ff ff 77 57 c3 66 0f 1f 44 00 00 48 83 ec 28 48 89 54 RSP: 002b:00007fffb3e18628 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 0000563fb33972f0 RCX: 00007f7d5e11c4b1 RDX: 0000000000000400 RSI: 0000563fb33974d0 RDI: 0000000000000006 RBP: 00007f7d5e1f0090 R08: 00007f7d5e1f0288 R09: 0000000000000001 R10: 0000000000001000 R11: 0000000000000246 R12: 00007f7d5e1eff40 R13: 0000563fb33972f0 R14: 0000000000100000 R15: 0000000000000001 </TASK> The buggy address belongs to the variable: bpf_link_type_strs+0x58/0x80 The buggy address belongs to the physical page: page:00000000c4ec5cfc refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xb157a flags: 0x3fffff00004000(reserved|node=0|zone=1|lastcpupid=0x1fffff) page_type: 0xffffffff() raw: 003fffff00004000 ffffea0002c55e88 ffffea0002c55e88 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffffffffa0979f00: f9 f9 f9 f9 05 f9 f9 f9 f9 f9 f9 f9 00 05 f9 f9 ffffffffa0979f80: f9 f9 f9 f9 00 03 f9 f9 f9 f9 f9 f9 00 00 00 00 >ffffffffa097a000: 00 00 00 00 00 00 f9 f9 f9 f9 f9 f9 00 00 00 00 ^ ffffffffa097a080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffffffa097a100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ``` **内核信息:** **缺陷归属组件:** **缺陷归属的版本:** **缺陷简述:** **【环境信息】** 硬件信息 - 裸机场景请提供问题的硬件信息 - 虚拟机场景请提供虚拟机的XML文件或配置信息 软件信息 - OS版本及分支信息 - 内核信息 - 发现问题的组件版本信息 网络信息 - 如果有特殊组网,请提供网络拓扑信息 **【问题复现步骤】**,请描述具体的操作步骤 **【实际结果】**,请描述出问题的结果和影响 **【其他相关附件信息】** 比如系统message日志/组件日志、dump信息、图片等 **缺陷详情参考链接:** **缺陷分析指导链接:** https:xxx
Comments (
1
)
Sign in
to comment
Status
Done
Backlog
已挂起
Fixing
Confirmed
Done
Accepted
Canceled
Assignees
Not set
Labels
sig/Kernel
Not set
Projects
Unprojected
Unprojected
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (
-
)
Tags (
-
)
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
Duration
(hours)
参与者(2)
C
1
https://gitee.com/openeuler/kernel.git
git@gitee.com:openeuler/kernel.git
openeuler
kernel
kernel
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register