From owner-cvs-sys Wed May 24 18:35:31 1995 Return-Path: cvs-sys-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id SAA02641 for cvs-sys-outgoing; Wed, 24 May 1995 18:35:31 -0700 Received: (from davidg@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id SAA02626 ; Wed, 24 May 1995 18:35:26 -0700 Date: Wed, 24 May 1995 18:35:26 -0700 From: David Greenman Message-Id: <199505250135.SAA02626@freefall.cdrom.com> To: CVS-commiters, cvs-sys Subject: cvs commit: src/sys/miscfs/procfs procfs.h procfs_vfsops.c procfs_vnops.c Sender: cvs-sys-owner@freebsd.org Precedence: bulk davidg 95/05/24 18:35:25 Modified: sys/miscfs/kernfs kernfs_vfsops.c kernfs_vnops.c sys/miscfs/procfs procfs.h procfs_vfsops.c procfs_vnops.c Log: Fixed panic that resulted from mmaping files in kernfs and procfs. A regular user could panic the machine with a simple "tail /proc/curproc/mem" command. The problem was twofold: both kernfs and procfs didn't fill in the mnt_stat statfs struct (which would later lead to an integer divide fault in the vnode pager), and kernfs bogusly paniced if a bmap was attempted. Reviewed by: John Dyson