Subject: PR/34959 CVS commit: src/sys/fs/tmpfs
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Julio M. Merino Vidal <jmmv@netbsd.org>
List: netbsd-bugs
Date: 11/02/2006 15:40:14
The following reply was made to PR kern/34959; it has been noted by GNATS.

From: "Julio M. Merino Vidal" <jmmv@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/34959 CVS commit: src/sys/fs/tmpfs
Date: Thu,  2 Nov 2006 15:35:25 +0000 (UTC)

 Module Name:	src
 Committed By:	jmmv
 Date:		Thu Nov  2 15:35:25 UTC 2006
 
 Modified Files:
 	src/sys/fs/tmpfs: tmpfs_vnops.c
 
 Log Message:
 Make tmpfs_getpages behave as genfs_getpages by ignoring the input pages
 array's contents and returning all the requested pages.  Otherwise there
 are problems (accessing invalid memory) when the a_m vector is passed
 uninitialized as the NFS server code does.  Fixes PR kern/34959.
 
 Note that this is not a "real" fix.  While this makes tmpfs's getpages
 operation consistent with the behavior of other file systems, it does
 not resolve the different semantics between uvn_get and uao_get as
 described in PR kern/32166.  I'm adding a comment in the code mentioning
 exactly this so that it can be reviewed when this last problem is
 addressed.
 
 
 To generate a diff of this commit:
 cvs rdiff -r1.27 -r1.28 src/sys/fs/tmpfs/tmpfs_vnops.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.