Skip to contentSkip to conversation

❌ FAIL: Test report for kernel 5.4.0-rc5-34072e5.cki (arm-next)

DISCUSSION CKI Project 6 participants 11 messages Oct 29, 2019 – Oct 31, 2019

lore
Share & tools
lore
#0 lore raw

Hello,

We ran automated tests on a recent commit from this kernel tree:

Kernel repo: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git
Commit: 34072e52a3fc - Merge remote-tracking branch 'arm64/for-next/memory-hotremove' into for-kernelci

The results of these automated tests are provided below.

Overall result: FAILED (see details below)
Merge: OK
Compile: OK
Tests: FAILED

All kernel binaries, config files, and logs are available for download here:

https://artifacts.cki-project.org/pipelines/255362

One or more kernel tests failed:

aarch64:
❌ LTP lite

We hope that these logs can help you find the problem quickly. For the full detail on our testing procedures, please scroll to the bottom of this message.

Please reply to this email if you have any questions about the tests that we ran or if you have any suggestions on how to make future tests more effective.

        ,-.   ,-.
       ( C ) ( K )  Continuous
        `-',-.`-'   Kernel
          ( I )     Integration
           `-'

______________________________________________________________________________

Compile testing
---------------

We compiled the kernel for 1 architecture:

aarch64:
make options: -j30 INSTALL_MOD_STRIP=1 targz-pkg

Hardware testing
----------------
We booted each kernel and ran the following tests:

aarch64:
Host 1:
✅ Boot test
✅ xfstests: ext4
✅ xfstests: xfs
✅ selinux-policy: serge-testsuite
✅ lvm thinp sanity
✅ storage: software RAID testing
🚧 ✅ Storage blktests

Host 2:
✅ Boot test
✅ Podman system integration test (as root) ✅ Podman system integration test (as user) ❌ LTP lite
✅ Loopdev Sanity
✅ jvm test suite
✅ Memory function: memfd_create
✅ Memory function: kaslr
✅ AMTU (Abstract Machine Test Utility) ✅ LTP: openposix test suite
✅ Ethernet drivers sanity
✅ Networking MACsec: sanity
✅ Networking socket: fuzz
✅ Networking sctp-auth: sockopts test ✅ Networking: igmp conformance test
✅ Networking route: pmtu
✅ Networking TCP: keepalive test
✅ Networking UDP: socket
✅ Networking tunnel: geneve basic test ✅ Networking tunnel: gre basic
✅ Networking tunnel: vxlan basic
✅ audit: audit testsuite test
✅ httpd: mod_ssl smoke sanity
✅ iotop: sanity
✅ tuned: tune-processes-through-perf ✅ ALSA PCM loopback test
✅ ALSA Control (mixer) Userspace Element test ✅ Usex - version 1.9-29
✅ storage: SCSI VPD
✅ stress: stress-ng
✅ trace: ftrace/tracer
🚧 ✅ CIFS Connectathon
🚧 ✅ POSIX pjd-fstest suites
🚧 ✅ Networking bridge: sanity
🚧 ✅ Networking route_func: local
✅ Networking route_func: forward
🚧 ✅ L2TP basic test
🚧 ✅ Networking vnic: ipvlan/basic
🚧 ✅ storage: dm/common
🚧 ✅ Networking ipsec: basic netns transport 🚧 ✅ Networking ipsec: basic netns tunnel

Test sources: https://github.com/CKI-project/tests-beaker
💚 Pull requests are welcome for new tests or improvements to existing tests!

Waived tests
------------
If the test run included waived tests, they are marked with 🚧. Such tests are executed but their results are not taken into account. Tests are waived when their results are not reliable enough, e.g. when they're just introduced or are being fixed.

Testing timeout
---------------
We aim to provide a report within reasonable timeframe. Tests that haven't finished running are marked with ⏱. Reports for non-upstream kernels have a Beaker recipe linked to next to each host.

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#1 lore raw

----- Original Message -----

Quoted 17 lines

Hello,

We ran automated tests on a recent commit from this kernel tree:

Kernel repo:
git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git
Commit: 34072e52a3fc - Merge remote-tracking branch 'arm64/for-next/memory-hotremove' into for-kernelci

The results of these automated tests are provided below.

Overall result: FAILED (see details below)
Merge: OK
Compile: OK
Tests: FAILED

Quoted 8 lines

All kernel binaries, config files, and logs are available for download here:

https://artifacts.cki-project.org/pipelines/255362

One or more kernel tests failed:

aarch64:
❌ LTP lite

What's failing is preadv2/readv over PROT_NONE mapping:

[pid 2424] mmap(NULL, 1, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, 0, 0) = 0x3ff7f8b0000 [pid 2424] preadv2(3, [{iov_base=0x3ff7f8b0000, iov_len=64}], 1, 0, 0) = 16

Test expects EFAULT.

It seems specific to arm64/linux.git as I do not see it fail on Linus' master (v5.4-rc5-34-g23fdb198ae81).

Regards,
Jan

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#2 lore raw
Quoted 31 lines · Jan Stancek

----- Original Message -----

Quoted 17 lines

Hello,

We ran automated tests on a recent commit from this kernel tree:

Kernel repo:
git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git
Commit: 34072e52a3fc - Merge remote-tracking branch 'arm64/for-next/memory-hotremove' into for-kernelci

The results of these automated tests are provided below.

Overall result: FAILED (see details below)
Merge: OK
Compile: OK
Tests: FAILED

Quoted 8 lines

All kernel binaries, config files, and logs are available for download here:

https://artifacts.cki-project.org/pipelines/255362

One or more kernel tests failed:

aarch64:
❌ LTP lite

What's failing is preadv2/readv over PROT_NONE mapping:

Quoted 7 lines

[pid 2424] mmap(NULL, 1, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, 0, 0) = 0x3ff7f8b0000 [pid 2424] preadv2(3, [{iov_base=0x3ff7f8b0000, iov_len=64}], 1, 0, 0) = 16

Test expects EFAULT.

It seems specific to arm64/linux.git as I do not see it fail on Linus' master (v5.4-rc5-34-g23fdb198ae81).

Aha, our emails crossed paths. Thanks, I'll try to reproduce the failure locally.

Will

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#3 lore raw

[+Robin as FYI]

Quoted 29 lines · Will Deacon
Quoted 28 lines · Jan Stancek
Quoted 14 lines

We ran automated tests on a recent commit from this kernel tree:

Kernel repo:
git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git
Commit: 34072e52a3fc - Merge remote-tracking branch 'arm64/for-next/memory-hotremove' into for-kernelci

The results of these automated tests are provided below.

Overall result: FAILED (see details below)
Merge: OK
Compile: OK
Tests: FAILED

Quoted 8 lines

All kernel binaries, config files, and logs are available for download here:

https://artifacts.cki-project.org/pipelines/255362

One or more kernel tests failed:

aarch64:
❌ LTP lite

What's failing is preadv2/readv over PROT_NONE mapping:

[pid 2424] mmap(NULL, 1, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, 0, 0) = 0x3ff7f8b0000 [pid 2424] preadv2(3, [{iov_base=0x3ff7f8b0000, iov_len=64}], 1, 0, 0) = 16

Quoted 7 lines
Quoted 4 lines

Test expects EFAULT.

It seems specific to arm64/linux.git as I do not see it fail on Linus' master (v5.4-rc5-34-g23fdb198ae81).

Aha, our emails crossed paths. Thanks, I'll try to reproduce the failure locally.

Looks like the rewrite of our string routines has broken the return value for some syscalls:

readv02 2 TFAIL : readv02.c:145: Error: readv returned a positive value
preadv202.c:87: FAIL: preadv2() failed unexpectedly, expected EFAULT: SUCCESS (0) preadv202.c:87: FAIL: preadv2() failed unexpectedly, expected EFAULT: SUCCESS (0)

We'll drop the for-next/cortex-strings branch for now.

Thanks,

Will

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#4 lore raw
Quoted 34 lines · Will Deacon

[+Robin as FYI]

Quoted 31 lines · Will Deacon
Quoted 30 lines · Jan Stancek
Quoted 14 lines

We ran automated tests on a recent commit from this kernel tree:

Kernel repo:
git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git
Commit: 34072e52a3fc - Merge remote-tracking branch 'arm64/for-next/memory-hotremove' into for-kernelci

The results of these automated tests are provided below.

Overall result: FAILED (see details below)
Merge: OK
Compile: OK
Tests: FAILED

Quoted 8 lines

All kernel binaries, config files, and logs are available for download here:

   https://artifacts.cki-project.org/pipelines/255362

One or more kernel tests failed:

aarch64:
❌ LTP lite

What's failing is preadv2/readv over PROT_NONE mapping:

[pid 2424] mmap(NULL, 1, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, 0, 0) = 0x3ff7f8b0000 [pid 2424] preadv2(3, [{iov_base=0x3ff7f8b0000, iov_len=64}], 1, 0, 0) = 16

Test expects EFAULT.

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

It seems specific to arm64/linux.git as I do not see it fail on Linus' master (v5.4-rc5-34-g23fdb198ae81).

Aha, our emails crossed paths. Thanks, I'll try to reproduce the failure locally.

Looks like the rewrite of our string routines has broken the return value for some syscalls:

Urgh... Thanks for the report. I was pretty sure we had the fault handler correct, so I'll fire up the debugger and try to figure out what's up.

Robin.

Quoted 10 lines

readv02 2 TFAIL : readv02.c:145: Error: readv returned a positive value
preadv202.c:87: FAIL: preadv2() failed unexpectedly, expected EFAULT: SUCCESS (0) preadv202.c:87: FAIL: preadv2() failed unexpectedly, expected EFAULT: SUCCESS (0)

We'll drop the for-next/cortex-strings branch for now.

Thanks,

Will

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#5 lore raw
Quoted 38 lines · Robin Murphy
Quoted 37 lines · Will Deacon

[+Robin as FYI]

Quoted 34 lines · Will Deacon
Quoted 32 lines · Jan Stancek
Quoted 14 lines

We ran automated tests on a recent commit from this kernel tree:

        Kernel repo:
        git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git
             Commit: 34072e52a3fc - Merge remote-tracking branch 'arm64/for-next/memory-hotremove' into for-kernelci

The results of these automated tests are provided below.

     Overall result: FAILED (see details below)
              Merge: OK
            Compile: OK
              Tests: FAILED

Quoted 8 lines

All kernel binaries, config files, and logs are available for download here:

   https://artifacts.cki-project.org/pipelines/255362

One or more kernel tests failed:

     aarch64:
      ❌ LTP lite

What's failing is preadv2/readv over PROT_NONE mapping:

[pid  2424] mmap(NULL, 1, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, 0, 0) = 0x3ff7f8b0000 [pid  2424] preadv2(3, [{iov_base=0x3ff7f8b0000, iov_len=64}], 1, 0, 0) = 16

Test expects EFAULT.

It seems specific to arm64/linux.git as I do not see it fail on Linus' master (v5.4-rc5-34-g23fdb198ae81).

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

Aha, our emails crossed paths. Thanks, I'll try to reproduce the failure locally.

Looks like the rewrite of our string routines has broken the return value for some syscalls:

Urgh... Thanks for the report. I was pretty sure we had the fault handler correct, so I'll fire up the debugger and try to figure out what's up.

OK, what's up is that we designed the improved fixup logic to support offset addressing in the implicit context of the existing copy template, where accesses were always in strictly increasing order. And then we also plumbed in a clever new template which in certain cases does some out-of-order copying to support overlaps :(

If a nonzero return from copy_*_user() is allowed to underestimate how many bytes were actually copied, then I think there should be a relatively simple fix; if it must always be exact, then I've got some more thinking to do...

Robin.

Quoted 8 lines
Quoted 8 lines

readv02     2  TFAIL  :  readv02.c:145: Error: readv returned a positive value preadv202.c:87: FAIL: preadv2() failed unexpectedly, expected EFAULT: SUCCESS (0) preadv202.c:87: FAIL: preadv2() failed unexpectedly, expected EFAULT: SUCCESS (0)

We'll drop the for-next/cortex-strings branch for now.

Thanks,

Quoted 7 lines
Quoted 2 lines

Will

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#6 lore raw
Quoted 12 lines · Robin Murphy
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines · Jan Stancek
Quoted 11 lines

What's failing is preadv2/readv over PROT_NONE mapping:

[pid  2424] mmap(NULL, 1, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, 0, 0) = 0x3ff7f8b0000 [pid  2424] preadv2(3, [{iov_base=0x3ff7f8b0000, iov_len=64}], 1, 0, 0) = 16

Test expects EFAULT.

It seems specific to arm64/linux.git as I do not see it fail on Linus' master (v5.4-rc5-34-g23fdb198ae81).

[...]

Quoted 9 lines

OK, what's up is that we designed the improved fixup logic to support offset addressing in the implicit context of the existing copy template, where accesses were always in strictly increasing order. And then we also plumbed in a clever new template which in certain cases does some out-of-order copying to support overlaps :(

If a nonzero return from copy_*_user() is allowed to underestimate how many bytes were actually copied, then I think there should be a relatively simple fix; if it must always be exact, then I've got some more thinking to do...

I think in various incarnations of the copy routines we always had some risk of underestimating. For example, we align the source but not the destination. The destination is written via STP post-indexed but if the second 64-bit write fails, we still report the copy based on the unmodified dst, so underestimating by 8 bytes.

Signature · 6 lines
Catalin

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#7 lore raw
Quoted 24 lines · Catalin Marinas
Quoted 12 lines · Robin Murphy
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines · Jan Stancek
Quoted 11 lines

What's failing is preadv2/readv over PROT_NONE mapping:

[pid  2424] mmap(NULL, 1, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, 0, 0) = 0x3ff7f8b0000 [pid  2424] preadv2(3, [{iov_base=0x3ff7f8b0000, iov_len=64}], 1, 0, 0) = 16

Test expects EFAULT.

It seems specific to arm64/linux.git as I do not see it fail on Linus' master (v5.4-rc5-34-g23fdb198ae81).

[...]

Quoted 9 lines

OK, what's up is that we designed the improved fixup logic to support offset addressing in the implicit context of the existing copy template, where accesses were always in strictly increasing order. And then we also plumbed in a clever new template which in certain cases does some out-of-order copying to support overlaps :(

If a nonzero return from copy_*_user() is allowed to underestimate how many bytes were actually copied, then I think there should be a relatively simple fix; if it must always be exact, then I've got some more thinking to do...

Quoted 5 lines

I think in various incarnations of the copy routines we always had some risk of underestimating. For example, we align the source but not the destination. The destination is written via STP post-indexed but if the second 64-bit write fails, we still report the copy based on the unmodified dst, so underestimating by 8 bytes.

I wonder if this could be an issue in general though. If, for example, we took a fault on the second page when crossing a page boundary, any "number of bytes copied" metric returned to userspace probably needs to identify the second page as the faulting one. Perhaps that works out because we only make naturally-aligned accesses, but I'm not super comfortable about the under-estimation. Do other architectures do that?

Will

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#8 lore raw
In reply to CKI Project

Hi all,

Quoted 12 lines · CKI Project

We ran automated tests on a recent commit from this kernel tree:

Kernel repo: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git
Commit: 34072e52a3fc - Merge remote-tracking branch 'arm64/for-next/memory-hotremove' into for-kernelci

The results of these automated tests are provided below.

Overall result: FAILED (see details below)
Merge: OK
Compile: OK
Tests: FAILED

Quoted 8 lines

All kernel binaries, config files, and logs are available for download here:

https://artifacts.cki-project.org/pipelines/255362

One or more kernel tests failed:

aarch64:
❌ LTP lite

As far as I can make out from the logs, this is because the following syscall tests failed:

	preadv202
	preadv202_64
	readv02

Before I go digging deeper, is it possible to see whether these pass on a vanilla 5.4-rc5 kernel? I couldn't figure out a way to translate "v5.4-rc5" into a directory under https://artifacts.cki-project.org/pipelines/
which would let me see if we've regressed in the arm64 tree.

Thanks,

Will

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#9 lore raw

----- Original Message -----

Quoted 27 lines

Hi all,

Quoted 17 lines · CKI Project

We ran automated tests on a recent commit from this kernel tree:

Kernel repo:
git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git
Commit: 34072e52a3fc - Merge remote-tracking branch 'arm64/for-next/memory-hotremove' into for-kernelci

The results of these automated tests are provided below.

Overall result: FAILED (see details below)
Merge: OK
Compile: OK
Tests: FAILED

All kernel binaries, config files, and logs are available for download here:

Quoted 6 lines

https://artifacts.cki-project.org/pipelines/255362

One or more kernel tests failed:

aarch64:
❌ LTP lite

Quoted 6 lines

As far as I can make out from the logs, this is because the following syscall tests failed:

	preadv202
	preadv202_64
	readv02

@CKI: There seem to be only high level test status?
Can you upload also verbose test output to artifacts?

The file is usually named *.run.log. It gives much better details for failures:

tst_test.c:1116: INFO: Timeout per run is 0h 05m 00s
preadv202.c:82: PASS: preadv2() failed as expected: EINVAL (22) preadv202.c:82: PASS: preadv2() failed as expected: EINVAL (22) preadv202.c:82: PASS: preadv2() failed as expected: EOPNOTSUPP (95) preadv202.c:86: FAIL: preadv2() failed unexpectedly, expected EFAULT: SUCCESS (0) preadv202.c:82: PASS: preadv2() failed as expected: EBADF (9) preadv202.c:82: PASS: preadv2() failed as expected: EBADF (9) preadv202.c:82: PASS: preadv2() failed as expected: EISDIR (21) preadv202.c:82: PASS: preadv2() failed as expected: ESPIPE (29)

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#10 lore raw
Quoted 39 lines · Jan Stancek

----- Original Message -----

Quoted 24 lines

Hi all,

Quoted 21 lines · CKI Project

We ran automated tests on a recent commit from this kernel tree:

Kernel repo:
git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git
Commit: 34072e52a3fc - Merge remote-tracking branch 'arm64/for-next/memory-hotremove' into for-kernelci

The results of these automated tests are provided below.

Overall result: FAILED (see details below)
Merge: OK
Compile: OK
Tests: FAILED

All kernel binaries, config files, and logs are available for download here:

   https://artifacts.cki-project.org/pipelines/255362

One or more kernel tests failed:

Quoted 8 lines
Quoted 2 lines

aarch64:
❌ LTP lite

As far as I can make out from the logs, this is because the following syscall tests failed:

	preadv202
	preadv202_64
	readv02

@CKI: There seem to be only high level test status?
Can you upload also verbose test output to artifacts?

The file is usually named *.run.log. It gives much better details for failures:

Quoted 9 lines

tst_test.c:1116: INFO: Timeout per run is 0h 05m 00s
preadv202.c:82: PASS: preadv2() failed as expected: EINVAL (22) preadv202.c:82: PASS: preadv2() failed as expected: EINVAL (22) preadv202.c:82: PASS: preadv2() failed as expected: EOPNOTSUPP (95) preadv202.c:86: FAIL: preadv2() failed unexpectedly, expected EFAULT: SUCCESS (0) preadv202.c:82: PASS: preadv2() failed as expected: EBADF (9) preadv202.c:82: PASS: preadv2() failed as expected: EBADF (9) preadv202.c:82: PASS: preadv2() failed as expected: EISDIR (21) preadv202.c:82: PASS: preadv2() failed as expected: ESPIPE (29)

Yes sorry about that, we'll work on uploading the missing logs for LTP.

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel