Re: [PATCH 5.19 0246/1157] usercopy: use unsigned long instead of uintptr_t

From: Greg Kroah-Hartman
Date: Tue Aug 16 2022 - 06:54:51 EST


On Mon, Aug 15, 2022 at 09:06:21PM +0100, Matthew Wilcox wrote:
> On Mon, Aug 15, 2022 at 07:53:22PM +0200, Greg Kroah-Hartman wrote:
> > From: Jason A. Donenfeld <Jason@xxxxxxxxx>
> >
> > [ Upstream commit 170b2c350cfcb6f74074e44dd9f916787546db0d ]
> >
> > A recent commit factored out a series of annoying (unsigned long) casts
> > into a single variable declaration, but made the pointer type a
> > `uintptr_t` rather than the usual `unsigned long`. This patch changes it
> > to be the integer type more typically used by the kernel to represent
> > addresses.
> >
> > Fixes: 35fb9ae4aa2e ("usercopy: Cast pointer to an integer once")
>
> Not sure why this needs to be backported?

Odd, shouldn't be, now dropped.

greg k-h