Exploit databaseDownload repository ZIP
GH-a4473dcd9930d1ae4c0775adc06b1cfb
satheesh575555/linux-4.19.72_cve-2022-36946
Sources for CVE-2022-36946
2 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files31
satheesh575555/linux-4.19.72_cve-2022-36946Revision 34cc7d8183fd
- ↑..Parent directory
- .gitignore
- Makefile
- back_to_back_ebbs_test.c
- busy_loop.S
- close_clears_pmcc_test.c
- cpu_event_pinned_vs_ebb_test.c
- cpu_event_vs_ebb_test.c
- cycles_test.c
- cycles_with_freeze_test.c
- cycles_with_mmcr2_test.c
- ebb.c
- ebb.h
- ebb_handler.S
- ebb_on_child_test.c
- ebb_on_willing_child_test.c
- ebb_vs_cpu_event_test.c
- event_attributes_test.c
- fixed_instruction_loop.S
- fork_cleanup_test.c
- instruction_count_test.c
- lost_exception_test.c
- multi_counter_test.c
- multi_ebb_procs_test.c
- no_handler_test.c
- pmae_handling_test.c
- pmc56_overflow_test.c
- reg_access_test.c
- task_event_pinned_vs_ebb_test.c
- task_event_vs_ebb_test.c
- trace.c
- trace.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
tools/testing/selftests/powerpc/pmu/ebb/reg_access_test.c
C · 657 bytes/*
* Copyright 2014, Michael Ellerman, IBM Corp.
* Licensed under GPLv2.
*/
#include <stdio.h>
#include <stdlib.h>
#include "ebb.h"
/*
* Test basic access to the EBB regs, they should be user accessible with no
* kernel interaction required.
*/
int reg_access(void)
{
uint64_t val, expected;
SKIP_IF(!ebb_is_supported());
expected = 0x8000000100000000ull;
mtspr(SPRN_BESCR, expected);
val = mfspr(SPRN_BESCR);
FAIL_IF(val != expected);
expected = 0x0000000001000000ull;
mtspr(SPRN_EBBHR, expected);
val = mfspr(SPRN_EBBHR);
FAIL_IF(val != expected);
return 0;
}
int main(void)
{
return test_harness(reg_access, "reg_access");
}