lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+G9fYtC0iTRSRj8WSw5KMDwrx4Z3Djo89OXXdHjna9r3qy3Kg@mail.gmail.com>
Date:   Wed, 13 Sep 2023 17:33:28 +0530
From:   Naresh Kamboju <naresh.kamboju@...aro.org>
To:     open list <linux-kernel@...r.kernel.org>,
        kvmarm@...ts.cs.columbia.edu, kvm list <kvm@...r.kernel.org>,
        Linux ARM <linux-arm-kernel@...ts.infradead.org>
Cc:     Yu Zhao <yuzhao@...gle.com>, Reiji Watanabe <reijiw@...gle.com>,
        Marc Zyngier <maz@...nel.org>,
        Shaoqin Huang <shahuang@...hat.com>,
        Oliver Upton <oliver.upton@...ux.dev>, rananta@...gle.com,
        Paolo Bonzini <pbonzini@...hat.com>,
        Arnd Bergmann <arnd@...db.de>,
        Anders Roxell <anders.roxell@...aro.org>
Subject: kvm: arm64: WARNING: CPU: 3 PID: 1 at arch/arm64/kvm/hyp/pgtable.c:453
 hyp_map_walker+0xa8/0x120

Following kernel warning noticed on arm64 Raspberry Pi 4 Model B and
Juno-r2 devices while booting the mainline 6.6.0-rc1 kernel.

Reported-by: Linux Kernel Functional Testing <lkft@...aro.org>
Reported-by: Naresh Kamboju <naresh.kamboju@...aro.org>

Boot log:
---------
Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd083]
[    0.000000] Linux version 6.6.0-rc1 (tuxmake@...make)
(aarch64-linux-gnu-gcc (Debian 13.2.0-2) 13.2.0, GNU ld (GNU Binutils
for Debian) 2.41) #1 SMP PREEMPT @1694546723
[    0.000000] KASLR disabled due to lack of seed
[    0.000000] Machine model: Raspberry Pi 4 Model B
...
[    0.181598] kvm [1]: IPA Size Limit: 44 bits
[    0.184681] ------------[ cut here ]------------
[    0.184689] WARNING: CPU: 3 PID: 1 at
arch/arm64/kvm/hyp/pgtable.c:453 hyp_map_walker+0xa8/0x120
[    0.184726] Modules linked in:
[    0.184740] CPU: 3 PID: 1 Comm: swapper/0 Not tainted 6.6.0-rc1 #1
[    0.184753] Hardware name: Raspberry Pi 4 Model B (DT)
[    0.184759] pstate: 00000005 (nzcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[    0.184772] pc : hyp_map_walker+0xa8/0x120
[    0.184787] lr : hyp_map_walker+0x3c/0x120
[    0.184800] sp : ffff80008352b850
[    0.184806] x29: ffff80008352b850 x28: ffff8000823f4008 x27: 0000000000000003
[    0.184829] x26: ffff000040c46000 x25: ffff000040c46000 x24: 0000000000000004
[    0.184849] x23: fffffffffffff000 x22: ffff80008352bbc0 x21: ffff800082ec1b20
[    0.184868] x20: 00400000ff844753 x19: ffff80008352b8e8 x18: ffffffffffffffff
[    0.184888] x17: ffff80008327c990 x16: 0000000083346a16 x15: 0000000000000000
[    0.184907] x14: 0000000000000000 x13: 0000000000000000 x12: ffff80008389ffff
[    0.184927] x11: 0000000000000000 x10: ffff0000fbfff010 x9 : ffff80008008cefc
[    0.184946] x8 : ffff80008352bad8 x7 : ffff80008352bbc0 x6 : ffff80008352bbc0
[    0.184964] x5 : 0000000000000000 x4 : 0000000000002000 x3 : 0000ffffffffffff
[    0.184983] x2 : 00400000feef1090 x1 : 0000000000000003 x0 : 00400000ff844750
[    0.185004] Call trace:
[    0.185009]  hyp_map_walker+0xa8/0x120
[    0.185024]  __kvm_pgtable_walk+0x2e0/0x320
[    0.185038]  __kvm_pgtable_walk+0x100/0x320
[    0.185052]  __kvm_pgtable_walk+0x100/0x320
[    0.185065]  __kvm_pgtable_walk+0x100/0x320
[    0.185077]  kvm_pgtable_walk+0xd0/0x170
[    0.185091]  kvm_pgtable_hyp_map+0x94/0x120
[    0.185105]  __create_hyp_mappings+0x68/0xc0
[    0.185119]  __create_hyp_private_mapping+0xe4/0x140
[    0.185131]  create_hyp_io_mappings+0x94/0x120
[    0.185143]  vgic_v2_probe+0xc4/0x218
[    0.185154]  kvm_vgic_hyp_init+0xcc/0x200
[    0.185163]  kvm_arm_init+0x6c4/0x1068
[    0.185181]  do_one_initcall+0x5c/0x2b8
[    0.185192]  kernel_init_freeable+0x1fc/0x3f8
[    0.185208]  kernel_init+0x2c/0x1f8
[    0.185222]  ret_from_fork+0x10/0x20
[    0.185235] ---[ end trace 0000000000000000 ]---
[    0.185248] ------------[ cut here ]------------
[    0.185252] WARNING: CPU: 3 PID: 1 at
arch/arm64/kvm/hyp/pgtable.c:470 hyp_map_walker+0x100/0x120
[    0.185272] Modules linked in:
[    0.185280] CPU: 3 PID: 1 Comm: swapper/0 Tainted: G        W
   6.6.0-rc1 #1
[    0.185290] Hardware name: Raspberry Pi 4 Model B (DT)
[    0.185296] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[    0.185308] pc : hyp_map_walker+0x100/0x120
[    0.185321] lr : hyp_map_walker+0x3c/0x120
[    0.185334] sp : ffff80008352b850
[    0.185339] x29: ffff80008352b850 x28: ffff8000823f4008 x27: 0000000000000003
[    0.185358] x26: ffff000040c46000 x25: ffff000040c46000 x24: 0000000000000004
[    0.185377] x23: fffffffffffff000 x22: ffff80008352bbc0 x21: ffff800082ec1b20
[    0.185396] x20: 00400000ff844753 x19: ffff80008352b8e8 x18: ffffffffffffffff
[    0.185415] x17: ffff80008327c990 x16: 0000000083346a16 x15: 0000000000000000
[    0.185435] x14: 0000000000000000 x13: 0000000000000000 x12: ffff80008389ffff
[    0.185454] x11: 0000000000000000 x10: ffff0000fbfff010 x9 : ffff80008008cefc
[    0.185472] x8 : ffff80008352bad8 x7 : ffff80008352bbc0 x6 : ffff80008352bbc0
[    0.185491] x5 : 0000000000000000 x4 : 0000000000002000 x3 : 0000ffffffffffff
[    0.185510] x2 : 00400000feef1090 x1 : 0000000000000003 x0 : 00400000ff844750
[    0.185529] Call trace:
[    0.185534]  hyp_map_walker+0x100/0x120
[    0.185547]  __kvm_pgtable_walk+0x2e0/0x320
[    0.185561]  __kvm_pgtable_walk+0x100/0x320
[    0.185574]  __kvm_pgtable_walk+0x100/0x320
[    0.185587]  __kvm_pgtable_walk+0x100/0x320
[    0.185600]  kvm_pgtable_walk+0xd0/0x170
[    0.185614]  kvm_pgtable_hyp_map+0x94/0x120
[    0.185627]  __create_hyp_mappings+0x68/0xc0
[    0.185639]  __create_hyp_private_mapping+0xe4/0x140
[    0.185650]  create_hyp_io_mappings+0x94/0x120
[    0.185662]  vgic_v2_probe+0xc4/0x218
[    0.185672]  kvm_vgic_hyp_init+0xcc/0x200
[    0.185681]  kvm_arm_init+0x6c4/0x1068
[    0.185696]  do_one_initcall+0x5c/0x2b8
[    0.185707]  kernel_init_freeable+0x1fc/0x3f8
[    0.185722]  kernel_init+0x2c/0x1f8
[    0.185733]  ret_from_fork+0x10/0x20
[    0.185745] ---[ end trace 0000000000000000 ]---
[    0.185760] kvm [1]: Cannot map VCTRL into hyp


Links,
 - https://lkft.validation.linaro.org/scheduler/job/6780041#L587
 - https://qa-reports.linaro.org/lkft/linux-mainline-master-sanity/build/v6.6-rc1-33-g3669558bdf35/testrun/19913903/suite/log-parser-boot/test/check-kernel-exception/details/
 - https://storage.tuxsuite.com/public/linaro/lkft/builds/2VJFncJcwoozdfQkO3ZUjZq4KTd/
 - https://storage.tuxsuite.com/public/linaro/lkft/builds/2VJFncJcwoozdfQkO3ZUjZq4KTd/config

metadata:
  git_ref: master
  git_repo: https://gitlab.com/Linaro/lkft/mirrors/torvalds/linux-mainline
  git_sha: 3669558bdf354cd352be955ef2764cde6a9bf5ec
  git_describe: v6.6-rc1-33-g3669558bdf35
  kernel_version: 6.6.0-rc1
  kernel-config:
    https://storage.tuxsuite.com/public/linaro/lkft/builds/2VJFncJcwoozdfQkO3ZUjZq4KTd/config
  artifact-location:
    https://storage.tuxsuite.com/public/linaro/lkft/builds/2VJFncJcwoozdfQkO3ZUjZq4KTd/
  toolchain: gcc-13


--
Linaro LKFT
https://lkft.linaro.org

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ