Patch "tools/testing/selftests/mm/run_vmtests.sh: lower the ptrace permissions" has been added to the 6.6-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    tools/testing/selftests/mm/run_vmtests.sh: lower the ptrace permissions

to the 6.6-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     tools-testing-selftests-mm-run_vmtests.sh-lower-the-.patch
and it can be found in the queue-6.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 821403a42232c9a21623e425e50bbfbe9d3628ec
Author: Itaru Kitayama <itaru.kitayama@xxxxxxxxx>
Date:   Mon Oct 30 17:54:45 2023 +0900

    tools/testing/selftests/mm/run_vmtests.sh: lower the ptrace permissions
    
    [ Upstream commit 2ffc27b15b11c9584ac46335c2ed2248d2aa4137 ]
    
    On Ubuntu and probably other distros, ptrace permissions are tightend a
    bit by default; i.e., /proc/sys/kernel/yama/ptrace_score is set to 1.
    This cases memfd_secret's ptrace attach test fails with a permission
    error.  Set it to 0 piror to running the program.
    
    Link: https://lkml.kernel.org/r/20231030-selftest-v1-1-743df68bb996@xxxxxxxxx
    Signed-off-by: Itaru Kitayama <itaru.kitayama@xxxxxxxxx>
    Cc: Shuah Khan <shuah@xxxxxxxxxx>
    Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
    Stable-dep-of: 7c5e8d212d7d ("selftests: memfd_secret: don't build memfd_secret test on unsupported arches")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/testing/selftests/mm/run_vmtests.sh b/tools/testing/selftests/mm/run_vmtests.sh
index 3e2bc818d566f..7d31718ce8343 100755
--- a/tools/testing/selftests/mm/run_vmtests.sh
+++ b/tools/testing/selftests/mm/run_vmtests.sh
@@ -303,6 +303,7 @@ CATEGORY="hmm" run_test bash ./test_hmm.sh smoke
 # MADV_POPULATE_READ and MADV_POPULATE_WRITE tests
 CATEGORY="madv_populate" run_test ./madv_populate
 
+echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
 CATEGORY="memfd_secret" run_test ./memfd_secret
 
 # KSM KSM_MERGE_TIME_HUGE_PAGES test with size of 100




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux