Commit 37dfcd3
committed
linux-qcom-next: enable BINFMT_MISC to prevent podman crash
Without binfmt misc handling, podman crashes:
root@qcs6490-rubikpi3:~# docker info
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0xaaaad9db8ed4]
goroutine 1 [running]:
github.com/containers/podman/v5/pkg/emulation.registeredBinfmtMisc.func1({0xaaaada0fd691, 0x18}, {0x0, 0x0}, {0xaaaada902400, 0x40004f6360})
github.com/containers/podman/v5/pkg/emulation/binfmtmisc_linux.go:33 +0xb4
path/filepath.WalkDir({0xaaaada0fd691, 0x18}, 0x400004f640)
path/filepath/path.go:398 +0x9c
github.com/containers/podman/v5/pkg/emulation.registeredBinfmtMisc()
github.com/containers/podman/v5/pkg/emulation/binfmtmisc_linux.go:26 +0x50
github.com/containers/podman/v5/pkg/emulation.Registered()
github.com/containers/podman/v5/pkg/emulation/emulation.go:11 +0x1c
github.com/containers/podman/v5/pkg/domain/infra/abi.(*ContainerEngine).Info(0x4000076728, {0x400068bc00?, 0x400004f838?})
github.com/containers/podman/v5/pkg/domain/infra/abi/system.go:31 +0x38
github.com/containers/podman/v5/cmd/podman/system.info(0xaaaadb58dec0, {0xaaaadb6a32e0?, 0x0?, 0x0?})
github.com/containers/podman/v5/cmd/podman/system/info.go:78 +0x50
github.com/spf13/cobra.(*Command).execute(0xaaaadb58dec0, {0x400003e150, 0x0, 0x0})
github.com/spf13/[email protected]/command.go:1015 +0x7d4
github.com/spf13/cobra.(*Command).ExecuteC(0xaaaadb575000)
github.com/spf13/[email protected]/command.go:1148 +0x350
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/[email protected]/command.go:1071
github.com/spf13/cobra.(*Command).ExecuteContext(...)
github.com/spf13/[email protected]/command.go:1064
main.Execute()
github.com/containers/podman/v5/cmd/podman/root.go:120 +0x54
main.main()
github.com/containers/podman/v5/cmd/podman/main.go:74 +0x494
Signed-off-by: Koen Kooi <[email protected]>1 parent 2601ef7 commit 37dfcd3
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
| 357 | + | |
| 358 | + | |
0 commit comments