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

kraken: cephfs: client: segfault on ceph_rmdir path / #13030

Merged
merged 1 commit into from Jan 25, 2017

Conversation

smithfarm
Copy link
Contributor

The segfaulting in the rmdir function is caused by calling
filepath::last_dentry() function.
last_dentry() function assumes that the bits vector has always at
least one element, which is not the case for the the filepath object
created with "/" input.
This commit also fixes other functions affected by this bug:
link, unlink, rename, mkdir, mknod and symlink.

Fixes: http://tracker.ceph.com/issues/9935
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
(cherry picked from commit 6ed7f23)
@smithfarm smithfarm self-assigned this Jan 20, 2017
@smithfarm smithfarm added this to the kraken milestone Jan 20, 2017
@smithfarm smithfarm added bug-fix core cephfs Ceph File System and removed core labels Jan 20, 2017
@jcsp
Copy link
Contributor

jcsp commented Jan 25, 2017

@jcsp jcsp merged commit 08b560c into ceph:kraken Jan 25, 2017
@smithfarm smithfarm deleted the wip-18612-kraken branch January 26, 2017 03:18
@smithfarm smithfarm changed the title kraken: client: segfault on ceph_rmdir path / kraken: cephfs: client: segfault on ceph_rmdir path / Aug 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-fix cephfs Ceph File System
Projects
None yet
3 participants