Commit c28ac3c
mm/mglru: skip special VMAs in lru_gen_look_around()
Special VMAs like VM_PFNMAP can contain anon pages from COW. There isn't
much profit in doing lookaround on them. Besides, they can trigger the
pte_special() warning in get_pte_pfn().
Skip them in lru_gen_look_around().
Link: https://lkml.kernel.org/r/20231223045647.1566043-1-yuzhao@google.com
Fixes: 018ee47 ("mm: multi-gen LRU: exploit locality in rmap")
Signed-off-by: Yu Zhao <yuzhao@google.com>
Reported-by: syzbot+03fd9b3f71641f0ebf2d@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/000000000000f9ff00060d14c256@google.com/
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>1 parent 4bdd58d commit c28ac3c
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3955 | 3955 | | |
3956 | 3956 | | |
3957 | 3957 | | |
| 3958 | + | |
3958 | 3959 | | |
3959 | 3960 | | |
3960 | 3961 | | |
| |||
3969 | 3970 | | |
3970 | 3971 | | |
3971 | 3972 | | |
| 3973 | + | |
| 3974 | + | |
| 3975 | + | |
| 3976 | + | |
3972 | 3977 | | |
3973 | 3978 | | |
3974 | 3979 | | |
3975 | | - | |
3976 | | - | |
| 3980 | + | |
| 3981 | + | |
3977 | 3982 | | |
3978 | 3983 | | |
3979 | 3984 | | |
| |||
3998 | 4003 | | |
3999 | 4004 | | |
4000 | 4005 | | |
4001 | | - | |
| 4006 | + | |
4002 | 4007 | | |
4003 | 4008 | | |
4004 | 4009 | | |
| |||
4009 | 4014 | | |
4010 | 4015 | | |
4011 | 4016 | | |
4012 | | - | |
| 4017 | + | |
4013 | 4018 | | |
4014 | 4019 | | |
4015 | 4020 | | |
| |||
0 commit comments