kernel_samsung_a53x/tools/testing/selftests/vm
Dev Jain deb54bfe6e selftests/mm: compaction_test: fix incorrect write of zero to nr_hugepages
[ Upstream commit 9ad665ef55eaad1ead1406a58a34f615a7c18b5e ]

Currently, the test tries to set nr_hugepages to zero, but that is not
actually done because the file offset is not reset after read().  Fix that
using lseek().

Link: https://lkml.kernel.org/r/20240521074358.675031-3-dev.jain@arm.com
Fixes: bd67d5c15cc1 ("Test compaction of mlocked memory")
Signed-off-by: Dev Jain <dev.jain@arm.com>
Cc: <stable@vger.kernel.org>
Cc: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Sri Jayaramappa <sjayaram@akamai.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 14:19:02 +01:00
..
charge_reserved_hugetlb.sh selftests/mm: switch to bash from sh 2024-11-18 23:19:35 +01:00
compaction_test.c selftests/mm: compaction_test: fix incorrect write of zero to nr_hugepages 2024-11-19 14:19:02 +01:00
config Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gup_benchmark.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hmm-tests.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hugepage-mmap.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hugepage-shm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hugetlb_reparenting_test.sh selftests/mm: fix awk usage in charge_reserved_hugetlb.sh and hugetlb_reparenting_test.sh that may cause error 2024-11-08 11:26:12 +01:00
khugepaged.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
map_fixed_noreplace.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
map_hugetlb.c Revert "selftests: mm: fix map_hugetlb failure on 64K page size systems" 2024-11-19 12:26:38 +01:00
map_populate.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mlock-random-test.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mlock2-tests.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mlock2.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mremap_dontunmap.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
on-fault-limit.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pkey-helpers.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pkey-powerpc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pkey-x86.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
protection_keys.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
run_vmtests Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
test_hmm.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
test_vmalloc.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
thuge-gen.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
transhuge-stress.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
userfaultfd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
va_128TBswitch.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
virtual_address_range.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
write_hugetlb_memory.sh selftests/mm: switch to bash from sh 2024-11-18 23:19:35 +01:00
write_to_hugetlbfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00