Re: [PATCH] x86/mm: Allow clflush_cache_range() to flush large ranges

From: Dave Hansen

Date: Mon Nov 30 2026 - 10:02:59 EST


On 11/29/26 22:57, Yang Wencheng wrote:
> clflush_cache_range() accepts an unsigned int size even though several
> callers naturally pass size_t values. Ranges larger than UINT_MAX are
> therefore truncated and only partially flushed.
>
> Use size_t for the public interface and its internal helper so the
> complete range is preserved.

Does this cause any practical problems?