cvs commit: src/sys/fs/devfs devfs_vnops.c src/sys/vm device_pager.c
Konstantin Belousov
kib at FreeBSD.org
Fri Sep 26 14:51:18 UTC 2008
kib 2008-09-26 14:50:49 UTC
FreeBSD src repository
Modified files:
sys/fs/devfs devfs_vnops.c
sys/vm device_pager.c
Log:
SVN rev 183383 on 2008-09-26 14:50:49Z by kib
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
Revision Changes Path
1.168 +27 -12 src/sys/fs/devfs/devfs_vnops.c
1.86 +6 -0 src/sys/vm/device_pager.c
More information about the cvs-src
mailing list