Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test-configs: Enable landlock selftests #1236

Merged
merged 1 commit into from
Dec 2, 2022
Merged

Conversation

broonie
Copy link
Member

@broonie broonie commented Jun 3, 2022

Enable the landlock selftests, initially just on Le Potato and BeagleBone
Black. This is a very quick to run testsuite.

Signed-off-by: Mark Brown broonie@kernel.org

@gctucker gctucker linked an issue Jun 3, 2022 that may be closed by this pull request
@gctucker gctucker self-assigned this Jun 3, 2022
@gctucker
Copy link
Contributor

gctucker commented Jun 3, 2022

and BeagleBone Black

@broonie I don't see it, only Le Potato

@l0kod
Copy link

l0kod commented Jun 3, 2022

Thanks Mark!

@@ -2061,6 +2067,7 @@ test_configs:
- baseline-cip-nfs
- baseline-nfs
- kselftest-alsa
- kselftest-landlock
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes I see this now, sorry. ☕

@gctucker
Copy link
Contributor

gctucker commented Jun 8, 2022

This is currently conflicting with other PRs that need to get merged first, then this one will need to be rebased.

@l0kod
Copy link

l0kod commented Jul 25, 2022

What is the status of this PR? I guess it conflicts with most new tests added in the test-configs.yaml file and it will continue until it is merged.

@broonie
Copy link
Member Author

broonie commented Aug 9, 2022

I can't tell what if anything it's blocked on - @gctucker @mgalka ?

@gctucker
Copy link
Contributor

gctucker commented Aug 9, 2022

We need to reduce the backlog of older PRs first as some are enabling tests in the same part of the YAML files and should be ready to be merged.

@broonie
Copy link
Member Author

broonie commented Aug 11, 2022

I can't tell what else this is conflicting with?

@gctucker
Copy link
Contributor

/pending.py kernelci-core is your friend ;)

PR #1177 is conflicting with this one. We could skip #1177 and get this one merged first, but we can't test both at the same time unless this one gets rebased on top of #1177.

@broonie
Copy link
Member Author

broonie commented Aug 11, 2022

Well, if that KVM one is blocked on the Baylibre lab it would be good to let this one progress given that there should be fewer blockers. Though I think we could probably merge the KVM one TBH.

@gctucker
Copy link
Contributor

Yes I think we can merge it, the BayLibre issue is not a blocker but I would have liked some feedback as to why the jobs are only failing in their lab. Like I put in another comment, if it can't be fixed we can add a filter to stop running it in the BayLibre lab.

@gctucker
Copy link
Contributor

@broonie Alright I've merged #1177 so now you can finally rebase this one and we might have it merged tomorrow as well.

@broonie
Copy link
Member Author

broonie commented Aug 11, 2022

Great, thanks. FWIW the error looks like what you see if the NFS server is configured to support v4 but you don't jump through whatever extra hoops v4 auth requires - I limit my NFS server to v3 for similar reasons.

@gctucker
Copy link
Contributor

Great, thanks. FWIW the error looks like what you see if the NFS server is configured to support v4 but you don't jump through whatever extra hoops v4 auth requires - I limit my NFS server to v3 for similar reasons.

@montjoie this ^

@@ -2539,6 +2546,7 @@ test_configs:
- kselftest-cpufreq
- kselftest-futex
- kselftest-kvm
- kselftest-landlock
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like there's some problem:
https://storage.staging.kernelci.org/kernelci/staging-mainline/staging-mainline-20220824.1/arm64/defconfig+kselftest/gcc-10/lab-broonie/kselftest-landlock-meson-gxl-s905x-libretech-cc.html#L1802
The landlock collection is missing from the kselftest tarball, so there's no results.

Also the jobs are all failing now, they could complete until the end of August.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a landlock build issue:

make[3]: Entering directory '/tmp/kci/linux/tools/testing/selftests/landlock'
make[3]: *** No rule to make target '/tmp/kci/linux/build/kselftest/landlock/base_test', needed by 'all'.  Stop.
make[3]: Leaving directory '/tmp/kci/linux/tools/testing/selftests/landlock'

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the job failures aren't specific to landlock - it looks like all arm64 boots with the kselftest custom kernel broke in the same way starting at the same time. The build issue is still a problem of course.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a landlock build issue:

make[3]: Entering directory '/tmp/kci/linux/tools/testing/selftests/landlock'
make[3]: *** No rule to make target '/tmp/kci/linux/build/kselftest/landlock/base_test', needed by 'all'.  Stop.
make[3]: Leaving directory '/tmp/kci/linux/tools/testing/selftests/landlock'

I still cannot reproduce this build issue. Where can we find these logs and the related artifacts?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not the same job but the error showing up in:

https://storage.kernelci.org/next/master/next-20220908/arm64/defconfig/gcc-10/logs/kselftest.log

is

make[3]: Entering directory '/tmp/kci/linux/tools/testing/selftests/landlock'
make[3]: *** No rule to make target '/tmp/kci/linux/build/kselftest/landlock/base_test', needed by 'all'. Stop.
make[3]: Leaving directory '/tmp/kci/linux/tools/testing/selftests/landlock'

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you confirm that it works @gctucker? Getting your Tested-by tag would help: https://lore.kernel.org/linux-kselftest/2879477f-82d9-9d39-13b6-9cc60a3f14c7@digikod.net/

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lots of platform failed to boot due to a bug in linux-next, I think that's now fixed so let's wait for today's results.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still no results as the boards that are supposed to run the test failed to boot...
https://staging.kernelci.org/test/job/kernelci/branch/staging-next/kernel/staging-next-20220923.0/plan/kselftest-landlock/

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix is now in Linux 6.0-rc7 .

@l0kod
Copy link

l0kod commented Oct 10, 2022

Everything looks good now. Could someone merge this PR?

@broonie
Copy link
Member Author

broonie commented Nov 2, 2022

Any news on this? It's been sitting for an extremely long time at this point with nothing actionable...

@broonie
Copy link
Member Author

broonie commented Nov 2, 2022

The Beaglebone is just a random infra issue that happened to affect that particular run, though it looks like the kselftest config is broken there anyway unfortunately https://lava.sirena.org.uk/scheduler/job/3748. The potato issue does look legit unfortunately though it has run in the past and whatever looks to be nothing to do with the test case - it would really help if we had baseline jobs running for the kselftest kernels but unfortunately we don't seem to.

Either way I'm not seeing something that's at all specific to this test case here and this is just getting incredibly frustrating, the actual tests seem fine but the pull request only gets looked at very intermittently and any infra issue at that time means another month or whatever of delay. The build issue that cropped up was legit (though that had been fine earlier...) but otherwise...

Add a base definition for the landlock selftests. This is a very quick to
run testsuite.

Signed-off-by: Mark Brown <broonie@kernel.org>
@broonie
Copy link
Member Author

broonie commented Nov 10, 2022

I've removed the board additions from this and created new requests for the individual boards in an effort to reduce dependencies:

#1505
#1506
#1507

@nuclearcat
Copy link
Member

I keep looking latest results, and it doesnt look like defconfig+kselftest kernel can boot at all on 2 available boards: https://staging.kernelci.org/build/id/63712751901342a358b0d63b/
https://staging.kernelci.org/build/id/63712314ad5035f25db0d619/
Seems this build need further investigation.

@l0kod
Copy link

l0kod commented Nov 15, 2022

@nuclearcat these issues are not related to this PR, but probably to the hardware support which would explain the failed boots.

I see Kernel panic - not syncing: No working init found: https://storage.staging.kernelci.org/kernelci/staging-mainline/staging-mainline-20221114.0/arm/multi_v7_defconfig+kselftest/gcc-10/lab-broonie/kselftest-landlock-beaglebone-black.html
The tests didn't even run.

@nuclearcat
Copy link
Member

I know, just documenting that i am looking to PR from time to time. Not sure i have enough time and resources to troubleshoot hardware support issue.
Also i am wondering if i find some well working arm64 device in lab-collabora and get permission to get landlock tested there, it might help to push this PR forward?

@l0kod
Copy link

l0kod commented Nov 16, 2022

Also i am wondering if i find some well working arm64 device in lab-collabora and get permission to get landlock tested there, it might help to push this PR forward?

Yes, definitely! I'd really like to run these tests on x86 machines too.

@broonie
Copy link
Member Author

broonie commented Nov 16, 2022

There's a bunch of x86 ChromeBooks in the Collabora labs, hopefully one of them has sufficient capacity to run some more tests?

@nuclearcat
Copy link
Member

I will ask for that.

@nuclearcat
Copy link
Member

Hi @broonie , @l0kod , i added x86 DUT for landlock and it seems working fine. Please let me know if results are as expected, then i can merge it.
#1524
https://staging.kernelci.org/test/plan/id/637baf9cb32d1a1b6eddf791/

Copy link
Member

@nuclearcat nuclearcat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as it is tested on x86 (sona)

@nuclearcat nuclearcat merged commit 43875d0 into kernelci:main Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable Landlock kselftests
5 participants