Patch "selftests/tc-testing: Fix Error: failed to find target LOG" has been added to the 6.3-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/tc-testing: Fix Error: failed to find target LOG

to the 6.3-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-tc-testing-fix-error-failed-to-find-target.patch
and it can be found in the queue-6.3 subdirectory.

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



commit 1e70f9e3c758daa7a84622aac19bfb694f7dccdf
Author: Vlad Buslov <vladbu@xxxxxxxxxx>
Date:   Mon Jun 12 09:57:10 2023 +0200

    selftests/tc-testing: Fix Error: failed to find target LOG
    
    [ Upstream commit b849c566ee9c6ed78288a522278dcaf419f8e239 ]
    
    Add missing netfilter config dependency.
    
    Fixes following example error when running tests via tdc.sh for all XT
    tests:
    
     # $ sudo ./tdc.py -d eth2 -e 2029
     # Test 2029: Add xt action with log-prefix
     # exit: 255
     # exit: 0
     #  failed to find target LOG
     #
     # bad action parsing
     # parse_action: bad value (7:xt)!
     # Illegal "action"
     #
     # -----> teardown stage *** Could not execute: "$TC actions flush action xt"
     #
     # -----> teardown stage *** Error message: "Error: Cannot flush unknown TC action.
     # We have an error flushing
     # "
     # returncode 1; expected [0]
     #
     # -----> teardown stage *** Aborting test run.
     #
     # <_io.BufferedReader name=3> *** stdout ***
     #
     # <_io.BufferedReader name=5> *** stderr ***
     # "-----> teardown stage" did not complete successfully
     # Exception <class '__main__.PluginMgrTestFail'> ('teardown', ' failed to find target LOG\n\nbad action parsing\nparse_action: bad value (7:xt)!\nIllegal "action"\n', '"-----> teardown stage" did not complete successfully') (caught in test_runner, running test 2 2029 Add xt action with log-prefix stage teardown)
     # ---------------
     # traceback
     #   File "/images/src/linux/tools/testing/selftests/tc-testing/./tdc.py", line 495, in test_runner
     #     res = run_one_test(pm, args, index, tidx)
     #   File "/images/src/linux/tools/testing/selftests/tc-testing/./tdc.py", line 434, in run_one_test
     #     prepare_env(args, pm, 'teardown', '-----> teardown stage', tidx['teardown'], procout)
     #   File "/images/src/linux/tools/testing/selftests/tc-testing/./tdc.py", line 245, in prepare_env
     #     raise PluginMgrTestFail(
     # ---------------
     # accumulated output for this test:
     #  failed to find target LOG
     #
     # bad action parsing
     # parse_action: bad value (7:xt)!
     # Illegal "action"
     #
     # ---------------
     #
     # All test results:
     #
     # 1..1
     # ok 1 2029 - Add xt action with log-prefix # skipped - "-----> teardown stage" did not complete successfully
    
    Fixes: 910d504bc187 ("selftests/tc-testings: add selftests for xt action")
    Signed-off-by: Vlad Buslov <vladbu@xxxxxxxxxx>
    Reviewed-by: Pedro Tammela <pctammela@xxxxxxxxxxxx>
    Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/testing/selftests/tc-testing/config b/tools/testing/selftests/tc-testing/config
index 4638c63a339ff..aec4de8bea78b 100644
--- a/tools/testing/selftests/tc-testing/config
+++ b/tools/testing/selftests/tc-testing/config
@@ -6,6 +6,7 @@ CONFIG_NF_CONNTRACK_MARK=y
 CONFIG_NF_CONNTRACK_ZONES=y
 CONFIG_NF_CONNTRACK_LABELS=y
 CONFIG_NF_NAT=m
+CONFIG_NETFILTER_XT_TARGET_LOG=m
 
 CONFIG_NET_SCHED=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