RE: [PATCH v2 1/2] habanalabs: support kernel memory mapping

From: Omer Shpigelman
Date: Wed Oct 23 2019 - 09:39:46 EST


On Thu, Oct 23, 2019 at 12:21 PM Christoph Hellwig <hch@xxxxxxxxxxxxx> wrote:
> On Tue, Oct 22, 2019 at 06:30:35AM +0000, Omer Shpigelman wrote:
> > Changes in v2:
> > - use a boolean parameter to indicate for kernel address rather than
> > calling is_vmalloc_addr, as kernel and user addresses can overlap on
> > some architectures.
>
> That is still broken. Please use an actual kernel pointer instead of losing all
> type safety by casting it an integer type.

I'm not sure I understand. Can you please pin point the problematic line?