Exploit databaseDownload repository ZIP
GH-8958357e96f9d8f8c98383150c404283
notkmhn/cve-2022-21449-tls-poc
Sources for CVE-2022-21449
14 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files540
notkmhn/cve-2022-21449-tls-pocRevision fa239eebae2b
- ↑..Parent directory
- asan/
- cgo/
- debug/
- internal/
- metrics/
- msan/
- pprof/
- race/
- testdata/
- trace/
- HACKING.md
- Makefile
- alg.go
- asan.go
- asan0.go
- asan_amd64.s
- asan_arm64.s
- asm.s
- asm_386.s
- asm_amd64.h
- asm_amd64.s
- asm_arm.s
- asm_arm64.s
- asm_mips64x.s
- asm_mipsx.s
- asm_ppc64x.h
- asm_ppc64x.s
- asm_riscv64.s
- asm_s390x.s
- asm_wasm.s
- atomic_arm64.s
- atomic_mips64x.s
- atomic_mipsx.s
- atomic_pointer.go
- atomic_ppc64x.s
- atomic_riscv64.s
- auxv_none.go
- cgo.go
- cgo_mmap.go
- cgo_ppc64x.go
- cgo_sigaction.go
- cgocall.go
- cgocallback.go
- cgocheck.go
- chan.go
- checkptr.go
- compiler.go
- complex.go
- cpuflags.go
- cpuflags_amd64.go
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
go/src/runtime/os_freebsd_arm.go
Go · 1,349 bytes// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package runtime
import "internal/cpu"
const (
_HWCAP_VFP = 1 << 6
_HWCAP_VFPv3 = 1 << 13
)
func checkgoarm() {
if goarm > 5 && cpu.HWCap&_HWCAP_VFP == 0 {
print("runtime: this CPU has no floating point hardware, so it cannot run\n")
print("this GOARM=", goarm, " binary. Recompile using GOARM=5.\n")
exit(1)
}
if goarm > 6 && cpu.HWCap&_HWCAP_VFPv3 == 0 {
print("runtime: this CPU has no VFPv3 floating point hardware, so it cannot run\n")
print("this GOARM=", goarm, " binary. Recompile using GOARM=5 or GOARM=6.\n")
exit(1)
}
// osinit not called yet, so ncpu not set: must use getncpu directly.
if getncpu() > 1 && goarm < 7 {
print("runtime: this system has multiple CPUs and must use\n")
print("atomic synchronization instructions. Recompile using GOARM=7.\n")
exit(1)
}
}
func archauxv(tag, val uintptr) {
switch tag {
case _AT_HWCAP:
cpu.HWCap = uint(val)
case _AT_HWCAP2:
cpu.HWCap2 = uint(val)
}
}
//go:nosplit
func cputicks() int64 {
// Currently cputicks() is used in blocking profiler and to seed runtime·fastrand().
// runtime·nanotime() is a poor approximation of CPU ticks that is enough for the profiler.
return nanotime()
}