Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Sep 2008 14:50:49 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/fs/devfs devfs_vnops.c src/sys/vm device_pager.c
Message-ID:  <200809261451.m8QEpH5F043704@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200809261451.m8QEpH5F043704>