NetBSD-Bugs archive

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

Re: kern/50664: "cd .." over NFS/ZFS can panic kernel



The following reply was made to PR kern/50664; it has been noted by GNATS.

From: "J. Hannken-Illjes" <hannken%eis.cs.tu-bs.de@localhost>
To: Brian Marcotte <marcotte%panix.com@localhost>
Cc: gnats-bugs%NetBSD.org@localhost
Subject: Re: kern/50664: "cd .." over NFS/ZFS can panic kernel
Date: Mon, 18 Jan 2016 13:19:19 +0100

 My bad, sorry.  What happens with
 
 --- nfs_vnops.c 12 Aug 2012 12:59:48 -0000      1.293.4.1
 +++ nfs_vnops.c 18 Jan 2016 12:18:01 -0000
 @@ -951,8 +951,12 @@ dorpc:
                 /*
                  * as we handle "." lookup locally, this should be
                  * a broken server.
                  */
 +               if (cnp->cn_namelen != 1 || cnp->cn_nameptr[0] != '.') {
 +                       m_freem(mrep);
 +                       return EOPNOTSUPP;
 +               }
                 vref(dvp);
                 newvp = dvp;
  #ifndef NFS_V2_ONLY
                 if (v3) {
 
 --
 J. Hannken-Illjes - hannken%eis.cs.tu-bs.de@localhost - TU Braunschweig (Germany)
 


Home | Main Index | Thread Index | Old Index