summaryrefslogtreecommitdiff
path: root/fs/udf/misc.c
diff options
context:
space:
mode:
authorSteven J. Magnani <steve.magnani@digidescorp.com>2019-08-14 07:50:02 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-03-17 08:31:42 +0100
commit6da42219d24fbdfc0691d6147dab83330efd0208 (patch)
tree753bb729fa3fb8b74bd5a12ecfc904a4209d655b /fs/udf/misc.c
parentcb13ac57e95da14c6e39b2423efbfb73e25e41fc (diff)
udf: reduce leakage of blocks related to named streams
[ Upstream commit ab9a3a737284b3d9e1d2ba43a0ef31b3ef2e2417 ] Windows is capable of creating UDF files having named streams. One example is the "Zone.Identifier" stream attached automatically to files downloaded from a network. See: https://msdn.microsoft.com/en-us/library/dn392609.aspx Modification of a file having one or more named streams in Linux causes the stream directory to become detached from the file, essentially leaking all blocks pertaining to the file's streams. Fix by saving off information about an inode's streams when reading it, for later use when its on-disk data is updated. Link: https://lore.kernel.org/r/20190814125002.10869-1-steve@digidescorp.com Signed-off-by: Steven J. Magnani <steve@digidescorp.com> Signed-off-by: Jan Kara <jack@suse.cz> Stable-dep-of: fc8033a34a3c ("udf: Preserve link count of system files") Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/udf/misc.c')
0 files changed, 0 insertions, 0 deletions