Re: [PATCH] [fs] exportfs/expfs.c Validate the dentry in exportfs_decode_fh function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Oct 21, 2018 at 10:26 AM Monthero <rhmcruiser@xxxxxxxxx> wrote:
>
> Hi Amir thanks for the pointer.
> I will get in touch with maintainer of 3.16
> Yes it covers Neil's commit and apart from that it would  need this replacement for dentry check in 3.16
>
> > -       if (S_ISDIR(result->d_inode->i_mode)) {
> > +       if (d_is_dir(result)) {
>

Fine, but Why?
How is dereferencing dentry->d_flags any better than dereferencing->d_inode
when dentry has an invalid value?

Thanks,
Amir.



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux