selftests-damon-huge_count_read_write-provide-sufficiently-large-buffer-for-deprecated-file-read.patch removed from -mm tree
The quilt patch titled
Subject: selftests/damon/huge_count_read_write: provide sufficiently large buffer for DEPRECATED file read
has been removed from the -mm tree. Its filename was
selftests-damon-huge_count_read_write-provide-sufficiently-large-buffer-for-deprecated-file-read.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Andrew Paniakin <[email protected]>
Subject: selftests/damon/huge_count_read_write: provide sufficiently large buffer for DEPRECATED file read
Date: Mon, 28 Oct 2024 16:30:53 -0700
Patch series "damon/{self,kunit}tests: minor fixups for DAMON debugfs interface tests".
Fixup small broken window panes in DAMON selftests and kunit tests.
First four patches clean up DAMON debugfs interface selftests output, by fixing segmentation fault of a test program (patch 1), removing unnecessary debugging messages (patch 2), and hiding error messages from expected failures (patches 3 and 4).
Following two patches fix copy-paste mistakes in DAMON Kconfig help message that copied from debugfs kunit test (patch 5) and a comment on the debugfs kunit test code (patch 6).
This patch (of 6):
'huge_count_read_write' crashes with segmentation fault when reading DEPRECATED file of DAMON debugfs interface. This is not causing any problem for users or other tests because the purpose of the test is just ensuring the read is not causing kernel warning messages. Nonetheless, it makes the output unnecessarily noisy, and the DEPRECATED file is not properly being tested.
It happens because the size of the content of the file is larger than the size of the buffer for the read. The file contains about 170 characters. Increase the buffer size to 256 characters.
---
tools/testing/selftests/damon/huge_count_read_write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/damon/huge_count_read_write.c renamed from tools/testing/selftests/damon/huge_count_read_write.c~selftests-damon-huge_count_read_write-provide-sufficiently-large-buffer-for-deprecated-file-read +1 -1
@@ -18,7 +18,7 @@void write_read_with_huge_count (char *file) {int filedesc =open (file,O_RDWR ); -char buf[25 ]; +char buf[256 ];int ret;printf ("%s %s\n" , __func__, file);
_
Patches currently in -mm which might be from [email protected] are