Skip to content

SIGSEGV on attempt to run bg-suite all tests #403

@miczyg1

Description

@miczyg1

When attempting to run bg-suite with all tests on a system with coreboot and Boot Guard/CBnT enabled, the suite panics and sens SIGSEGV:

./bg-suite exec-tests --set="all" -f coreboot.rom 
INFO[0000] For more information about the documents and chapters, run: bg-suite -m 
INFO[0000] All tests          
INFO[0000] -------------------------------------------------- 
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x6dfd15]
goroutine 1 [running]:
github.com/9elements/converged-security-suite/v2/pkg/provisioning/bootguard.(*BootGuard).SaneBPMSecurityProps(0xc0000afc20?)
	/home/miczyg/converged-security-suite/pkg/provisioning/bootguard/bootguard.go:957 +0x175
github.com/9elements/converged-security-suite/v2/pkg/test.BootGuardBPM({0xb6c1e0?, 0xb6c6e0?}, 0xc0001b2000)
	/home/miczyg/converged-security-suite/pkg/test/bootguard_tests.go:245 +0x37e
github.com/9elements/converged-security-suite/v2/pkg/test.(*Test).Run(0xb646e0, {0x8c5b78, 0xb8bf20}, 0xc0001b2000)
	/home/miczyg/converged-security-suite/pkg/test/test.go:93 +0x16e
main.run({0x823f5c?, 0x4?}, {0xc0000c8000, 0x8, 0x7afaa0?}, 0xc0001b2000, 0x0)
	/home/miczyg/converged-security-suite/cmd/core/bg-suite/cmd.go:182 +0x2ab
main.(*execTestsCmd).Run(0xb6b048, 0x2?)
	/home/miczyg/converged-security-suite/cmd/core/bg-suite/cmd.go:63 +0x545
reflect.Value.call({0x7af1a0?, 0xb6b048?, 0x822ee0?}, {0x824216, 0x4}, {0xc000012978, 0x1, 0x1?})
	/usr/lib/golang/src/reflect/value.go:584 +0xca6
reflect.Value.Call({0x7af1a0?, 0xb6b048?, 0xc000031bb0?}, {0xc000012978?, 0x822ee0?, 0x0?})
	/usr/lib/golang/src/reflect/value.go:368 +0xb9
github.com/alecthomas/kong.callMethod({0x823f92, 0x3}, {0x7f5880?, 0xb6b048?, 0x3?}, {0x7af1a0?, 0xb6b048?, 0x0?}, 0xc0001b3350)
	/home/miczyg/go/pkg/mod/github.com/alecthomas/[email protected]/callbacks.go:95 +0x51f
github.com/alecthomas/kong.(*Context).RunNode(0xc000038380, 0xc0001920f0, {0xc000031ed8, 0x1, 0x7d1140?})
	/home/miczyg/go/pkg/mod/github.com/alecthomas/[email protected]/context.go:755 +0x825
github.com/alecthomas/kong.(*Context).Run(0x7ef020?, {0xc000031ed8?, 0xc00006c060?, 0x0?})
	/home/miczyg/go/pkg/mod/github.com/alecthomas/[email protected]/context.go:780 +0x132
main.main()
	/home/miczyg/converged-security-suite/cmd/core/bg-suite/main.go:47 +0x29f

The suite was built from revision ea7b88b

Seems like a BPM parsing issue based on the trace?

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