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
&&
Watch
Unwatch
Watching
Releases Only
Ignoring
456
Star
1.7K
Fork
1.9K
GVP
openEuler
/
kernel
Closed
Code
Issues
1271
Pull Requests
986
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-5.10】修复do_migrate_range中调用try_to_unmap前没有lock page的问题
Done
#IB8TSF
Task
已注销用户
Opened this issue
2024-12-03 19:19
修复do_migrate_range中调用try_to_unmap前没有lock page的问题 [ 9566.988143][T59981] ------------[ cut here ]------------ [ 9566.993446][T59981] kernel BUG at include/linux/swapops.h:326! [ 9566.999270][T59981] Internal error: Oops - BUG: 00000000f2000800 [#1] SMP [ 9567.006046][T59981] Modules linked in: binfmt_misc hinic(OE) rfkill vfat fat rpcrdma sunrpc ib_srpt ib_isert iscsi_target_mod target_core_mod ib_iser libiscsi scsi_transport_iscsi arm_spe_pmu arm_smmuv3_pmu uio_pdrv_genirq uio ofpart cmdlinepart hns_roce_hw_v2 sg spi_nor tpm_tis_spi tpm_tis_core mtd hisi_ptt hisi_pcie_pmu ipmi_ssif spi_hisi_sfc_v3xx ipmi_devintf spidev ipmi_msghandler spi_hisi_kunpeng sdma_dae hisi_uncore_uc_pmu hisi_uncore_hha_pmu hisi_uncore_pa_pmu hisi_uncore_ddrc_pmu hisi_uncore_pmu sch_fq_codel fuse ghash_ce sm4_ce sm4_ce_cipher sm3_ce sha3_ce sha3_generic sha512_ce sha512_arm64 sha2_ce sha256_arm64 i2c_hisi sha1_ce gpio_dwapb hclge sbsa_gwdt ahci libahci hns3 hisi_dma libata hnae3 virt_dma hisi_trng_v2 hisi_mem_ras kunpeng_hccs uacce gpio_hisi gpio_generic dm_mirror dm_region_hash dm_log dm_mod aes_neon_bs aes_neon_blk aes_ce_blk crypto_simd cryptd aes_ce_cipher [ 9567.084433][T59981] CPU: 55 PID: 59981 Comm: sh Kdump: loaded Tainted: G W OE 5.10.0 #1 [ 9567.093466][T59981] Hardware name: To be filled by O.E.M. To be filled by O.E.M./To be filled by O.E.M., BIOS Nezha B800 V3.0.3 11/21/2024 [ 9567.105883][T59981] pstate: 60400009 (nZCv daif +PAN -UAO -TCO BTYPE=--) [ 9567.112575][T59981] pc : try_to_unmap_one+0xdfc/0x1380 [ 9567.117701][T59981] lr : try_to_unmap_one+0x4f4/0x1380 [ 9567.122825][T59981] sp : ffff80007ccf38d0 [ 9567.126822][T59981] x29: ffff80007ccf3960 x28: fffffef4d3e00540 [ 9567.132817][T59981] x27: 0028001000015b43 x26: 0000000000000001 [ 9567.138812][T59981] x25: ffffb1a161104000 x24: ffff464521a900e8 [ 9567.144808][T59981] x23: 0000000000000008 x22: 0000000000000008 [ 9567.150803][T59981] x21: 0000000000000000 x20: fffffef4d3e00540 [ 9567.156797][T59981] x19: ffff464517953a80 x18: 0000000000000000 [ 9567.162793][T59981] x17: 0000000000000000 x16: 0000000000000000 [ 9567.168788][T59981] x15: 0000aaaac7aa7af0 x14: ffffffffffffffff [ 9567.174783][T59981] x13: ffffffffffffffff x12: 0000000000000040 [ 9567.180778][T59981] x11: ffff3e2588403b50 x10: 0000000000000eb0 [ 9567.186773][T59981] x9 : ffffb1a15ff79ae4 x8 : ffff3e2d50ff5b10 [ 9567.192768][T59981] x7 : 0000000000002d4c x6 : 0000000000000000 [ 9567.198762][T59981] x5 : ffff464517953a80 x4 : 00000000000000b7 [ 9567.204756][T59981] x3 : fffffef4d3e00540 x2 : 0000000000000015 [ 9567.210752][T59981] x1 : 00000000000000b7 x0 : 21fffff80048080c [ 9567.216747][T59981] Call trace: [ 9567.219876][T59981] try_to_unmap_one+0xdfc/0x1380 [ 9567.224654][T59981] rmap_walk_anon+0x150/0x45c [ 9567.229172][T59981] rmap_walk+0x50/0xfc [ 9567.233082][T59981] try_to_unmap+0x108/0x1b0 [ 9567.237426][T59981] do_migrate_range+0x3bc/0x6d0 [ 9567.242117][T59981] offline_pages+0x450/0x5b0 [ 9567.246549][T59981] memory_subsys_offline+0x4c/0x9c [ 9567.251501][T59981] device_offline+0xfc/0x14c [ 9567.255933][T59981] state_store+0x98/0x110 [ 9567.260103][T59981] dev_attr_store+0x1c/0x40 [ 9567.264447][T59981] sysfs_kf_write+0x48/0x70 [ 9567.268792][T59981] kernfs_fop_write_iter+0x128/0x1d0 [ 9567.273918][T59981] new_sync_write+0xec/0x1a0 [ 9567.278349][T59981] vfs_write+0x208/0x2b0 [ 9567.282435][T59981] ksys_write+0x70/0x110 [ 9567.286518][T59981] __arm64_sys_write+0x20/0x40 [ 9567.291123][T59981] invoke_syscall+0x4c/0x124 [ 9567.295554][T59981] el0_svc_common.constprop.0+0x140/0x15c [ 9567.301113][T59981] do_el0_svc+0x30/0xd0 [ 9567.305110][T59981] el0_svc+0x1c/0x2c [ 9567.308846][T59981] el0_sync_handler+0xb0/0xb4 [ 9567.313362][T59981] el0_sync+0x168/0x180 [ 9567.317362][T59981] Code: 17ffffde d1000400 f9400000 3707a240 (d4210000) [ 9567.324835][T59981] SMP: stopping secondary CPUs
修复do_migrate_range中调用try_to_unmap前没有lock page的问题 [ 9566.988143][T59981] ------------[ cut here ]------------ [ 9566.993446][T59981] kernel BUG at include/linux/swapops.h:326! [ 9566.999270][T59981] Internal error: Oops - BUG: 00000000f2000800 [#1] SMP [ 9567.006046][T59981] Modules linked in: binfmt_misc hinic(OE) rfkill vfat fat rpcrdma sunrpc ib_srpt ib_isert iscsi_target_mod target_core_mod ib_iser libiscsi scsi_transport_iscsi arm_spe_pmu arm_smmuv3_pmu uio_pdrv_genirq uio ofpart cmdlinepart hns_roce_hw_v2 sg spi_nor tpm_tis_spi tpm_tis_core mtd hisi_ptt hisi_pcie_pmu ipmi_ssif spi_hisi_sfc_v3xx ipmi_devintf spidev ipmi_msghandler spi_hisi_kunpeng sdma_dae hisi_uncore_uc_pmu hisi_uncore_hha_pmu hisi_uncore_pa_pmu hisi_uncore_ddrc_pmu hisi_uncore_pmu sch_fq_codel fuse ghash_ce sm4_ce sm4_ce_cipher sm3_ce sha3_ce sha3_generic sha512_ce sha512_arm64 sha2_ce sha256_arm64 i2c_hisi sha1_ce gpio_dwapb hclge sbsa_gwdt ahci libahci hns3 hisi_dma libata hnae3 virt_dma hisi_trng_v2 hisi_mem_ras kunpeng_hccs uacce gpio_hisi gpio_generic dm_mirror dm_region_hash dm_log dm_mod aes_neon_bs aes_neon_blk aes_ce_blk crypto_simd cryptd aes_ce_cipher [ 9567.084433][T59981] CPU: 55 PID: 59981 Comm: sh Kdump: loaded Tainted: G W OE 5.10.0 #1 [ 9567.093466][T59981] Hardware name: To be filled by O.E.M. To be filled by O.E.M./To be filled by O.E.M., BIOS Nezha B800 V3.0.3 11/21/2024 [ 9567.105883][T59981] pstate: 60400009 (nZCv daif +PAN -UAO -TCO BTYPE=--) [ 9567.112575][T59981] pc : try_to_unmap_one+0xdfc/0x1380 [ 9567.117701][T59981] lr : try_to_unmap_one+0x4f4/0x1380 [ 9567.122825][T59981] sp : ffff80007ccf38d0 [ 9567.126822][T59981] x29: ffff80007ccf3960 x28: fffffef4d3e00540 [ 9567.132817][T59981] x27: 0028001000015b43 x26: 0000000000000001 [ 9567.138812][T59981] x25: ffffb1a161104000 x24: ffff464521a900e8 [ 9567.144808][T59981] x23: 0000000000000008 x22: 0000000000000008 [ 9567.150803][T59981] x21: 0000000000000000 x20: fffffef4d3e00540 [ 9567.156797][T59981] x19: ffff464517953a80 x18: 0000000000000000 [ 9567.162793][T59981] x17: 0000000000000000 x16: 0000000000000000 [ 9567.168788][T59981] x15: 0000aaaac7aa7af0 x14: ffffffffffffffff [ 9567.174783][T59981] x13: ffffffffffffffff x12: 0000000000000040 [ 9567.180778][T59981] x11: ffff3e2588403b50 x10: 0000000000000eb0 [ 9567.186773][T59981] x9 : ffffb1a15ff79ae4 x8 : ffff3e2d50ff5b10 [ 9567.192768][T59981] x7 : 0000000000002d4c x6 : 0000000000000000 [ 9567.198762][T59981] x5 : ffff464517953a80 x4 : 00000000000000b7 [ 9567.204756][T59981] x3 : fffffef4d3e00540 x2 : 0000000000000015 [ 9567.210752][T59981] x1 : 00000000000000b7 x0 : 21fffff80048080c [ 9567.216747][T59981] Call trace: [ 9567.219876][T59981] try_to_unmap_one+0xdfc/0x1380 [ 9567.224654][T59981] rmap_walk_anon+0x150/0x45c [ 9567.229172][T59981] rmap_walk+0x50/0xfc [ 9567.233082][T59981] try_to_unmap+0x108/0x1b0 [ 9567.237426][T59981] do_migrate_range+0x3bc/0x6d0 [ 9567.242117][T59981] offline_pages+0x450/0x5b0 [ 9567.246549][T59981] memory_subsys_offline+0x4c/0x9c [ 9567.251501][T59981] device_offline+0xfc/0x14c [ 9567.255933][T59981] state_store+0x98/0x110 [ 9567.260103][T59981] dev_attr_store+0x1c/0x40 [ 9567.264447][T59981] sysfs_kf_write+0x48/0x70 [ 9567.268792][T59981] kernfs_fop_write_iter+0x128/0x1d0 [ 9567.273918][T59981] new_sync_write+0xec/0x1a0 [ 9567.278349][T59981] vfs_write+0x208/0x2b0 [ 9567.282435][T59981] ksys_write+0x70/0x110 [ 9567.286518][T59981] __arm64_sys_write+0x20/0x40 [ 9567.291123][T59981] invoke_syscall+0x4c/0x124 [ 9567.295554][T59981] el0_svc_common.constprop.0+0x140/0x15c [ 9567.301113][T59981] do_el0_svc+0x30/0xd0 [ 9567.305110][T59981] el0_svc+0x1c/0x2c [ 9567.308846][T59981] el0_sync_handler+0xb0/0xb4 [ 9567.313362][T59981] el0_sync+0x168/0x180 [ 9567.317362][T59981] Code: 17ffffde d1000400 f9400000 3707a240 (d4210000) [ 9567.324835][T59981] SMP: stopping secondary CPUs
Comments (
1
)
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