diff options
author | 2010-01-24 18:12:46 +0000 | |
---|---|---|
committer | 2010-01-24 18:12:46 +0000 | |
commit | 91b81d9e26ad6c7b89998d82fee671aec3731006 (patch) | |
tree | 98cc676e158c277212d0676febbbe1b508e9a996 | |
parent | - add missing "Xr" where it was obviously intended. (diff) | |
download | wireguard-openbsd-91b81d9e26ad6c7b89998d82fee671aec3731006.tar.xz wireguard-openbsd-91b81d9e26ad6c7b89998d82fee671aec3731006.zip |
"Fix" crash caused by FAT32 re-use of small buf from buffer cache,
at least until problem (starting somewhere between 4.1 and 4.2)
in buffer cache is found and a general fix is in place. Simply
B_INVAL small buf so it doesn't come back.
Addresses PR#6290, confirmed by submitter RD Thrush.
ok tedu@ "should be marked XXX" thib@
-rw-r--r-- | sys/msdosfs/msdosfs_vfsops.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/msdosfs/msdosfs_vfsops.c b/sys/msdosfs/msdosfs_vfsops.c index 20f0ad8fc63..502fd89a945 100644 --- a/sys/msdosfs/msdosfs_vfsops.c +++ b/sys/msdosfs/msdosfs_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: msdosfs_vfsops.c,v 1.56 2009/12/19 00:27:17 krw Exp $ */ +/* $OpenBSD: msdosfs_vfsops.c,v 1.57 2010/01/24 18:12:46 krw Exp $ */ /* $NetBSD: msdosfs_vfsops.c,v 1.48 1997/10/18 02:54:57 briggs Exp $ */ /*- @@ -475,6 +475,8 @@ msdosfs_mountfs(struct vnode *devvp, struct mount *mp, struct proc *p, ; else pmp->pm_fsinfo = 0; + /* XXX make sure this tiny buf doesn't come back in fillinusemap! */ + SET(bp->b_flags, B_INVAL); brelse(bp); bp = NULL; } |