summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorYuezhang Mo <Yuezhang.Mo@sony.com>2025-10-27 17:03:41 +0800
committerNamjae Jeon <linkinjeon@kernel.org>2025-12-03 10:00:16 +0900
commit4e163c39dd4e70fcdce948b8774d96e0482b4a11 (patch)
tree709a414a773ef4978f18986241c463b0488c58a6 /tools/perf/scripts/python/flamegraph.py
parent9aee8de970f18c2aaaa348e3de86c38e2d956c1d (diff)
downloadkernel-4e163c39dd4e70fcdce948b8774d96e0482b4a11.tar.gz
exfat: zero out post-EOF page cache on file extension
xfstests generic/363 was failing due to unzeroed post-EOF page cache that allowed mmap writes beyond EOF to become visible after file extension. For example, in following xfs_io sequence, 0x22 should not be written to the file but would become visible after the extension: xfs_io -f -t -c "pwrite -S 0x11 0 8" \ -c "mmap 0 4096" \ -c "mwrite -S 0x22 32 32" \ -c "munmap" \ -c "pwrite -S 0x33 512 32" \ $testfile This violates the expected behavior where writes beyond EOF via mmap should not persist after the file is extended. Instead, the extended region should contain zeros. Fix this by using truncate_pagecache() to truncate the page cache after the current EOF when extending the file. Signed-off-by: Yuezhang Mo <Yuezhang.Mo@sony.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
16:18:23 -0800'>2020-12-15Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dto...Linus Torvalds 2020-11-17Input: ads7846 - drop unneeded asm/irq.h includeDmitry Torokhov 2020-11-17Input: ads7846 - fix unaligned access on 7845Dmitry Torokhov 2020-11-17Input: ads7846 - fix integer overflow on Rt calculationOleksij Rempel 2020-11-17Input: ads7846 - convert to full duplexOleksij Rempel 2020-11-17Input: ads7846 - fix race that causes missing releasesDavid Jander 2020-11-12Input: ads7846: do not overwrite spi->mode flags set by spi frameworkOleksij Rempel 2020-11-08Input: ads7846 - use kobj_to_dev() APIWang Qing