Greetings, 0day kernel testing robot got the below dmesg and the first bad commit is https://github.com/0day-ci/linux/commits/Anshuman-Khandual/mm-debug-Add-tests-validating-architecture-page-table-helpers/20191225-180158 commit 87c4696d57b5e380bc2720fdff0772b042462b7d Author: Anshuman Khandual AuthorDate: Tue Dec 24 10:08:42 2019 +0530 Commit: 0day robot CommitDate: Wed Dec 25 18:02:30 2019 +0800 mm/debug: Add tests validating architecture page table helpers This adds tests which will validate architecture page table helpers and other accessors in their compliance with expected generic MM semantics. This will help various architectures in validating changes to existing page table helpers or addition of new ones. This test covers basic page table entry transformations including but not limited to old, young, dirty, clean, write, write protect etc at various level along with populating intermediate entries with next page table page and validating them. Test page table pages are allocated from system memory with required size and alignments. The mapped pfns at page table levels are derived from a real pfn representing a valid kernel text symbol. This test gets called right after page_alloc_init_late(). This gets build and run when CONFIG_DEBUG_VM_PGTABLE is selected along with CONFIG_VM_DEBUG. Architectures willing to subscribe this test also need to select CONFIG_ARCH_HAS_DEBUG_VM_PGTABLE which for now is limited to x86 and arm64. Going forward, other architectures too can enable this after fixing build or runtime problems (if any) with their page table helpers. Folks interested in making sure that a given platform's page table helpers conform to expected generic MM semantics should enable the above config which will just trigger this test during boot. Any non conformity here will be reported as an warning which would need to be fixed. This test will help catch any changes to the agreed upon semantics expected from generic MM and enable platforms to accommodate it thereafter. Cc: Andrew Morton Cc: Vlastimil Babka Cc: Greg Kroah-Hartman Cc: Thomas Gleixner Cc: Mike Rapoport Cc: Jason Gunthorpe Cc: Dan Williams Cc: Peter Zijlstra Cc: Michal Hocko Cc: Mark Rutland Cc: Mark Brown Cc: Steven Price Cc: Ard Biesheuvel Cc: Masahiro Yamada Cc: Kees Cook Cc: Tetsuo Handa Cc: Matthew Wilcox Cc: Sri Krishna chowdary Cc: Dave Hansen Cc: Russell King - ARM Linux Cc: Michael Ellerman Cc: Paul Mackerras Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: "David S. Miller" Cc: Vineet Gupta Cc: James Hogan Cc: Paul Burton Cc: Ralf Baechle Cc: Kirill A. Shutemov Cc: Gerald Schaefer Cc: Christophe Leroy Cc: Ingo Molnar Cc: linux-snps-arc@lists.infradead.org Cc: linux-mips@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-ia64@vger.kernel.org Cc: linuxppc-dev@lists.ozlabs.org Cc: linux-s390@vger.kernel.org Cc: linux-sh@vger.kernel.org Cc: sparclinux@vger.kernel.org Cc: x86@kernel.org Cc: linux-kernel@vger.kernel.org Tested-by: Christophe Leroy #PPC32 Reviewed-by: Ingo Molnar Suggested-by: Catalin Marinas Signed-off-by: Andrew Morton Signed-off-by: Christophe Leroy Signed-off-by: Anshuman Khandual 46cf053efe Linux 5.5-rc3 87c4696d57 mm/debug: Add tests validating architecture page table helpers +------------------------------------------+----------+------------+ | | v5.5-rc3 | 87c4696d57 | +------------------------------------------+----------+------------+ | boot_successes | 32 | 0 | | boot_failures | 0 | 11 | | kernel_BUG_at_include/linux/mm.h | 0 | 11 | | invalid_opcode:#[##] | 0 | 11 | | EIP:pgtable_pmd_page_dtor | 0 | 11 | | Kernel_panic-not_syncing:Fatal_exception | 0 | 11 | +------------------------------------------+----------+------------+ If you fix the issue, kindly add following tag Reported-by: kernel test robot [ 1.390624] smp: Brought up 1 node, 2 CPUs [ 1.390624] smpboot: Max logical packages: 2 [ 1.390624] smpboot: Total of 2 processors activated (8783.48 BogoMIPS) [ 1.391537] debug_vm_pgtable: debug_vm_pgtable: Validating architecture page table helpers [ 1.392382] page:f29b85c0 refcount:0 mapcount:0 mapping:00000000 index:0x0 [ 1.393415] raw: 02800000 f29b8624 f29b8584 00000000 00000000 edc22280 ffffffff 00000000 [ 1.394178] page dumped because: VM_BUG_ON_PAGE(page->pmd_huge_pte) [ 1.394820] ------------[ cut here ]------------ [ 1.395296] kernel BUG at include/linux/mm.h:2007! [ 1.395942] invalid opcode: 0000 [#1] SMP DEBUG_PAGEALLOC PTI [ 1.396463] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.5.0-rc3-00001-g87c4696d57b5e #1 [ 1.396722] EIP: pgtable_pmd_page_dtor+0x1a/0x23 [ 1.396722] Code: d4 8a 27 c2 e8 16 81 04 00 b2 01 5b 88 d0 5d c3 55 89 e5 52 89 45 fc 8b 45 fc 83 78 08 00 74 0c ba e1 e2 e0 c1 e8 14 99 13 00 <0f> 0b e8 92 eb 13 00 c9 c3 55 89 e5 52 89 45 fc 8b 45 fc 90 8d 74 [ 1.396722] EAX: c1e0e2e1 EBX: 2dc2e000 ECX: 00000000 EDX: c1e0e2e1 [ 1.396722] ESI: edc2b000 EDI: edc4e010 EBP: ee287f14 ESP: ee287f10 [ 1.396722] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 EFLAGS: 00010246 [ 1.396722] CR0: 80050033 CR2: ffffffff CR3: 0226a000 CR4: 001406b0 [ 1.396722] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000 [ 1.396722] DR6: fffe0ff0 DR7: 00000400 [ 1.396722] Call Trace: [ 1.396722] mop_up_one_pmd+0x48/0x62 [ 1.396722] pgd_free+0x35/0xe0 [ 1.396722] __mmdrop+0x42/0x96 [ 1.396722] debug_vm_pgtable+0x460/0x47c [ 1.396722] kernel_init_freeable+0x84/0x172 [ 1.396722] ? rest_init+0xe9/0xe9 [ 1.396722] kernel_init+0xd/0xe9 [ 1.396722] ret_from_fork+0x1e/0x28 [ 1.396722] Modules linked in: [ 1.396742] ---[ end trace 9c6f11143a94c590 ]--- [ 1.397197] EIP: pgtable_pmd_page_dtor+0x1a/0x23 # HH:MM RESULT GOOD BAD GOOD_BUT_DIRTY DIRTY_NOT_BAD git bisect start 59548166b20af3032c081a8d567551fa5edce034 46cf053efec6a3a5f343fead837777efe8252a46 -- git bisect good be0d040c5c4bf0be561b49030efc5e61f96a2c48 # 00:50 G 11 0 0 0 Merge 'linux-review/Madalin-Bucur/dpaa_eth-fix-DMA-mapping-leak/20191225-042314' into devel-hourly-2019122517 git bisect good 9f24ee23f7dcd753208b8379dc07750a2f9e38be # 01:17 G 11 0 0 0 Merge 'omap/omap-for-v5.6/ti-sysc-dt' into devel-hourly-2019122517 git bisect good 437fd0a2fcebf42ca5a9495c75929f4217d93f8c # 01:35 G 11 0 0 0 Merge 'tty/tty-testing' into devel-hourly-2019122517 git bisect good 74e55c4af3d3fdac084ff3a74b3888a468a33179 # 01:49 G 11 0 0 0 Merge 'pinctrl-samsung/pinctrl-next' into devel-hourly-2019122517 git bisect good fccd6f98a5b3ff2bebdd60669fca895790935c2a # 02:07 G 11 0 0 0 Merge 'shawnguo/for-next' into devel-hourly-2019122517 git bisect good c9315ddfffc58512ff94311e43fee9e19e8c72d0 # 02:32 G 11 0 0 0 Merge 'tip/perf/core' into devel-hourly-2019122517 git bisect good 9e6e6e4c8f466df27a95913e82606c9904ed7e83 # 02:53 G 10 0 0 0 Merge 'linux-review/Viresh-Kumar/sched-fair-Load-balance-aggressively-for-SCHED_IDLE-CPUs/20191225-183419' into devel-hourly-2019122517 git bisect good ab38db6c3c65d49beb4efa8950b96cb0b33dfac0 # 03:19 G 11 0 0 0 Merge 'linux-review/Saravana-Kannan/efi-arm-defer-probe-of-PCIe-backed-efifb-on-DT-systems/20191225-182253' into devel-hourly-2019122517 git bisect bad 3eb52936430c315fa36857e50ce55b40bd7153ef # 04:50 B 0 11 27 0 Merge 'linux-review/Anshuman-Khandual/mm-debug-Add-tests-validating-architecture-page-table-helpers/20191225-180158' into devel-hourly-2019122517 git bisect bad 87c4696d57b5e380bc2720fdff0772b042462b7d # 05:19 B 0 11 27 0 mm/debug: Add tests validating architecture page table helpers # first bad commit: [87c4696d57b5e380bc2720fdff0772b042462b7d] mm/debug: Add tests validating architecture page table helpers git bisect good 46cf053efec6a3a5f343fead837777efe8252a46 # 06:16 G 31 0 0 0 Linux 5.5-rc3 # extra tests with debug options git bisect good 87c4696d57b5e380bc2720fdff0772b042462b7d # 07:04 G 11 0 2 2 mm/debug: Add tests validating architecture page table helpers # extra tests on head commit of linux-review/Anshuman-Khandual/mm-debug-Add-tests-validating-architecture-page-table-helpers/20191225-180158 git bisect bad 87c4696d57b5e380bc2720fdff0772b042462b7d # 07:06 B 0 11 27 0 mm/debug: Add tests validating architecture page table helpers # bad: [87c4696d57b5e380bc2720fdff0772b042462b7d] mm/debug: Add tests validating architecture page table helpers # extra tests on revert first bad commit git bisect good dd0462bb7fdbb7c31a88e93334199d4f6ea6a6b6 # 08:50 G 10 0 0 0 Revert "mm/debug: Add tests validating architecture page table helpers" # good: [dd0462bb7fdbb7c31a88e93334199d4f6ea6a6b6] Revert "mm/debug: Add tests validating architecture page table helpers" --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/hyperkitty/list/lkp@lists.01.org Intel Corporation