lkml.org 
[lkml]   [2023]   [Nov]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] mm/gup: Fix follow_devmap_p[mu]d() on page==NULL handling
On Thu, 23 Nov 2023 13:02:22 -0500 Peter Xu <peterx@redhat.com> wrote:

> This is a bug found not by any report but only by code observations.
>
> When GUP sees a devpmd/devpud and if page==NULL is returned, it means a
> fault is probably required. Here falling through when page==NULL can cause
> unexpected behavior.
>

Well this is worrisome. We aren't able to construct a test case to
demonstrate this bug? Why is that? Is it perhaps just dead code?

\
 
 \ /
  Last update: 2023-11-24 20:21    [W:0.070 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site