CI: Force CONFIG_XEN_IBT in the buster-gcc-ibt test
PATCH 1/1 CI: Force CONFIG_XEN_IBT in the buster-gcc-ibt test
buster-gcc-ibt is a dedicated test to run a not-yet-upstreamed compiler patch which is relevant to CONFIG_XEN_IBT in 4.17 and later.
Force it on, rather than having 50% of the jobs not testing what they're supposed to be testing.
---
CC: Doug Goldstein <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Henry Wang <[email protected]>
For 4.17: This is bugfix to CI only, to avoid it producing a false negative. Currently, the test intermittently fails to spot the error it was intended to identify. It is very low risk as far as the 4.17 release goes.
https://gitlab.com/xen-project/people/andyhhp/xen/-/jobs/3084774561#L373 for proof that CONFIG_XEN_IBT=y is being fed into allrandom.config
--- automation/gitlab-ci/build.yaml | 2 ++ automation/scripts/build | 5 +++++ 2 files changed, 7 insertions(+)
automation/gitlab-ci/build.yaml +2 -0
@@ -299,6 +299,8 @@ debian-buster-gcc-ibt: variables: CONTAINER: debian:buster-gcc-ibt RANDCONFIG: y + EXTRA_FIXED_RANDCONFIG: | + CONFIG_XEN_IBT=y debian-unstable-clang: extends: .clang-x86-64-build
automation/scripts/build +5 -0
@@ -12,6 +12,11 @@ cc-ver() # random config or default config if [[ "${RANDCONFIG}" == "y" ]]; then + + # Append job-specific fixed configuration + [[ -n "${EXTRA_FIXED_RANDCONFIG}" ]] && + echo "${EXTRA_FIXED_RANDCONFIG}" >> xen/tools/kconfig/allrandom.config + make -j$(nproc) -C xen KCONFIG_ALLCONFIG=tools/kconfig/allrandom.config randconfig hypervisor_only="y" else
Signature · 1 line
2.11.0
Quoted 5 lines · Andrew Cooper
buster-gcc-ibt is a dedicated test to run a not-yet-upstreamed compiler patch which is relevant to
CONFIG_XEN_IBTin 4.17 and later.Force it on, rather than having 50% of the jobs not testing what they're supposed to be testing.
Shouldn't this job be with a static (or rather: all yes) config?
Quoted 51 lines
Fixes 5d59421815d5 ("x86: Use control flow typechecking where possible")Signed-off-by Andrew Cooper <[email protected]>---
CC: Doug Goldstein <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Henry Wang <[email protected]>For 4.17: This is bugfix to CI only, to avoid it producing a false negative. Currently, the test intermittently fails to spot the error it was intended to identify. It is very low risk as far as the 4.17 release goes.
https://gitlab.com/xen-project/people/andyhhp/xen/-/jobs/3084774561#L373 for proof that
CONFIG_XEN_IBT=yis being fed into allrandom.config--- automation/gitlab-ci/build.yaml | 2 ++ automation/scripts/build | 5 +++++ 2 files changed, 7 insertions(+)automation/gitlab-ci/build.yaml +2
-0@@ -299,6 +299,8 @@ debian-buster-gcc-ibt: variables: CONTAINER: debian:buster-gcc-ibt RANDCONFIG: y + EXTRA_FIXED_RANDCONFIG: | + CONFIG_XEN_IBT=y debian-unstable-clang: extends: .clang-x86-64-buildautomation/scripts/build +5
-0@@ -12,6 +12,11 @@ cc-ver() # random config or default config if [[ "${RANDCONFIG}" == "y" ]]; then + + # Append job-specific fixed configuration + [[ -n "${EXTRA_FIXED_RANDCONFIG}" ]] && + echo "${EXTRA_FIXED_RANDCONFIG}" >> xen/tools/kconfig/allrandom.config + make -j$(nproc) -C xen KCONFIG_ALLCONFIG=tools/kconfig/allrandom.config randconfig hypervisor_only="y" elseSignature · 1 line
2.11.0
Signature · 3 lines
Best Regards, Marek Marczykowski-Górecki Invisible Things Lab
Quoted 7 lines · Marek Marczykowski-Górecki
Quoted 5 lines · Andrew Cooper
buster-gcc-ibt is a dedicated test to run a not-yet-upstreamed compiler patch which is relevant to
CONFIG_XEN_IBTin 4.17 and later.Force it on, rather than having 50% of the jobs not testing what they're supposed to be testing.
Shouldn't this job be with a static (or rather: all yes) config?
That's a separate thing needing a reversion... Currently make allyesconfig disabled CONFIG_HVM.
But more generally, we have a pile of cases where different config options produces differences in which and/or whether a function pointer gets used, so a single largely-static case doesn't find any of the interesting corner cases.
~Andrew
Hi Andrew,
Quoted 17 lines
-----Original Message-----
From: Andrew Cooper <[email protected]>
Subject: [PATCH for-4.17] CI: ForceCONFIG_XEN_IBTin the buster-gcc-ibt testbuster-gcc-ibt is a dedicated test to run a not-yet-upstreamed compiler patch which is relevant to
CONFIG_XEN_IBTin 4.17 and later.Force it on, rather than having 50% of the jobs not testing what they're supposed to be testing.
Fixes 5d59421815d5 ("x86: Use control flow typechecking where possible")Signed-off-by Andrew Cooper <[email protected]>---
CC: Doug Goldstein <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Henry Wang <[email protected]>
Quoted 7 lines
For 4.17: This is bugfix to CI only, to avoid it producing a false negative. Currently, the test intermittently fails to spot the error it was intended to identify. It is very low risk as far as the 4.17 release goes.
https://gitlab.com/xen-project/people/andyhhp/xen/-
/jobs/3084774561#L373 for
proof thatCONFIG_XEN_IBT=yis being fed into allrandom.config
Thanks for sending this patch!
I agree that considering this patch to 4.17 is low risk, and as long as this patch is properly reviewed by CI maintainers, you can have my:
Kind regards,
Henry
Quoted 8 lines · Andrew Cooper
buster-gcc-ibt is a dedicated test to run a not-yet-upstreamed compiler patch which is relevant to
CONFIG_XEN_IBTin 4.17 and later.Force it on, rather than having 50% of the jobs not testing what they're supposed to be testing.
Fixes 5d59421815d5 ("x86: Use control flow typechecking where possible")Signed-off-by Andrew Cooper <[email protected]>
Quoted 8 lines
---
CC: Doug Goldstein <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Henry Wang <[email protected]>For 4.17: This is bugfix to CI only, to avoid it producing a false negative. Currently, the test intermittently fails to spot the error it was intended to identify. It is very low risk as far as the 4.17 release goes.
Thanks for the patch! Very recently Michal has added a similar EXTRA_XEN_CONFIG option. If you are OK with it, I'll rename EXTRA_FIXED_RANDCONFIG to EXTRA_XEN_CONFIG in this patch for consistency. I can do it on commit.
Quoted 39 lines
https://gitlab.com/xen-project/people/andyhhp/xen/-/jobs/3084774561#L373 for proof that
CONFIG_XEN_IBT=yis being fed into allrandom.config--- automation/gitlab-ci/build.yaml | 2 ++ automation/scripts/build | 5 +++++ 2 files changed, 7 insertions(+)automation/gitlab-ci/build.yaml +2
-0@@ -299,6 +299,8 @@ debian-buster-gcc-ibt: variables: CONTAINER: debian:buster-gcc-ibt RANDCONFIG: y + EXTRA_FIXED_RANDCONFIG: | + CONFIG_XEN_IBT=y debian-unstable-clang: extends: .clang-x86-64-buildautomation/scripts/build +5
-0@@ -12,6 +12,11 @@ cc-ver() # random config or default config if [[ "${RANDCONFIG}" == "y" ]]; then + + # Append job-specific fixed configuration + [[ -n "${EXTRA_FIXED_RANDCONFIG}" ]] && + echo "${EXTRA_FIXED_RANDCONFIG}" >> xen/tools/kconfig/allrandom.config + make -j$(nproc) -C xen KCONFIG_ALLCONFIG=tools/kconfig/allrandom.config randconfig hypervisor_only="y" elseSignature · 1 line
2.11.0
Quoted 14 lines · Stefano Stabellini
Quoted 13 lines · Andrew Cooper
buster-gcc-ibt is a dedicated test to run a not-yet-upstreamed compiler patch which is relevant to
CONFIG_XEN_IBTin 4.17 and later.Force it on, rather than having 50% of the jobs not testing what they're supposed to be testing.
Fixes 5d59421815d5 ("x86: Use control flow typechecking where possible")Signed-off-by Andrew Cooper <[email protected]>---
CC: Doug Goldstein <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Henry Wang <[email protected]>
Quoted 5 lines
Quoted 3 lines
For 4.17: This is bugfix to CI only, to avoid it producing a false negative. Currently, the test intermittently fails to spot the error it was intended to identify. It is very low risk as far as the 4.17 release goes.
Thanks for the patch! Very recently Michal has added a similar
EXTRA_XEN_CONFIGoption.
I know - that's where I sto^W borrowed the idea from.
Quoted 3 lines
If you are OK with it, I'll rename
EXTRA_FIXED_RANDCONFIGtoEXTRA_XEN_CONFIGin this patch for consistency. I can do it on commit.
No, that will break the fix.
These are not options to be inserted into a regular .config.
These are options passed to make randconfig via a sidedoor (the KCONFIG_ALLCONFIG= variable) causing them to be handled specially while the regular .config file is has it's contents randomised.
~Andrew
Quoted 27 lines · Andrew Cooper
Quoted 14 lines · Stefano Stabellini
Quoted 13 lines · Andrew Cooper
buster-gcc-ibt is a dedicated test to run a not-yet-upstreamed compiler patch which is relevant to
CONFIG_XEN_IBTin 4.17 and later.Force it on, rather than having 50% of the jobs not testing what they're supposed to be testing.
Fixes 5d59421815d5 ("x86: Use control flow typechecking where possible")Signed-off-by Andrew Cooper <[email protected]>---
CC: Doug Goldstein <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Henry Wang <[email protected]>Quoted 5 lines
Quoted 3 lines
For 4.17: This is bugfix to CI only, to avoid it producing a false negative. Currently, the test intermittently fails to spot the error it was intended to identify. It is very low risk as far as the 4.17 release goes.
Thanks for the patch! Very recently Michal has added a similar
EXTRA_XEN_CONFIGoption.I know - that's where I sto^W borrowed the idea from.
Quoted 3 lines
If you are OK with it, I'll rename
EXTRA_FIXED_RANDCONFIGtoEXTRA_XEN_CONFIGin this patch for consistency. I can do it on commit.
Quoted 7 lines
No, that will break the fix.
These are not options to be inserted into a regular .config.
These are options passed to
make randconfigvia a sidedoor (the KCONFIG_ALLCONFIG= variable) causing them to be handled specially while the regular .config file is has it's contents randomised.
OK. I committed your original plus a minor code style fix.