[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 1/2] xen: Allow lib-y targets to also be .init.o
- To: Jan Beulich <jbeulich@xxxxxxxx>
- From: "Orzel, Michal" <michal.orzel@xxxxxxx>
- Date: Fri, 23 Jan 2026 13:53:31 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=suse.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=SW35XvlIx+S/Jd949buxSvZ9DPei6U3vMT8XhIBiezQ=; b=BORGl8x81ccboXC7iGWSnqS5qOzeHvHSH8hiru33ElmPbJB6/pRFqmG9xQ4uCRAo00gvkLIfNspqPIglUPYZUNbwCBvBfkjjRYqHFoVET9t3HdseDq4IgfUZPbn3AOK19hJ0LYL7gHoD4YNUV4AEkIhSaxH8O3g94tgs8r83lrSBRMCDHLhzgtwk2ec+Me+DJxqAV6AgSx+ML1Z//+Be2i+wXeQr2JL8MxDpK3fNKZZQf+INb/vtNiSgBjs29x6ywfcb/1tYGdqCA9rv7leGKONqKVekD+TQxOY0SmnXwfxJNzjybMLurpk4uvCor0xtsQ1XXnuUVG2iGYU0j3oC4g==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=QJjmO2zqb46//thrPxx9RhcPZfo3Q3egXrTyaOGn3AsBJp3n0v07p35dORBhqBJc94Q7+vHkumJ49Es2imL8BcnR1U39ly/M+lIYaYAaVGHfw5HETeMV0c3v9ZA4ma+gIu5V2lpYL0ikLQTozDZ+ukKFzziayAwh5Xd7qbUoRxHSneINmHEPGZU8bDyG77BviS8azzMOKOEaW1jxpR/lv6gh4JLBUaZlNlueI/BXky2GQ+0oRfzEE7TT+Qdu7vkO6OMO5jdsP7FcCgnK6YdJ2SIjscMLmkwteQ8CRWDkAWtQgKsqSsHY9vNxe2MJxhcC9lOaviRRWndXg+KNnlDa5Q==
- Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
- Delivery-date: Fri, 23 Jan 2026 12:54:02 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 23/01/2026 12:37, Jan Beulich wrote:
> On 23.01.2026 11:56, Orzel, Michal wrote:
>> On 22/01/2026 11:01, Jan Beulich wrote:
>>> On 22.01.2026 10:49, Jan Beulich wrote:
>>>> On 21.01.2026 16:47, Alejandro Vallejo wrote:
>>>>> There's some assumptions as to which targets may be init-only. But
>>>>> there's little reason to preclude libraries from being init-only.
>>>>>
>>>>> Signed-off-by: Alejandro Vallejo <alejandro.garciavallejo@xxxxxxx>
>>>>> Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
>>>>
>>>> I can't tell (yet) what it is, but as per CI something's clearly wrong
>>>> with this
>>>> change. Both xilinx-smoke-dom0less-arm64-* and qemu-smoke-dom0*-debug*
>>>> fail with
>>>> it in place. qemu-smoke-dom0-arm64-gcc (no "debug") was fine, suggesting
>>>> it may
>>>> be an early assertion triggering.
>>>
>>> Or an early UBSAN failure. I think ...
>> I did a test and it looks like the problem is division by zero in
>> generic_muldiv64. At this point, time is not yet initialized on Arm, so
>> cpu_khz
>> is 0 in ticks_to_ns.
>
> And division by 0 is otherwise benign on Arm64? (On x86 it raises an exception
> and hence would be a problem also without UBSAN.)
>From the ARM ARM spec:
"A division by zero results in a zero being written to the destination register,
without any indication that the division by
zero occurred."
~Michal
|