https://lists.ubuntu.com/archives/kernel-team/2021-May/120569.html

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-oem-5.6 in Ubuntu.
https://bugs.launchpad.net/bugs/1887661

Title:
  pmtu.sh from net in ubuntu_kernel_selftests failed with no error
  message

Status in ubuntu-kernel-tests:
  In Progress
Status in linux package in Ubuntu:
  Fix Released
Status in linux-oem-5.10 package in Ubuntu:
  Invalid
Status in linux-oem-5.6 package in Ubuntu:
  Invalid
Status in linux source package in Focal:
  In Progress
Status in linux-oem-5.10 source package in Focal:
  In Progress
Status in linux-oem-5.6 source package in Focal:
  In Progress
Status in linux source package in Groovy:
  In Progress
Status in linux-oem-5.10 source package in Groovy:
  Invalid
Status in linux-oem-5.6 source package in Groovy:
  Invalid
Status in linux source package in Hirsute:
  Fix Released
Status in linux-oem-5.10 source package in Hirsute:
  Invalid
Status in linux-oem-5.6 source package in Hirsute:
  Invalid
Status in linux source package in Impish:
  Fix Released
Status in linux-oem-5.10 source package in Impish:
  Invalid
Status in linux-oem-5.6 source package in Impish:
  Invalid

Bug description:
  [Impact]
  The pmtu.sh test in net from ubuntu_kernel_selftests will be marked
  as failed even there is no obvious failure message from the test:
  $ sudo ./pmtu.sh
  TEST: ipv4: PMTU exceptions [ OK ]
  TEST: ipv6: PMTU exceptions [ OK ]
    vxlan4 not supported
  TEST: IPv4 over vxlan4: PMTU exceptions [SKIP]
    vxlan4 not supported
  TEST: IPv6 over vxlan4: PMTU exceptions [SKIP]
  TEST: IPv4 over vxlan6: PMTU exceptions [ OK ]
  TEST: IPv6 over vxlan6: PMTU exceptions [ OK ]
    geneve4 not supported
  TEST: IPv4 over geneve4: PMTU exceptions [SKIP]
    geneve4 not supported
  TEST: IPv6 over geneve4: PMTU exceptions [SKIP]
  TEST: IPv4 over geneve6: PMTU exceptions [ OK ]
  TEST: IPv6 over geneve6: PMTU exceptions [ OK ]
  TEST: IPv4 over fou4: PMTU exceptions [ OK ]
  TEST: IPv6 over fou4: PMTU exceptions [ OK ]
  TEST: IPv4 over fou6: PMTU exceptions [ OK ]
  TEST: IPv6 over fou6: PMTU exceptions [ OK ]
  TEST: IPv4 over gue4: PMTU exceptions [ OK ]
  TEST: IPv6 over gue4: PMTU exceptions [ OK ]
  TEST: IPv4 over gue6: PMTU exceptions [ OK ]
  TEST: IPv6 over gue6: PMTU exceptions [ OK ]
  TEST: vti6: PMTU exceptions [ OK ]
  TEST: vti4: PMTU exceptions [ OK ]
  TEST: vti4: default MTU assignment [ OK ]
  TEST: vti6: default MTU assignment [ OK ]
  TEST: vti4: MTU setting on link creation [ OK ]
  TEST: vti6: MTU setting on link creation [ OK ]
  TEST: vti6: MTU changes on link changes [ OK ]
    vxlan4 not supported
  TEST: ipv4: cleanup of cached exceptions [SKIP]
  TEST: ipv6: cleanup of cached exceptions [ OK ]
  TEST: ipv4: list and flush cached exceptions [ OK ]
  TEST: ipv6: list and flush cached exceptions [ OK ]
  $ echo $?
  1

  This is because the test script treats all non-zero return code as a
  failure, thus it will be marked as FAILED when some sub-test got
  skipped.

  [Fix]
  * ef1220a7d4bbdb selftests: pmtu.sh: use $ksft_skip for skipped return
   code
  * 2a9d3716b810a4 selftests: pmtu.sh: improve the test result processing

  This patchset will:
    1. Use the kselftest framework skip code $ksft_skip to replace the
       hardcoded SKIP return code.
    2. Improve the result processing, the test will be marked as PASSED
       if nothing goes wrong and not all the tests were skipped.

  These have already landed in newer releases and this test does not
  exist in B, thus we just need this for F/F-OEM-5.6/F-OEM-5.10/G.

  The first patch needs to be backported (except on F-OEM-5.10) as some
  test cases were not added yet.
  The second one can be cherry-picked.

  [Test]
  Run this test directly on a patched kernel. The skipped test will cause
  failure to this test.

  [Where problems could occur]
  Changes limited to testing tools, it's unlikely to cause any problem
  to kernel functions.

  
  [Original Bug Report]
  Issue found on B-5.4 oracle 5.4.0-1021.21~18.04.1

  The pmtu.sh test in net from ubuntu_kernel_selftests will be marked as failed 
even there is no obvious failure message from the test:
  $ sudo ./pmtu.sh
  TEST: ipv4: PMTU exceptions                                         [ OK ]
  TEST: ipv6: PMTU exceptions                                         [ OK ]
    vxlan4 not supported
  TEST: IPv4 over vxlan4: PMTU exceptions                             [SKIP]
    vxlan4 not supported
  TEST: IPv6 over vxlan4: PMTU exceptions                             [SKIP]
  TEST: IPv4 over vxlan6: PMTU exceptions                             [ OK ]
  TEST: IPv6 over vxlan6: PMTU exceptions                             [ OK ]
    geneve4 not supported
  TEST: IPv4 over geneve4: PMTU exceptions                            [SKIP]
    geneve4 not supported
  TEST: IPv6 over geneve4: PMTU exceptions                            [SKIP]
  TEST: IPv4 over geneve6: PMTU exceptions                            [ OK ]
  TEST: IPv6 over geneve6: PMTU exceptions                            [ OK ]
  TEST: IPv4 over fou4: PMTU exceptions                               [ OK ]
  TEST: IPv6 over fou4: PMTU exceptions                               [ OK ]
  TEST: IPv4 over fou6: PMTU exceptions                               [ OK ]
  TEST: IPv6 over fou6: PMTU exceptions                               [ OK ]
  TEST: IPv4 over gue4: PMTU exceptions                               [ OK ]
  TEST: IPv6 over gue4: PMTU exceptions                               [ OK ]
  TEST: IPv4 over gue6: PMTU exceptions                               [ OK ]
  TEST: IPv6 over gue6: PMTU exceptions                               [ OK ]
  TEST: vti6: PMTU exceptions                                         [ OK ]
  TEST: vti4: PMTU exceptions                                         [ OK ]
  TEST: vti4: default MTU assignment                                  [ OK ]
  TEST: vti6: default MTU assignment                                  [ OK ]
  TEST: vti4: MTU setting on link creation                            [ OK ]
  TEST: vti6: MTU setting on link creation                            [ OK ]
  TEST: vti6: MTU changes on link changes                             [ OK ]
    vxlan4 not supported
  TEST: ipv4: cleanup of cached exceptions                            [SKIP]
  TEST: ipv6: cleanup of cached exceptions                            [ OK ]
  TEST: ipv4: list and flush cached exceptions                        [ OK ]
  TEST: ipv6: list and flush cached exceptions                        [ OK ]
  
ubuntu@selfprovisioned-phlin-b-5-4-net:~/autotest/client/tmp/ubuntu_kernel_selftests/src/linux/tools/testing/selftests/net$
 echo $?
  1

  Probably a test case issue.

  This is not a regression as I can reproduce this on Bionic
  5.4.0-1019-oracle as well

  ProblemType: Bug
  DistroRelease: Ubuntu 18.04
  Package: linux-image-5.4.0-1019-oracle 5.4.0-1019.19~18.04.1
  ProcVersionSignature: User Name 5.4.0-1019.19~18.04.1-oracle 5.4.44
  Uname: Linux 5.4.0-1019-oracle x86_64
  ApportVersion: 2.20.9-0ubuntu7.9
  Architecture: amd64
  Date: Wed Jul 15 11:28:29 2020
  SourcePackage: linux-signed-oracle-5.4
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/1887661/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to