freebsd-dev/sys/fs
Konstantin Belousov 0e9bd89d7d Devfs replaces file ops vector with devfs-specific one in devfs_open(),
before the struct file is fully initialized in vn_open(), in particular,
fp->f_vnode is NULL. Other thread calling file operation before f_vnode
is set results in NULL pointer dereference in devvn_refthread().

Initialize f_vnode before calling d_fdopen() cdevsw method, that might
set file ops too.

Reported and tested by:	Chris Timmons <cwt networks cwu edu>
	(RELENG_7 version)
MFC after:	3 days
2009-05-15 19:23:05 +00:00
..
cd9660 Remove the thread argument from the FSD (File-System Dependent) parts of 2009-05-11 15:33:26 +00:00
coda Remove the thread argument from the FSD (File-System Dependent) parts of 2009-05-11 15:33:26 +00:00
deadfs Add a simple VOP_VPTOCNP implementation for deadfs which returns EBADF. 2008-12-12 00:59:36 +00:00
devfs Devfs replaces file ops vector with devfs-specific one in devfs_open(), 2009-05-15 19:23:05 +00:00
fdescfs Report all fdescfs vnodes as VCHR for stat(2). Fake the unique 2009-05-12 09:28:45 +00:00
fifofs Remove VOP_LEASE and supporting functions. This hasn't been used since 2009-04-10 10:52:19 +00:00
hpfs Remove the thread argument from the FSD (File-System Dependent) parts of 2009-05-11 15:33:26 +00:00
msdosfs Remove the thread argument from the FSD (File-System Dependent) parts of 2009-05-11 15:33:26 +00:00
nfs Apply changes to the experimental nfs server so that it uses the security 2009-05-14 21:39:08 +00:00
nfsclient Modify the diskless booting code in sys/fs/nfsclient to be compatible 2009-05-15 16:03:11 +00:00
nfsserver Apply changes to the experimental nfs server so that it uses the security 2009-05-14 21:39:08 +00:00
ntfs Remove the thread argument from the FSD (File-System Dependent) parts of 2009-05-11 15:33:26 +00:00
nullfs Remove the thread argument from the FSD (File-System Dependent) parts of 2009-05-11 15:33:26 +00:00
nwfs Remove the thread argument from the FSD (File-System Dependent) parts of 2009-05-11 15:33:26 +00:00
portalfs Remove the thread argument from the FSD (File-System Dependent) parts of 2009-05-11 15:33:26 +00:00
procfs Use the p_sysent->sv_flags flag SV_ILP32 to detect 32bit process 2009-03-02 18:43:50 +00:00
pseudofs Remove the thread argument from the FSD (File-System Dependent) parts of 2009-05-11 15:33:26 +00:00
smbfs Eliminate unnecessary clearing of the page's dirty mask from various 2009-05-15 04:33:35 +00:00
tmpfs Remove the thread argument from the FSD (File-System Dependent) parts of 2009-05-11 15:33:26 +00:00
udf Remove the thread argument from the FSD (File-System Dependent) parts of 2009-05-11 15:33:26 +00:00
unionfs Remove the thread argument from the FSD (File-System Dependent) parts of 2009-05-11 15:33:26 +00:00