Skip to content

txt-suite from v2.8.0/v2.8.1 fails to execute tests #406

@macpijan

Description

@macpijan
  1. Verified prerequisites from: https://github.com/9elements/converged-security-suite/tree/main/cmd/core/txt-suite#prerequisites-for-usage
  2. Tried release binaries from: https://github.com/9elements/converged-security-suite/releases/tag/v2.8.1 or https://github.com/9elements/converged-security-suite/releases/tag/v2.8.0

The end result on both cases looks like following:

root@tb:~# txt-suite exec-tests
INFO[0000] For more information about the documents and chapters, run: txt-suite -m 
INFO[0000] All tests          
INFO[0000] -------------------------------------------------- 
ReadMSR - gomsr.MSR context aborted with: too many open files
ReadMSR - gomsr.MSR context aborted with: too many open files
panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
github.com/9elements/go-linux-lowlevel-hw/pkg/hwapi.IA32FeatureControlIsLocked(...)
        /home/runner/go/pkg/mod/github.com/9elements/[email protected]/pkg/hwapi/msr_intel.go:54
github.com/9elements/converged-security-suite/v2/pkg/test.Ia32FeatureCtrl({0x8a3bd8, 0xb64240}, 0xc0000931d8?)
        /home/runner/work/converged-security-suite/converged-security-suite/pkg/test/cpu.go:230 +0xa5
github.com/9elements/converged-security-suite/v2/pkg/test.(*Test).Run(0xb307e0, {0x8a3bd8, 0xb64240}, 0xc00017f3b0)
        /home/runner/work/converged-security-suite/converged-security-suite/pkg/test/test.go:93 +0x16e
main.run({0x801d15?, 0xc000000004?}, {0xc00014e908, 0x4c, 0x792660?}, 0xc00017f3b0, 0x0)
        /home/runner/work/converged-security-suite/converged-security-suite/cmd/core/txt-suite/cmd.go:165 +0x2ab
main.(*execTestsCmd).Run(0xb43cd8, 0x2?)
        /home/runner/work/converged-security-suite/converged-security-suite/cmd/core/txt-suite/cmd.go:68 +0x5a7
reflect.Value.call({0x791dc0?, 0xb43cd8?, 0x8005a0?}, {0x801fe5, 0x4}, {0xc000010918, 0x1, 0x1?})
        /opt/hostedtoolcache/go/1.23.5/x64/src/reflect/value.go:581 +0xca6
reflect.Value.Call({0x791dc0?, 0xb43cd8?, 0xc000093bb0?}, {0xc000010918?, 0x8005a0?, 0x0?})
        /opt/hostedtoolcache/go/1.23.5/x64/src/reflect/value.go:365 +0xb9
github.com/alecthomas/kong.callMethod({0x801d42, 0x3}, {0x7cf460?, 0xb43cd8?, 0x3?}, {0x791dc0?, 0xb43cd8?, 0x0?}, 0xc00017f290)
        /home/runner/go/pkg/mod/github.com/alecthomas/[email protected]/callbacks.go:95 +0x51f
github.com/alecthomas/kong.(*Context).RunNode(0xc000134300, 0xc0000162d0, {0xc000093ed8, 0x1, 0x7bdda0?})
        /home/runner/go/pkg/mod/github.com/alecthomas/[email protected]/context.go:755 +0x825
github.com/alecthomas/kong.(*Context).Run(0x7cfe20?, {0xc000093ed8?, 0xc000093f00?, 0xc00003c613?})
        /home/runner/go/pkg/mod/github.com/alecthomas/[email protected]/context.go:780 +0x132
main.main()
        /home/runner/work/converged-security-suite/converged-security-suite/cmd/core/txt-suite/main.go:42 +0x285

Tried on 2 OS environments and different machines, Fedora 42 and cutom Yocto-based distro.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions