-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
zpl_revalidate crashes on NULL pointer deref on nameidata #1226
Milestone
Comments
I think I have hit the same problem on Ubuntu 12.10, maybe the following would also be useful
|
Thanks for the clear bug report. I've made the obvious fix. 09a661e Fix zpl_revalidate() NULL deref |
dajhorn
referenced
this issue
in zfsonlinux/pkg-zfs
Jan 24, 2013
In zpl_revalidate() it's possible for the nameidata to be NULL for kernels which still accept the parameter. In particular, lookup_one_len() calls d_revalidate() with a NULL nameidata. Resolve the issue by checking for a NULL nameidata in which case just set the flags to 0. Signed-off-by: Brian Behlendorf <[email protected]> Closes #1226
unya
pushed a commit
to unya/zfs
that referenced
this issue
Dec 13, 2013
In zpl_revalidate() it's possible for the nameidata to be NULL for kernels which still accept the parameter. In particular, lookup_one_len() calls d_revalidate() with a NULL nameidata. Resolve the issue by checking for a NULL nameidata in which case just set the flags to 0. Signed-off-by: Brian Behlendorf <[email protected]> Closes openzfs#1226
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
At least in kernel 3.2, lookup_one_len can pass a NULL nameidata to d_revalidate. This crashes ZFS with a NULL pointer dereference.
BUG: unable to handle kernel NULL pointer dereference at 0000000000000038
The text was updated successfully, but these errors were encountered: