-
Notifications
You must be signed in to change notification settings - Fork 75
Open
Description
I find when create many selinux labels will cause uniqMcs use 100% cpu when try create more than 1024*(1024-1)/2=523776 labels.
for example
package main
import (
"fmt"
"github.com/opencontainers/selinux/go-selinux"
)
func main() {
selinux.CategoryRange = 10
for i := 0; i < 1000; i++ {
selinux.ContainerLabels()
fmt.Printf("times %d \n", i)
}
fmt.Println("done")
}
can this bug assign a cve? the func never return and use 100 % cpu @kolyshkin @cyphar
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels