Skip to content

[PW_SID:1067409] [v2] riscv: kvm: fix vector context allocation leak#1623

Open
linux-riscv-bot wants to merge 1 commit intoworkflow__riscv__fixesfrom
pw1067409
Open

[PW_SID:1067409] [v2] riscv: kvm: fix vector context allocation leak#1623
linux-riscv-bot wants to merge 1 commit intoworkflow__riscv__fixesfrom
pw1067409

Conversation

@linux-riscv-bot
Copy link

PR for series 1067409 applied to workflow__riscv__fixes

Name: [v2] riscv: kvm: fix vector context allocation leak
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1067409
Version: 2

When the second kzalloc (host_context.vector.datap) fails in
kvm_riscv_vcpu_alloc_vector_context, the first allocation
(guest_context.vector.datap) is leaked. Free it before returning.

Fixes: 0f4b825 ("riscv: KVM: Add vector lazy save/restore support")
Cc: stable@vger.kernel.org
Signed-off-by: Osama Abdelkader <osama.abdelkader@gmail.com>
Reviewed-by: Andy Chiu <andybnac@gmail.com>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
@linux-riscv-bot
Copy link
Author

Patch 1: "[v2] riscv: kvm: fix vector context allocation leak"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 136.09 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "[v2] riscv: kvm: fix vector context allocation leak"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 1013.63 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "[v2] riscv: kvm: fix vector context allocation leak"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1374.11 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "[v2] riscv: kvm: fix vector context allocation leak"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 26.51 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "[v2] riscv: kvm: fix vector context allocation leak"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 27.87 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "[v2] riscv: kvm: fix vector context allocation leak"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.76 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "[v2] riscv: kvm: fix vector context allocation leak"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 87.35 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "[v2] riscv: kvm: fix vector context allocation leak"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.76 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "[v2] riscv: kvm: fix vector context allocation leak"
kdoc
Desc: Detects for kdoc errors
Duration: 1.39 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "[v2] riscv: kvm: fix vector context allocation leak"
module-param
Desc: Detect module_param changes
Duration: 0.72 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "[v2] riscv: kvm: fix vector context allocation leak"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.26 seconds
Result: PASS

@linux-riscv-bot
Copy link
Author

Patch 1: "[v2] riscv: kvm: fix vector context allocation leak"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.29 seconds
Result: PASS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants