-
Notifications
You must be signed in to change notification settings - Fork 3.8k
fsverity_test.go: fix nil pointer derefence, fix test fail, fix minor/major device numbers resolving #10972
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 <cheembox573@gmail.com>
|
Signed-off-by: Alexey Lunev <cheembox573@gmail.com>
|
/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.