[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 1/1] tools/libs/light: fix BAR memory address truncation
- To: Jan Beulich <jbeulich@xxxxxxxx>
- From: "Chen, Jiqian" <Jiqian.Chen@xxxxxxx>
- Date: Mon, 13 Oct 2025 08:38:36 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none
- 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=YdqZ4j4VE/VBCmRYWbniGMMaL3JBfIPnc7SmqXk/2x0=; b=OVx3nzx+DvTSY5IPiwigg4CUURfZRRbcf37epRfwtr2lAAjhUsheKQqAlsVawWr5DRDabIAfJCcglNP4MSQCDNQcN4APjGdgbEhNaR8EJXjOETFoNWAOVC8uIPncv5E4kAgXU0whnaEsekcADSZtY8nK/M92PRaCBtet1LA+Uckrl9zWfv9MgcXrGKEfyGJQoxlviCbGSmzCT1rY6Obkx2pELO2sFwx/t3X8Ql9NLIijDegveMS3lYGE4Atza29BzG/r3P03Itw0fuqCwZ7EkDzsljNCT7YfayGOhvMiZD2+cPV978GoqoUEhALaXpZdXWMaxspt0WnzC5k6r/avrQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=jEl8S8vcXYx7Rb9XFqGvItU65kfyKyxGHx7xLq3M8zMg4lIbIcSZ6iPsNCpWFY/3W4O4+1E7RKzT0dt2ytL1rgAq2JsLie8nJFlE6xgdnXVogGHPVgba1WBY3TRB59r8ibL2EY16RbvDlpFTJqRRAlisHIAqA+WIBCe0UDipQ6+GQWP8pXNW/IinTVQheKaIq5iIlxzhatKC6Z8btXlEqv4/9aelH5tafmIN+KuDmrJGXnAUv6+nTEvP6Mu8dpjQhslVj50coK9i9yrU/aeabkTRseW0Iky47+oFvrUh2UG8FLoaYfaIrmjBOKr71CRkbhW2rFdL+hKqID7UaQR65A==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com;
- Cc: Oleksii Kurochko <oleksii.kurochko@xxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "Huang, Ray" <Ray.Huang@xxxxxxx>, "Chen, Jiqian" <Jiqian.Chen@xxxxxxx>
- Delivery-date: Mon, 13 Oct 2025 08:38:56 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHcPBVojxVVZQBbcUyvi85wGyhb8bS/wFyAgACGnYA=
- Thread-topic: [PATCH v2 1/1] tools/libs/light: fix BAR memory address truncation
On 2025/10/13 16:35, Jan Beulich wrote:
> On 13.10.2025 09:45, Jiqian Chen wrote:
>> @@ -2031,7 +2032,7 @@ static void pci_remove_detached(libxl__egc *egc,
>> }
>>
>> for (i = 0; i < PROC_PCI_NUM_RESOURCES; i++) {
>> - if (fscanf(f, "0x%x 0x%x 0x%x\n", &start, &end, &flags) != 3)
>> + if (fscanf(f, "0x%"SCNx64" 0x%"SCNx64" 0x%"SCNx64"\n", &start,
>> &end, &flags) != 3)
>
> This line has now grown too long, where it can easily be wrapped (unlike ...
>
>> @@ -2040,7 +2041,7 @@ static void pci_remove_detached(libxl__egc *egc,
>> size, 0);
>> if (rc < 0)
>> LOGED(ERROR, domid,
>> - "xc_domain_ioport_permission error 0x%x/0x%x",
>> + "xc_domain_ioport_permission error
>> %#"PRIx64"/%#"PRIx64,
>
> ... here and ...
>
>> @@ -2050,7 +2051,7 @@ static void pci_remove_detached(libxl__egc *egc,
>> 0);
>> if (rc < 0)
>> LOGED(ERROR, domid,
>> - "xc_domain_iomem_permission error 0x%x/0x%x",
>> + "xc_domain_ioport_permission error
>> %#"PRIx64"/%#"PRIx64,
>
> ... here, where we prefer to keep the entire format string on a single line).
> Can likely be addressed while committing.
Yes, thanks for helping me address this.
>
> Jan
--
Best regards,
Jiqian Chen.
|