We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 924bd6a commit b6c9d5aCopy full SHA for b6c9d5a
mm/kasan/shadow.c
@@ -199,19 +199,12 @@ static bool shadow_mapped(unsigned long addr)
199
pud = pud_offset(p4d, addr);
200
if (pud_none(*pud))
201
return false;
202
-
203
- /*
204
- * We can't use pud_large() or pud_huge(), the first one is
205
- * arch-specific, the last one depends on HUGETLB_PAGE. So let's abuse
206
- * pud_bad(), if pud is bad then it's bad because it's huge.
207
- */
208
- if (pud_bad(*pud))
+ if (pud_leaf(*pud))
209
return true;
210
pmd = pmd_offset(pud, addr);
211
if (pmd_none(*pmd))
212
213
214
- if (pmd_bad(*pmd))
+ if (pmd_leaf(*pmd))
215
216
pte = pte_offset_kernel(pmd, addr);
217
return !pte_none(ptep_get(pte));
0 commit comments