Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Jul 2019 08:53:52 +0000 (UTC)
From:      Fedor Uporov <fsu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r349800 - head/sys/fs/ext2fs
Message-ID:  <201907070853.x678rqRa066947@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: fsu
Date: Sun Jul  7 08:53:52 2019
New Revision: 349800
URL: https://svnweb.freebsd.org/changeset/base/349800

Log:
  Remove unneeded mount point unlock call.
  
  Reported by:    Christopher Krah, Thomas Barabosch, and Jan-Niclas Hilgert of Fraunhofer FKIE
  Reported as:    FS-11-EXT2-6: Denial Of Service in write-1 (ext2_balloc)
  
  MFC after:	2 weeks

Modified:
  head/sys/fs/ext2fs/ext2_balloc.c

Modified: head/sys/fs/ext2fs/ext2_balloc.c
==============================================================================
--- head/sys/fs/ext2fs/ext2_balloc.c	Sun Jul  7 06:57:04 2019	(r349799)
+++ head/sys/fs/ext2fs/ext2_balloc.c	Sun Jul  7 08:53:52 2019	(r349800)
@@ -308,7 +308,6 @@ ext2_balloc(struct inode *ip, e2fs_lbn_t lbn, int size
 		 */
 		if ((error = bwrite(nbp)) != 0) {
 			ext2_blkfree(ip, nb, fs->e2fs_bsize);
-			EXT2_UNLOCK(ump);
 			brelse(bp);
 			return (error);
 		}



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