fsverity_test.go: fix nil pointer derefence, fix test fail, fix minor/major device numbers resolving#10972
fsverity_test.go: fix nil pointer derefence, fix test fail, fix minor/major device numbers resolving#10972samuelkarp merged 2 commits intocontainerd:mainfrom xbt573:main
Conversation
|
Hi @xbt573. Thanks for your PR. I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
Your commits are missing the |
Signed-off-by: Alexey Lunev <[email protected]>
|
Signed-off-by: Alexey Lunev <[email protected]>
|
/ok-to-test |
|
thank you! |
Nil pointer deference happens when
IsEnabledreturnsfalse, nilanderr.Error()is called on nil value.Currently test fails when
IsEnabledreturnsfalse, nil, i don't think it's fine (plus it only happens on one architecture,s390x), so i changed it to only acceptfalse, err, or this test should also reportfalse, nil?Taken from https://tip.golang.org/src/cmd/vendor/golang.org/x/sys/unix/dev_linux.go
Current formulas for resolving major/minor device numbers is incorrect, which leads to warnings like this:
I also renamed variables a bit to fix conflict with built-in identifier
min.Tested on
x86_64ands390x(virtual machine) architectures.Should fix #10971 too.