commit 6aa4d0e08f35c8d02455bfec716220338860ee0a
tree f8a154c19a1041e92c64721a29d3bb62f77967df
parent c075f6c0733daf1ef64f79b0e43ba13d2b74eb96
author Terry Tritton <terry.tritton@linaro.org> 2025-12-09 21:16:29 +0000
committer Petr Vorel <pvorel@suse.cz> 2026-01-30 00:58:12 +0100

    ioctl_pidfd0[2-6]: Add CONFIG_USER_NS and CONFIG_PID_NS to needs_kconfigs
    
    The flags CLONE_NEWUSER and CLONE_NEWPID require specific namespace support.
    Add CONFIG_USER_NS and CONFIG_PID_NS to needs_kconfigs so these tests return
    TCONF instead of failing.
    
    Link: https://lore.kernel.org/ltp/20251209211629.95436-1-terry.tritton@linaro.org/
    Reviewed-by: Andrea Cervesato <andrea.cervesato@suse.com>
    Reviewed-by: Petr Vorel <pvorel@suse.cz>
    Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
    Signed-off-by: Terry Tritton <terry.tritton@linaro.org>


:100644 100644 c6f8a02fe3ee5e8e4e9b803b8e5f2bdbfbf3097c f4a53776f1bd790df8a1cc5226aef24894488576 M	testcases/kernel/syscalls/ioctl/ioctl_pidfd02.c
:100644 100644 2c785004c0c5ed7b5a5f45e8774486746ece48ba 1296229941333b7d19a493829da33c4ca2579ea4 M	testcases/kernel/syscalls/ioctl/ioctl_pidfd03.c
:100644 100644 ff431606804b905ea70911f8bc4b6fb7b22702d6 cf2610688cfefe16139bcc4e17c8976e21a436bb M	testcases/kernel/syscalls/ioctl/ioctl_pidfd04.c
:100644 100644 278e64cefc1b9a6470a51151dddeb2b2c50376ce de39bc37ce5dd9d4a7c70d84978f83927baa0b6d M	testcases/kernel/syscalls/ioctl/ioctl_pidfd05.c
:100644 100644 95c09dbdaa2351cfbae681550a05bb2623cc2e1a 7ac11716893f298f79423c3d5ae0aaacf28ad66c M	testcases/kernel/syscalls/ioctl/ioctl_pidfd06.c
commit c075f6c0733daf1ef64f79b0e43ba13d2b74eb96
tree 8fbb7a0aa287fc88c2e277fe3c06306bea9b5967
parent 7e62f9046cca047a48e65544a2ecb7e9e7efccad
author Li Wang <liwang@redhat.com> 2026-01-29 18:00:11 +0800
committer Li Wang <liwang@redhat.com> 2026-01-30 07:57:28 +0800

    cve-2017-17052: tolerate ENOMEM during test
    
    As each iteration of mmap_thread() grabs a fresh 16 MiB MAP_POPULATE
    region and never releases it. With the loop runs, those regions
    accumulate consuming both virtual address space and committed physical
    memory right away instead of lazily.
    
    Easily mmap() fails with ENOMEM on smaller/limit RAM resource system.
    
    Error Log:
    
      cve-2017-17052.c:48: TBROK: mmap((nil),16777216,PROT_READ(1),32802,-1,0) failed: ENOMEM (12)
      tst_test.c:479: TINFO: Child process reported TBROK killing the test
      tst_test.c:1909: TINFO: Killed the leftover descendant processes
    
    Consider there is no practical upper bound on this allocation pattern,
    so setting .min_mem_avail may not helps. Here we just tolerate ENOMEM
    during the mmap_thread() looping.
    
    Signed-off-by: Li Wang <liwang@redhat.com>
    Reviewed-by: Petr Vorel <pvorel@suse.cz>
    Reviewed-by: Cyril Hrubis <chrubis@suse.cz>


:100644 100644 700eb782e19ffc4a85aea3a99b5a9570a327a76d f1bff3db2f451283ad3750fe38556bb72e30d83b M	testcases/cve/cve-2017-17052.c
