Patch "selftests/lkdtm: Add UBSAN config" has been added to the 5.17-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

    selftests/lkdtm: Add UBSAN config

to the 5.17-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:
     selftests-lkdtm-add-ubsan-config.patch
and it can be found in the queue-5.17 subdirectory.

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



commit 99e68e3a3e60933bbed58b60daad4ff426d1d23c
Author: Muhammad Usama Anjum <usama.anjum@xxxxxxxxxxxxx>
Date:   Fri Jan 21 19:51:53 2022 +0500

    selftests/lkdtm: Add UBSAN config
    
    [ Upstream commit 1900be289b598b2c553b3add13e491c0bb8a8550 ]
    
    UBSAN_BOUNDS and UBSAN_TRAP depend on UBSAN config option.
    merge_config.sh script generates following warnings if parent config
    doesn't have UBSAN config already enabled and UBSAN_BOUNDS/UBSAN_TRAP
    config options don't get added to the parent config.
    
    Value requested for CONFIG_UBSAN_BOUNDS not in final .config
    Requested value:  CONFIG_UBSAN_BOUNDS=y
    Actual value:
    
    Value requested for CONFIG_UBSAN_TRAP not in final .config
    Requested value:  CONFIG_UBSAN_TRAP=y
    Actual value:
    
    Fix this by including UBSAN config.
    
    Fixes: c75be56e35b2 ("lkdtm/bugs: Add ARRAY_BOUNDS to selftests")
    Signed-off-by: Muhammad Usama Anjum <usama.anjum@xxxxxxxxxxxxx>
    Acked-by: Kees Cook <keescook@xxxxxxxxxxxx>
    Signed-off-by: Shuah Khan <skhan@xxxxxxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/testing/selftests/lkdtm/config b/tools/testing/selftests/lkdtm/config
index a26a3fa9e925..8bd847f0463c 100644
--- a/tools/testing/selftests/lkdtm/config
+++ b/tools/testing/selftests/lkdtm/config
@@ -6,6 +6,7 @@ CONFIG_HARDENED_USERCOPY=y
 # CONFIG_HARDENED_USERCOPY_FALLBACK is not set
 CONFIG_RANDOMIZE_KSTACK_OFFSET_DEFAULT=y
 CONFIG_INIT_ON_ALLOC_DEFAULT_ON=y
+CONFIG_UBSAN=y
 CONFIG_UBSAN_BOUNDS=y
 CONFIG_UBSAN_TRAP=y
 CONFIG_STACKPROTECTOR_STRONG=y



[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