Exploit databaseDownload repository ZIP
GH-9a497cc26994d431b276e9e3b7a8f75c
satheesh575555/linux-4.19.72_cve-2023-0386
Sources for CVE-2023-0386
20 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files66
satheesh575555/linux-4.19.72_cve-2023-0386Revision ef9a4a9fbf2b
- ↑..Parent directory
- Kconfig
- Makefile
- book3s.c
- book3s.h
- book3s_32_mmu.c
- book3s_32_mmu_host.c
- book3s_32_sr.S
- book3s_64_mmu.c
- book3s_64_mmu_host.c
- book3s_64_mmu_hv.c
- book3s_64_mmu_radix.c
- book3s_64_slb.S
- book3s_64_vio.c
- book3s_64_vio_hv.c
- book3s_emulate.c
- book3s_exports.c
- book3s_hv.c
- book3s_hv_builtin.c
- book3s_hv_hmi.c
- book3s_hv_interrupts.S
- book3s_hv_ras.c
- book3s_hv_rm_mmu.c
- book3s_hv_rm_xics.c
- book3s_hv_rm_xive.c
- book3s_hv_rmhandlers.S
- book3s_hv_tm.c
- book3s_hv_tm_builtin.c
- book3s_interrupts.S
- book3s_mmu_hpte.c
- book3s_paired_singles.c
- book3s_pr.c
- book3s_pr_papr.c
- book3s_rmhandlers.S
- book3s_rtas.c
- book3s_segment.S
- book3s_xics.c
- book3s_xics.h
- book3s_xive.c
- book3s_xive.h
- book3s_xive_template.c
- booke.c
- booke.h
- booke_emulate.c
- booke_interrupts.S
- bookehv_interrupts.S
- e500.c
- e500.h
- e500_emulate.c
- e500_mmu.c
- e500_mmu_host.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
arch/powerpc/kvm/book3s_hv_hmi.c
C · 1,608 bytes/*
* Hypervisor Maintenance Interrupt (HMI) handling.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program.
*
* Copyright 2015 IBM Corporation
* Author: Mahesh Salgaonkar <[email protected]>
*/
#undef DEBUG
#include <linux/types.h>
#include <linux/compiler.h>
#include <asm/paca.h>
#include <asm/hmi.h>
void wait_for_subcore_guest_exit(void)
{
int i;
/*
* NULL bitmap pointer indicates that KVM module hasn't
* been loaded yet and hence no guests are running.
* If no KVM is in use, no need to co-ordinate among threads
* as all of them will always be in host and no one is going
* to modify TB other than the opal hmi handler.
* Hence, just return from here.
*/
if (!local_paca->sibling_subcore_state)
return;
for (i = 0; i < MAX_SUBCORE_PER_CORE; i++)
while (local_paca->sibling_subcore_state->in_guest[i])
cpu_relax();
}
void wait_for_tb_resync(void)
{
if (!local_paca->sibling_subcore_state)
return;
while (test_bit(CORE_TB_RESYNC_REQ_BIT,
&local_paca->sibling_subcore_state->flags))
cpu_relax();
}