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.
【OLK5.10】ext4: fix use-after-free in ext4_ext_shift_extents
Done
#I5SV2U
Task
LiBaokun
Opened this issue
2022-09-23 19:49
<!-- #请根据issue的类型在标题右侧下拉框中选择对应的选项(需求、缺陷或CVE等)--> <!-- #请根据issue相关的版本在里程碑中选择对应的节点,若是与版本无关,请选择“不关联里程碑”--> [56052.150014] Quota error (device sda): qtree_write_dquot: Error -28 occurred while creating quota [58090.244800] Quota error (device sda): write_blk: dquota write failed [58090.254563] Quota error (device sda): qtree_write_dquot: Error -28 occurred while creating quota [58925.432045] Quota error (device sda): write_blk: dquota write failed [58925.436555] Quota error (device sda): qtree_write_dquot: Error -28 occurred while creating quota [58925.741201] Quota error (device sda): write_blk: dquota write failed [58925.743867] Quota error (device sda): qtree_write_dquot: Error -28 occurred while creating quota [67171.951164] ================================================================== [67171.962465] BUG: KASAN: use-after-free in ext4_ext_shift_extents+0x1188/0x1290 [67171.964033] Read of size 4 at addr ffff88800534f004 by task fsstress/7189 [67171.965698] [67171.966182] CPU: 2 PID: 7189 Comm: fsstress Not tainted 5.10.0-g25d42c5b82d4 #1 [67171.967751] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1ubuntu1 04/01/2014 [67171.969685] Call Trace: [67171.970370] ? dump_stack+0x10d/0x163 [67171.971157] ? ext4_ext_shift_extents+0x1188/0x1290 [67171.972249] ? print_address_description.constprop.2+0x2c/0x390 [67171.973550] ? vprintk_func+0x97/0x1d0 [67171.974413] ? irq_work_claim+0x26/0x110 [67171.975244] ? ext4_ext_shift_extents+0x1188/0x1290 [67171.976262] ? ext4_ext_shift_extents+0x1188/0x1290 [67171.977316] ? kasan_report.cold.5+0x56/0xba [67171.978217] ? ext4_ext_shift_extents+0x1188/0x1290 [67171.979236] ? __asan_report_load4_noabort+0x20/0x30 [67171.980280] ? ext4_ext_shift_extents+0x1188/0x1290 [67171.981323] ? ext4_ext_next_allocated_block+0x3c0/0x3c0 [67171.982476] ? _raw_read_unlock_irqrestore+0x50/0x50 [67171.983536] ? ext4_da_release_space+0x21/0x560 [67171.984487] ? ext4_es_remove_extent+0x2b6/0x4c0 [67171.985461] ? ext4_es_lookup_extent+0xc20/0xc20 [67171.986427] ? kasan_slab_free+0x12/0x20 [67171.987256] ? kfree+0x152/0xc90 [67171.987954] ? __kasan_check_write+0x20/0x30 [67171.988884] ? __brelse+0xb1/0xe0 [67171.989609] ? ext4_fallocate+0x2fcb/0x3c90 [67171.990504] ? ext4_ext_truncate+0x2d0/0x2d0 [67171.991425] ? __se_sys_newfstat+0x90/0x100 [67171.992323] ? __ia32_compat_sys_newfstat+0x90/0x90 [67171.993382] ? ext4_ext_truncate+0x2d0/0x2d0 [67171.994318] ? vfs_fallocate+0x393/0xba0 [67171.995162] ? ksys_fallocate+0x56/0xb0 [67171.995986] ? __x64_sys_fallocate+0xc4/0x130 [67171.996910] ? syscall_exit_to_user_mode+0x5b/0x330 [67171.997948] ? do_syscall_64+0x45/0x70 [67171.998757] ? entry_SYSCALL_64_after_hwframe+0x44/0xa9 [67171.999862] [67172.000205] The buggy address belongs to the page: [67172.001239] page:ffffea000014d3c0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x534f [67172.003134] flags: 0x1fffff80000000(node=0|zone=1|lastcpupid=0x1fffff) [67172.004509] raw: 001fffff80000000 ffffea000014d408 ffff888059f401c0 0000000000000000 [67172.006129] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [67172.007724] page dumped because: kasan: bad access detected [67172.008880] [67172.009229] Memory state around the buggy address: [67172.010250] ffff88800534ef00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [67172.011741] ffff88800534ef80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [67172.013231] >ffff88800534f000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [67172.014712] ^ [67172.015409] ffff88800534f080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [67172.016886] ffff88800534f100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [67172.018364] ==================================================================
<!-- #请根据issue的类型在标题右侧下拉框中选择对应的选项(需求、缺陷或CVE等)--> <!-- #请根据issue相关的版本在里程碑中选择对应的节点,若是与版本无关,请选择“不关联里程碑”--> [56052.150014] Quota error (device sda): qtree_write_dquot: Error -28 occurred while creating quota [58090.244800] Quota error (device sda): write_blk: dquota write failed [58090.254563] Quota error (device sda): qtree_write_dquot: Error -28 occurred while creating quota [58925.432045] Quota error (device sda): write_blk: dquota write failed [58925.436555] Quota error (device sda): qtree_write_dquot: Error -28 occurred while creating quota [58925.741201] Quota error (device sda): write_blk: dquota write failed [58925.743867] Quota error (device sda): qtree_write_dquot: Error -28 occurred while creating quota [67171.951164] ================================================================== [67171.962465] BUG: KASAN: use-after-free in ext4_ext_shift_extents+0x1188/0x1290 [67171.964033] Read of size 4 at addr ffff88800534f004 by task fsstress/7189 [67171.965698] [67171.966182] CPU: 2 PID: 7189 Comm: fsstress Not tainted 5.10.0-g25d42c5b82d4 #1 [67171.967751] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1ubuntu1 04/01/2014 [67171.969685] Call Trace: [67171.970370] ? dump_stack+0x10d/0x163 [67171.971157] ? ext4_ext_shift_extents+0x1188/0x1290 [67171.972249] ? print_address_description.constprop.2+0x2c/0x390 [67171.973550] ? vprintk_func+0x97/0x1d0 [67171.974413] ? irq_work_claim+0x26/0x110 [67171.975244] ? ext4_ext_shift_extents+0x1188/0x1290 [67171.976262] ? ext4_ext_shift_extents+0x1188/0x1290 [67171.977316] ? kasan_report.cold.5+0x56/0xba [67171.978217] ? ext4_ext_shift_extents+0x1188/0x1290 [67171.979236] ? __asan_report_load4_noabort+0x20/0x30 [67171.980280] ? ext4_ext_shift_extents+0x1188/0x1290 [67171.981323] ? ext4_ext_next_allocated_block+0x3c0/0x3c0 [67171.982476] ? _raw_read_unlock_irqrestore+0x50/0x50 [67171.983536] ? ext4_da_release_space+0x21/0x560 [67171.984487] ? ext4_es_remove_extent+0x2b6/0x4c0 [67171.985461] ? ext4_es_lookup_extent+0xc20/0xc20 [67171.986427] ? kasan_slab_free+0x12/0x20 [67171.987256] ? kfree+0x152/0xc90 [67171.987954] ? __kasan_check_write+0x20/0x30 [67171.988884] ? __brelse+0xb1/0xe0 [67171.989609] ? ext4_fallocate+0x2fcb/0x3c90 [67171.990504] ? ext4_ext_truncate+0x2d0/0x2d0 [67171.991425] ? __se_sys_newfstat+0x90/0x100 [67171.992323] ? __ia32_compat_sys_newfstat+0x90/0x90 [67171.993382] ? ext4_ext_truncate+0x2d0/0x2d0 [67171.994318] ? vfs_fallocate+0x393/0xba0 [67171.995162] ? ksys_fallocate+0x56/0xb0 [67171.995986] ? __x64_sys_fallocate+0xc4/0x130 [67171.996910] ? syscall_exit_to_user_mode+0x5b/0x330 [67171.997948] ? do_syscall_64+0x45/0x70 [67171.998757] ? entry_SYSCALL_64_after_hwframe+0x44/0xa9 [67171.999862] [67172.000205] The buggy address belongs to the page: [67172.001239] page:ffffea000014d3c0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x534f [67172.003134] flags: 0x1fffff80000000(node=0|zone=1|lastcpupid=0x1fffff) [67172.004509] raw: 001fffff80000000 ffffea000014d408 ffff888059f401c0 0000000000000000 [67172.006129] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [67172.007724] page dumped because: kasan: bad access detected [67172.008880] [67172.009229] Memory state around the buggy address: [67172.010250] ffff88800534ef00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [67172.011741] ffff88800534ef80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [67172.013231] >ffff88800534f000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [67172.014712] ^ [67172.015409] ffff88800534f080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [67172.016886] ffff88800534f100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [67172.018364] ==================================================================
Comments (
7
)
Sign in
to comment
Status
Done
Backlog
Doing
Done
Declined
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