From owner-cvs-src@FreeBSD.ORG Fri Sep 26 14:51:17 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D4915106569B; Fri, 26 Sep 2008 14:51:17 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id C19B28FC27; Fri, 26 Sep 2008 14:51:17 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id m8QEpHFm043707; Fri, 26 Sep 2008 14:51:17 GMT (envelope-from kib@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id m8QEpH5F043704; Fri, 26 Sep 2008 14:51:17 GMT (envelope-from kib@repoman.freebsd.org) Message-Id: <200809261451.m8QEpH5F043704@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to kib@repoman.freebsd.org using -f From: Konstantin Belousov Date: Fri, 26 Sep 2008 14:50:49 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/fs/devfs devfs_vnops.c src/sys/vm device_pager.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Sep 2008 14:51:18 -0000 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