Re: [Linux-kernel-mentees] [PATCH] fs: reiserfs: xattr: Fix null pointer derefernce in open_xa_root()

2020-10-01 Thread Anmol karn
On Thu, Oct 1, 2020 at 2:58 PM Jan Kara wrote: > > On Thu 01-10-20 14:35:47, Anmol Karn wrote: > > d_really_is_negative() checks for the dentry->d_inode whether it's NULL > > or not, but in open_xa_root(), when it checks 'privroot->d_inode', it > > doesn't check whether privroot is NULL or not,

Re: [Linux-kernel-mentees] [PATCH] fs: reiserfs: xattr: Fix null pointer derefernce in open_xa_root()

2020-10-01 Thread Jan Kara
On Thu 01-10-20 14:35:47, Anmol Karn wrote: > d_really_is_negative() checks for the dentry->d_inode whether it's NULL > or not, but in open_xa_root(), when it checks 'privroot->d_inode', it > doesn't check whether privroot is NULL or not, this leads to a null > pointer dereference while calling it

[Linux-kernel-mentees] [PATCH] fs: reiserfs: xattr: Fix null pointer derefernce in open_xa_root()

2020-10-01 Thread Anmol Karn
d_really_is_negative() checks for the dentry->d_inode whether it's NULL or not, but in open_xa_root(), when it checks 'privroot->d_inode', it doesn't check whether privroot is NULL or not, this leads to a null pointer dereference while calling it from open_xa_dir() while initializing xaroot.