CVSROOT:        /cvs
Module name:    src
Changes by:     b...@cvs.openbsd.org    2016/04/29 08:40:36

Modified files:
        sys/dev        : diskmap.c 
        sys/kern       : vfs_lookup.c 
        sys/nfs        : nfs_serv.c nfs_subs.c nfs_var.h nfs_vnops.c 
        sys/sys        : namei.h 

Log message:
Fix some gibbering horrors due to uninitialized struct nameidata's

1) turn NDINITAT into a function and make the macros point to it
with the later goal of getting rid of them.

2) Sweep the kernel for places where people make a struct nameidata manually
on the stack and fill in what they hope are the required fields and count
on prayer and clean living to always get them right. Instead use NDINIT
everywhere. NFS was especially bad for this and there have likely
been things lurking there for a while.

3) Add a couple of strategic KASSERT's to catch future offenders.

ok krw@ sthen@ deraadt@

Reply via email to