lists.openwall.net   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]
Message-Id: <cover.1324543719.git.dmitry.kasatkin@intel.com>
Date:	Thu, 22 Dec 2011 10:55:24 +0200
From:	Dmitry Kasatkin <dmitry.kasatkin@...el.com>
To:	linux-fsdevel@...r.kernel.org,
	linux-security-module@...r.kernel.org
Cc:	akpm@...ux-foundation.org, viro@...iv.linux.org.uk,
	linux-kernel@...r.kernel.org, zohar@...ux.vnet.ibm.com
Subject: [PATCH v2 0/2] vfs: truncate bug fixes

When a file is opened with O_TRUNC or truncated with truncate()/ftruncate(),
and then closed, iversion is not updated. This patch uses ATTR_OPEN flag,
which is currently used to identify files opened with O_TRUNC,
as an indication to increment iversion.
Also it adds passing of this flag from do_sys_truncate and do_sys_ftruncate.
To reflect real meaning, ATTR_OPEN is suggested to be renamed to ATTR_TRUNC.

Dmitry Kasatkin (2):
  vfs: iversion truncate bug fix
  vfs: ATTR_OPEN rename

 fs/attr.c          |    3 +++
 fs/fuse/dir.c      |    4 ++--
 fs/namei.c         |    2 +-
 fs/open.c          |    5 +++--
 include/linux/fs.h |    2 +-
 5 files changed, 10 insertions(+), 6 deletions(-)

-- 
1.7.4.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ