All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oleksii Kurochko <oleksii.kurochko@gmail.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: "Romain Caritey" <Romain.Caritey@microchip.com>,
	"Stefano Stabellini" <sstabellini@kernel.org>,
	"Julien Grall" <julien@xen.org>,
	"Bertrand Marquis" <bertrand.marquis@arm.com>,
	"Michal Orzel" <michal.orzel@amd.com>,
	"Volodymyr Babchuk" <Volodymyr_Babchuk@epam.com>,
	"Andrew Cooper" <andrew.cooper3@citrix.com>,
	"Anthony PERARD" <anthony.perard@vates.tech>,
	"Roger Pau Monné" <roger.pau@citrix.com>,
	xen-devel@lists.xenproject.org
Subject: Re: [PATCH v3 02/12] xen: fix len type for guest copy functions
Date: Wed, 22 Apr 2026 12:02:04 +0200	[thread overview]
Message-ID: <c08b9944-d64b-4ae2-85aa-75c978d9a7ab@gmail.com> (raw)
In-Reply-To: <d942bf90-6f8d-4389-90e6-a486ac510e1b@suse.com>



On 4/20/26 5:44 PM, Jan Beulich wrote:
> On 10.04.2026 17:54, Oleksii Kurochko wrote:
>> Widen the len argument of copy_to_guest_phys_flush_dcache() and the
>> copy_to_guest_phys_cb typedef from unsigned int to unsigned long, as
>> the function can be used to copy large blobs such as the initrd which
>> may exceed 4GB. Update the internal copy_guest() len argument to
>> unsigned long accordingly.
>>
>> Change the type for local variable size in copy_guest() to avoid
>> compilation error because of type mismatch.
>>
>> raw_* wrappers above copy_guest() keep returning unsigned long to
>> avoid type narrowing; it is not an issue for raw_*'s len argument
>> to remain 'unsigned int' since the assignment to copy_guest()'s wider
>> unsigned long parameter is safe and there is no raw_* users who
>> are using a value bigger than what can fit into 'unsigned int'.
>>
>> Reported-by: Jan Beulich <jbeulich@suse.com>
>> Signed-off-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
> 
> Actually: You say "fix" in the subject. How about sorting out a correct
> Fixes: tag then?

I will add then before Reported-by:

Fixes: 2986481b3d9e6 ("xen/arm: guest_copy: Extend the prototype to pass 
the vCPU")
Fixes: 5302bd490bea7 ("xen/arm: Introduce copy_to_guest_phys_flush_dcache")
Fixes: d07b7369aa65b ("xen/common: dom0less: introduce common 
domain-build.c")




  reply	other threads:[~2026-04-22 10:02 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-10 15:54 [PATCH v3 00/12] RISCV: enable DOMAIN_BUILD_HELPERS Oleksii Kurochko
2026-04-10 15:54 ` [PATCH v3 01/12] xen/riscv: implement get_page_from_gfn() Oleksii Kurochko
2026-04-20 14:17   ` Jan Beulich
2026-04-10 15:54 ` [PATCH v3 02/12] xen: fix len type for guest copy functions Oleksii Kurochko
2026-04-20 15:43   ` Jan Beulich
2026-04-20 15:44   ` Jan Beulich
2026-04-22 10:02     ` Oleksii Kurochko [this message]
2026-04-10 15:54 ` [PATCH v3 03/12] xen/riscv: implement copy_to_guest_phys() Oleksii Kurochko
2026-04-20 15:46   ` Jan Beulich
2026-04-10 15:54 ` [PATCH v3 04/12] xen/dom0less: rename kernel_zimage_probe() to kernel_image_probe() Oleksii Kurochko
2026-04-10 15:54 ` [PATCH v3 05/12] xen/riscv: add kernel loading support Oleksii Kurochko
2026-04-21  8:57   ` Jan Beulich
2026-04-22 11:45     ` Oleksii Kurochko
2026-04-22 11:57       ` Jan Beulich
2026-04-22 13:47         ` Oleksii Kurochko
2026-04-22 13:54           ` Jan Beulich
2026-04-22 14:32             ` Oleksii Kurochko
2026-04-21  9:01   ` Jan Beulich
2026-04-10 15:54 ` [PATCH v3 06/12] xen: move declaration of fw_unreserved_regions() to common header Oleksii Kurochko
2026-04-10 15:54 ` [PATCH v3 07/12] xen: introduce domain-layout.h with common domain_use_host_layout() Oleksii Kurochko
2026-04-21  9:20   ` Jan Beulich
2026-04-22 14:38     ` Oleksii Kurochko
2026-04-10 15:54 ` [PATCH v3 08/12] xen/riscv: rework G-stage mode handling Oleksii Kurochko
2026-04-21  9:39   ` Jan Beulich
2026-04-22 16:06     ` Oleksii Kurochko
2026-04-10 15:54 ` [PATCH v3 09/12] xen: rename p2m_ipa_bits to p2m_gpa_bits Oleksii Kurochko
2026-04-10 15:54 ` [PATCH v3 10/12] xen/riscv: introduce p2m_gpa_bits Oleksii Kurochko
2026-04-21  9:46   ` Jan Beulich
2026-04-23 13:47     ` Oleksii Kurochko
2026-05-04  5:39       ` Jan Beulich
2026-04-10 15:54 ` [PATCH v3 11/12] xen/riscv: add definition of guest RAM banks Oleksii Kurochko
2026-04-21 10:24   ` Jan Beulich
2026-04-23 13:50     ` Oleksii Kurochko
2026-04-10 15:54 ` [PATCH v3 12/12] xen/riscv: enable DOMAIN_BUILD_HELPERS Oleksii Kurochko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c08b9944-d64b-4ae2-85aa-75c978d9a7ab@gmail.com \
    --to=oleksii.kurochko@gmail.com \
    --cc=Romain.Caritey@microchip.com \
    --cc=Volodymyr_Babchuk@epam.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=anthony.perard@vates.tech \
    --cc=bertrand.marquis@arm.com \
    --cc=jbeulich@suse.com \
    --cc=julien@xen.org \
    --cc=michal.orzel@amd.com \
    --cc=roger.pau@citrix.com \
    --cc=sstabellini@kernel.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.