tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: f7efed9f38f886edb450041b82a6f15d663c98f8 commit: 0dfcf1e2873372f51dd86a7cfabc1b8bbf776269 [9443/10326] mm/pagewalk: walk_pte_range() allow for pte_offset_map() config: riscv-buildonly-randconfig-r001-20230615 (https://download.01.org/0day-ci/archive/20230617/202306171343.1IeyGfuO-lkp@xxxxxxxxx/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project.git f28c006a5895fc0e329fe15fead81e37457cb1d1) reproduce: (https://download.01.org/0day-ci/archive/20230617/202306171343.1IeyGfuO-lkp@xxxxxxxxx/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202306171343.1IeyGfuO-lkp@xxxxxxxxx/ All warnings (new ones prefixed by >>): >> mm/pagewalk.c:261:12: warning: stack frame size (2144) exceeds limit (2048) in 'walk_pgd_range' [-Wframe-larger-than] static int walk_pgd_range(unsigned long addr, unsigned long end, ^ 1 warning generated. vim +/walk_pgd_range +261 mm/pagewalk.c c2febafc67734a Kirill A. Shutemov 2017-03-09 260 fafaa4264eba49 Naoya Horiguchi 2015-02-11 @261 static int walk_pgd_range(unsigned long addr, unsigned long end, fafaa4264eba49 Naoya Horiguchi 2015-02-11 262 struct mm_walk *walk) fafaa4264eba49 Naoya Horiguchi 2015-02-11 263 { fafaa4264eba49 Naoya Horiguchi 2015-02-11 264 pgd_t *pgd; fafaa4264eba49 Naoya Horiguchi 2015-02-11 265 unsigned long next; 7b86ac3371b70c Christoph Hellwig 2019-08-28 266 const struct mm_walk_ops *ops = walk->ops; fafaa4264eba49 Naoya Horiguchi 2015-02-11 267 int err = 0; fafaa4264eba49 Naoya Horiguchi 2015-02-11 268 e47690d756a760 Steven Price 2020-02-03 269 if (walk->pgd) e47690d756a760 Steven Price 2020-02-03 270 pgd = walk->pgd + pgd_index(addr); e47690d756a760 Steven Price 2020-02-03 271 else fafaa4264eba49 Naoya Horiguchi 2015-02-11 272 pgd = pgd_offset(walk->mm, addr); fafaa4264eba49 Naoya Horiguchi 2015-02-11 273 do { fafaa4264eba49 Naoya Horiguchi 2015-02-11 274 next = pgd_addr_end(addr, end); fafaa4264eba49 Naoya Horiguchi 2015-02-11 275 if (pgd_none_or_clear_bad(pgd)) { 7b86ac3371b70c Christoph Hellwig 2019-08-28 276 if (ops->pte_hole) b7a16c7ad790d0 Steven Price 2020-02-03 277 err = ops->pte_hole(addr, next, 0, walk); fafaa4264eba49 Naoya Horiguchi 2015-02-11 278 if (err) fafaa4264eba49 Naoya Horiguchi 2015-02-11 279 break; fafaa4264eba49 Naoya Horiguchi 2015-02-11 280 continue; fafaa4264eba49 Naoya Horiguchi 2015-02-11 281 } 3afc423632a194 Steven Price 2020-02-03 282 if (ops->pgd_entry) { 3afc423632a194 Steven Price 2020-02-03 283 err = ops->pgd_entry(pgd, addr, next, walk); 3afc423632a194 Steven Price 2020-02-03 284 if (err) 3afc423632a194 Steven Price 2020-02-03 285 break; 3afc423632a194 Steven Price 2020-02-03 286 } e17eae2b839937 Christophe Leroy 2021-06-28 287 if (is_hugepd(__hugepd(pgd_val(*pgd)))) e17eae2b839937 Christophe Leroy 2021-06-28 288 err = walk_hugepd_range((hugepd_t *)pgd, addr, next, walk, PGDIR_SHIFT); e17eae2b839937 Christophe Leroy 2021-06-28 289 else if (ops->p4d_entry || ops->pud_entry || ops->pmd_entry || ops->pte_entry) c2febafc67734a Kirill A. Shutemov 2017-03-09 290 err = walk_p4d_range(pgd, addr, next, walk); fafaa4264eba49 Naoya Horiguchi 2015-02-11 291 if (err) fafaa4264eba49 Naoya Horiguchi 2015-02-11 292 break; fafaa4264eba49 Naoya Horiguchi 2015-02-11 293 } while (pgd++, addr = next, addr != end); fafaa4264eba49 Naoya Horiguchi 2015-02-11 294 fafaa4264eba49 Naoya Horiguchi 2015-02-11 295 return err; fafaa4264eba49 Naoya Horiguchi 2015-02-11 296 } fafaa4264eba49 Naoya Horiguchi 2015-02-11 297 :::::: The code at line 261 was first introduced by commit :::::: fafaa4264eba49fd10695c193a82760558d093f4 pagewalk: improve vma handling :::::: TO: Naoya Horiguchi <n-horiguchi@xxxxxxxxxxxxx> :::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki