On Fri, Mar 27, 2020 at 06:03:32PM +0100, Alexander Potapenko wrote: > > Also the page > > doesn't have to be mapped into kernel address space, you probably > > want to pass the page to kmsan_handle_dma and throw in a highmem > > check there. > > Do you mean comparing the address to TASK_SIZE, or is there a more > portable way to check that? !PageHighMem(page) implies the page has a kernel direct mapping.