lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 28 Sep 2012 19:44:00 +0400
From:	Dmitry Monakhov <>
	Dmitry Monakhov <>
Subject: [PATCH 00/11] ext4: Bunch of DIO/AIO fixes V4

There are number of races exist caused by lack of synchronization
between DIO/AIO workers and truncate/fsync/punch_hole routines
This patch series try to optimize and fix existing DIO/AIO code

I observe significant performance improvements for big SMP hosts.

Testcases which helps me to catch this type of bugs was posted here
or available on my github repo:
plese run 286,287,288

# first two are cleanups
ext4: ext4_inode_info diet
ext4: give i_aiodio_unwritten more appropriate name
# Bugfixes and improvements
ext4: fix unwritten counter leakage
ext4: completed_io locking cleanup V4
ext4: remove ext4_end_io()
ext4: serialize dio nonlocked reads with defrag workers V3
ext4: serialize unlocked dio reads with truncate
ext4: endless truncate due to nonlocked dio readers V2
ext4: serialize truncate with owerwrite DIO workers V2
# Nasty panch_hole regressions
ext4: punch_hole should wait for DIO writers V2
ext4: fix ext_remove_space for punch_hole case

Changes from V3:
	- satisfy ./ rules
 	- Rework 'completed_io locking cleanup'
	- fix mistype in 'serialize dio nonlocked reads with defrag workers V3'
	- add extra inode's flag checks to 'punch_hole should wait for DIO'
Changes from V2:
	Fix use-after-free for queued end_io_work.

 fs/ext4/ext4.h        |   36 +++++++-
 fs/ext4/extents.c     |   92 ++++++++++++++--------
 fs/ext4/file.c        |    6 -
 fs/ext4/fsync.c       |   81 --------------------
 fs/ext4/indirect.c    |   18 +++-
 fs/ext4/inode.c       |   49 +++++-------
 fs/ext4/move_extent.c |    8 +
 fs/ext4/page-io.c     |  202 ++++++++++++++++++++++++++++++--------------------
 fs/ext4/super.c       |    3
 9 files changed, 262 insertions(+), 235 deletions(-)

Signed-off-by: Dmitry Monakhov <>
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to
More majordomo info at

Powered by blists - more mailing lists