Skip to content
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

client: use null snapc to check pool permission #6497

Merged
merged 1 commit into from Nov 9, 2015
Merged

Conversation

ukernel
Copy link
Contributor

@ukernel ukernel commented Nov 9, 2015

snap inodes' ->snaprealm can be NULL, so dereferencing it in
check_pool_perm() can cause segment fault. The pool permission
check does not write any data, so it's safe to use null snapc.

Fixes: #13714
Signed-off-by: Yan, Zheng zyan@redhat.com

snap inodes' ->snaprealm can be NULL, so dereferencing it in
check_pool_perm() can cause segment fault. The pool permission
check does not write any data, so it's safe to use null snapc.

Fixes: ceph#13714
Signed-off-by: Yan, Zheng <zyan@redhat.com>
jcsp added a commit that referenced this pull request Nov 9, 2015
client: use null snapc to check pool permission

Reviewed-by: John Spray <john.spray@redhat.com>
@jcsp jcsp merged commit 8965a49 into ceph:master Nov 9, 2015
@ukernel ukernel deleted the wip-13714 branch December 3, 2015 03:14
@ghost ghost added the cephfs Ceph File System label Feb 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cephfs Ceph File System
Projects
None yet
2 participants