[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange symbols_lookup() behaviour in test-symbols on arm64 CI


  • To: Mykola Kvach <xakep.amatop@xxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 11 Dec 2025 12:14:57 +0100
  • Autocrypt: addr=jbeulich@xxxxxxxx; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyWCJOylMNR98Yd8VqD9UfmX0Hb8/BrA+Hl6/DB/eqGptrf4BSRwcZQM32aZK 7Pj2XbGWIUrZrd70x1eAP9QE3P79Y2oLrsCgbZJfEwCgvz9JjGmQqQkRiTVzlZVCJYcyGGsD /0tbFCzD2h20ahe8rC1gbb3K3qk+LpBtvjBu1RY9drYk0NymiGbJWZgab6t1jM7sk2vuf0Py O9Hf9XBmK0uE9IgMaiCpc32XV9oASz6UJebwkX+zF2jG5I1BfnO9g7KlotcA/v5ClMjgo6Gl MDY4HxoSRu3i1cqqSDtVlt+AOVBJBACrZcnHAUSuCXBPy0jOlBhxPqRWv6ND4c9PH1xjQ3NP nxJuMBS8rnNg22uyfAgmBKNLpLgAGVRMZGaGoJObGf72s6TeIqKJo/LtggAS9qAUiuKVnygo 3wjfkS9A3DRO+SpU7JqWdsveeIQyeyEJ/8PTowmSQLakF+3fote9ybzd880fSmFuIEJldWxp Y2ggPGpiZXVsaWNoQHN1c2UuY29tPsJgBBMRAgAgBQJZN5xEAhsDBgsJCAcDAgQVAggDBBYC AwECHgECF4AACgkQoDSui/t3IH4J+wCfQ5jHdEjCRHj23O/5ttg9r9OIruwAn3103WUITZee e7Sbg12UgcQ5lv7SzsFNBFk3nEQQCACCuTjCjFOUdi5Nm244F+78kLghRcin/awv+IrTcIWF hUpSs1Y91iQQ7KItirz5uwCPlwejSJDQJLIS+QtJHaXDXeV6NI0Uef1hP20+y8qydDiVkv6l IreXjTb7DvksRgJNvCkWtYnlS3mYvQ9NzS9PhyALWbXnH6sIJd2O9lKS1Mrfq+y0IXCP10eS FFGg+Av3IQeFatkJAyju0PPthyTqxSI4lZYuJVPknzgaeuJv/2NccrPvmeDg6Coe7ZIeQ8Yj t0ARxu2xytAkkLCel1Lz1WLmwLstV30g80nkgZf/wr+/BXJW/oIvRlonUkxv+IbBM3dX2OV8 AmRv1ySWPTP7AAMFB/9PQK/VtlNUJvg8GXj9ootzrteGfVZVVT4XBJkfwBcpC/XcPzldjv+3 HYudvpdNK3lLujXeA5fLOH+Z/G9WBc5pFVSMocI71I8bT8lIAzreg0WvkWg5V2WZsUMlnDL9 mpwIGFhlbM3gfDMs7MPMu8YQRFVdUvtSpaAs8OFfGQ0ia3LGZcjA6Ik2+xcqscEJzNH+qh8V m5jjp28yZgaqTaRbg3M/+MTbMpicpZuqF4rnB0AQD12/3BNWDR6bmh+EkYSMcEIpQmBM51qM EKYTQGybRCjpnKHGOxG0rfFY1085mBDZCH5Kx0cl0HVJuQKC+dV2ZY5AqjcKwAxpE75MLFkr wkkEGBECAAkFAlk3nEQCGwwACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Thu, 11 Dec 2025 11:15:10 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 11.12.2025 11:29, Mykola Kvach wrote:
> While working on an arm64 s2ram series for Xen I have hit what looks
> like very strange behaviour in symbols_lookup() as exercised by test-symbols.
> 
> The series is in the branch referenced at [1]. All patches there except
> the last one build and pass CI; adding only the last patch makes the CI
> job referenced at [2] start failing.
> 
> Note that the tests in that job are built without CONFIG_SYSTEM_SUSPEND
> enabled, so most of the code introduced by the s2ram branch is not
> compiled at all for that configuration. That is why I initially did not
> expect my series to affect this job.
> 
> To investigate, I tried to reproduce the issue locally. I downloaded the
> xen-config artifact from the failing job [3] and used it to build Xen
> with my local aarch64 cross compiler. With this local toolchain
> I could not reproduce the failure, and the resulting .config changed slightly
> compared to the job's config. The relevant part of the diff looks like this:
> 
>     diff --git a/xen/.config b/xen-config
>     index 057553f510..44dcf6bacc 100644
>     --- a/xen/.config
>     +++ b/xen-config
>     @@ -3,11 +3,11 @@
>      # Xen/arm 4.22-unstable Configuration
>      #
>      CONFIG_CC_IS_GCC=y
>     -CONFIG_GCC_VERSION=130300
>     +CONFIG_GCC_VERSION=120201
>      CONFIG_CLANG_VERSION=0
>      CONFIG_LD_IS_GNU=y
>      CONFIG_CC_HAS_ASM_INLINE=y
>     -CONFIG_CC_HAS_ASM_GOTO_OUTPUT=y
>     +CONFIG_GCC_ASM_GOTO_OUTPUT_BROKEN=y
>      CONFIG_FUNCTION_ALIGNMENT_4B=y
>      CONFIG_FUNCTION_ALIGNMENT=4
>      CONFIG_ARM_64=y
> 
> So there is at least a difference in GCC version and asm-goto related
> Kconfig options between the CI environment and my local one.
> 
> After that I tried rebuilding inside the same Docker image that GitLab
> CI uses:
> 
>     registry.gitlab.com/xen-project/xen/alpine:3.18-arm64v8
> 
> When I build Xen in that container, using the same branch, the problem
> reproduces in the same way as in the CI job.
> 
> Even more confusingly, adding extra prints in test_symbols just before
> the calls to test_lookup() makes the problem disappear. This made me
> suspect some undefined behaviour or logic issue that is very sensitive
> to optimisation or layout changes.

All symptoms described make me suspect you're hitting a problem we're
already in the process of hunting down. Can you please take [1], make
the small adjustment necessary to Arm's linking rule, and see whether
you get a build failure in the case where right now you get a boot time
crash? Of course no other changes to code or data layout should be done,
or else you may observe false negatives.

Jan

[1] https://lists.xen.org/archives/html/xen-devel/2025-12/msg00390.html



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.