diff options
author | Eric Biggers <[email protected]> | 2023-01-22 23:04:14 -0800 |
---|---|---|
committer | Jaegeuk Kim <[email protected]> | 2023-01-31 10:47:46 -0800 |
commit | 9a5571cff4ffcfc24847df9fd545cc5799ac0ee5 (patch) | |
tree | 4be04bffc8d40c40e636eb3aa383fdd1dea91d3c /tools/perf/scripts/python/stackcollapse.py | |
parent | b1b9896718bc1a212dc288ad66a5fa2fef11353d (diff) |
f2fs: fix information leak in f2fs_move_inline_dirents()
When converting an inline directory to a regular one, f2fs is leaking
uninitialized memory to disk because it doesn't initialize the entire
directory block. Fix this by zero-initializing the block.
This bug was introduced by commit 4ec17d688d74 ("f2fs: avoid unneeded
initializing when converting inline dentry"), which didn't consider the
security implications of leaking uninitialized memory to disk.
This was found by running xfstest generic/435 on a KMSAN-enabled kernel.
Fixes: 4ec17d688d74 ("f2fs: avoid unneeded initializing when converting inline dentry")
Cc: <[email protected]> # v4.3+
Signed-off-by: Eric Biggers <[email protected]>
Reviewed-by: Chao Yu <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions