On 14.10.24 16:57, Andrew Cooper wrote:
UBSAN complains:

   (XEN) 
================================================================================
   (XEN) UBSAN: Undefined behaviour in common/spinlock.c:794:10
   (XEN) load of address ffff82d040ae24c8 with insufficient space
   (XEN) for an object of type 'struct lock_profile *'
   (XEN) ----[ Xen-4.20-unstable  x86_64  debug=y ubsan=y  Tainted:   C    ]----

This shows up with GCC-14, but not with GCC-12.  I have not bisected further.

Either way, the types for __lock_profile_{start,end} are incorrect.

They are an array of struct lock_profile pointers.  Correct the extern's
types, and adjust the loop to match.

No practical change.

Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com>

Reviewed-by: Juergen Gross <jgr...@suse.com>


Juergen

Attachment: OpenPGP_0xB0DE9DD628BF132F.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to