NetBSD-Bugs archive

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

Re: kern/58146: msdosfs crash on rename



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

From: Rhialto <rhialto%falu.nl@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: Rhialto <rhialto%falu.nl@localhost>
Subject: Re: kern/58146: msdosfs crash on rename
Date: Fri, 3 May 2024 11:45:47 +0200

 mlelstv@ observed:
 
 Maybe that's rump.
 
 msdosfs:
         KASSERT(tcnp->cn_cred == cred);
 
 genfs:  /*
          * XXX Want a better equality test.  `tcnp->cn_cred == cred'
          * hoses p2k because puffs transmits the creds separately and
          * allocates distinct but equivalent structures for them.
          */
         KASSERT(kauth_cred_uidmatch(cred, tcnp->cn_cred));
 
 
 When I replaced the KASSERT in usr/src/sys/fs/msdosfs/msdosfs_rename.c and
 tested it (correctly) this indeed fixed the problem.
 


Home | Main Index | Thread Index | Old Index