Re: [PATCH AUTOSEL 5.4 38/78] nvme: fix compat address handling in several ioctls

From: Nick Bowler
Date: Tue Apr 28 2020 - 01:23:50 EST


On 2020-04-28, Naresh Kamboju <naresh.kamboju@xxxxxxxxxx> wrote:
> On Sat, 18 Apr 2020 at 20:24, Sasha Levin <sashal@xxxxxxxxxx> wrote:
>> From: Nick Bowler <nbowler@xxxxxxxxxx>
>>
>> [ Upstream commit c95b708d5fa65b4e51f088ee077d127fd5a57b70 ]
[...]
>> +static void __user *nvme_to_user_ptr(uintptr_t ptrval)
>> +{
>> + if (in_compat_syscall())
>> + ptrval = (compat_uptr_t)ptrval;
>
> arm64 make modules failed while building with an extra kernel config.
[...]
> 72 ../drivers/nvme/host/core.c:1256:13: error: âcompat_uptr_tâ
> undeclared (first use in this function); did you mean âcompat_time_tâ?

Probably commit 556d687a4ccd5 ("compat: ARM64: always include
asm-generic/compat.h") is required to be backported to 5.4 as a
prerequisite for including this fix in the 5.4 stable series.

Cheers,
Nick