freebsd-skq/sys/fs
Konstantin Belousov 7818e0a545 Save previous content of the td_fpop before storing the current
filedescriptor into it. Make sure that td_fpop is NULL when calling
d_mmap from dev_pager_getpages().

Change guards against td_fpop field being non-NULL with private state
for another device, and against sudden clearing the td_fpop. This
could occur when either a driver method calls another driver through
the filedescriptor operation, or a page fault happen while driver is
writing to a memory backed by another driver.

Noted by:	rwatson
Tested by:	rnoland
MFC after:	3 days
2008-09-26 14:50:49 +00:00
..
cd9660 Decontextualize the couplet VOP_GETATTR / VOP_SETATTR as the passed thread 2008-08-28 15:23:18 +00:00
coda Remove unit2minor() use from kernel code. 2008-09-26 14:19:52 +00:00
deadfs Below is slightly edited description of the LOR by Tor Egge: 2007-01-22 11:25:22 +00:00
devfs Save previous content of the td_fpop before storing the current 2008-09-26 14:50:49 +00:00
fdescfs fdescfs, devfs, mqueuefs, nfs, portalfs, pseudofs, tmpfs and xfs 2008-09-20 19:50:52 +00:00
fifofs Remove kernel support for M:N threading. 2008-03-12 10:12:01 +00:00
hpfs Initialize va_rdev to NODEV instead of 0 or VNOVAL in VOP_GETATTR(). 2008-09-20 19:49:15 +00:00
msdosfs Initialize va_rdev to NODEV instead of 0 or VNOVAL in VOP_GETATTR(). 2008-09-20 19:49:15 +00:00
ntfs Initialize va_rdev to NODEV instead of 0 or VNOVAL in VOP_GETATTR(). 2008-09-20 19:49:15 +00:00
nullfs Fix two small typo's in comments in the nullfs vnops code. 2008-09-11 20:15:34 +00:00
nwfs Decontextualize the couplet VOP_GETATTR / VOP_SETATTR as the passed thread 2008-08-28 15:23:18 +00:00
portalfs fdescfs, devfs, mqueuefs, nfs, portalfs, pseudofs, tmpfs and xfs 2008-09-20 19:50:52 +00:00
procfs Remove kernel support for M:N threading. 2008-03-12 10:12:01 +00:00
pseudofs fdescfs, devfs, mqueuefs, nfs, portalfs, pseudofs, tmpfs and xfs 2008-09-20 19:50:52 +00:00
smbfs Initialize va_rdev to NODEV instead of 0 or VNOVAL in VOP_GETATTR(). 2008-09-20 19:49:15 +00:00
tmpfs The kernel implemented 'memcmp' is an alias for 'bcmp'. However, memcmp 2008-09-23 14:45:10 +00:00
udf Initialize va_rdev to NODEV instead of 0 or VNOVAL in VOP_GETATTR(). 2008-09-20 19:49:15 +00:00
unionfs Decontextualize the couplet VOP_GETATTR / VOP_SETATTR as the passed thread 2008-08-28 15:23:18 +00:00