Skip to content
This repository has been archived by the owner on Dec 23, 2022. It is now read-only.

lmb/sigprof-repro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SIGPROF causes infinite loop

This repo reproduces an interaction between the Go runtime CPU profiler and the BPF_PROG_LOAD syscall on Linux.

Set SetCPUProfileRate(1000) causes the thread executing the syscall to be interrupted every ~1 ms. This in turn leads to BPF_PROG_LOAD to never finish, given a complex enough BPF program.

test_cls_redirect.o is a precompiled version of test_cls_redirect.c from the Linux kernel sources.

$ go run -exec sudo . # sudo is required to allow the BPF syscall

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages