Greetings, 0day kernel testing robot got the below dmesg and the first bad commit is https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master commit 2fdaa9d4301cd46ef0e82989afe7051c679e6d05 Author: Steven Price AuthorDate: Tue Nov 19 11:47:28 2019 +1100 Commit: Stephen Rothwell CommitDate: Mon Dec 2 13:15:44 2019 +1100 x86: mm: convert dump_pagetables to use walk_page_range Make use of the new functionality in walk_page_range to remove the arch page walking code and use the generic code to walk the page tables. The effective permissions are passed down the chain using new fields in struct pg_state. The KASAN optimisation is implemented by including test_p?d callbacks which can decide to skip an entire tree of entries Link: http://lkml.kernel.org/r/20191028135910.33253-21-steven.price@arm.com Signed-off-by: Steven Price Cc: Andrey Ryabinin Cc: Alexander Potapenko Cc: Dmitry Vyukov Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Thomas Gleixner Cc: Albert Ou Cc: Alexandre Ghiti Cc: Andy Lutomirski Cc: Ard Biesheuvel Cc: Arnd Bergmann Cc: Benjamin Herrenschmidt Cc: Borislav Petkov Cc: Catalin Marinas Cc: Christian Borntraeger Cc: Dave Hansen Cc: Dave Jiang Cc: David S. Miller Cc: Heiko Carstens Cc: James Hogan Cc: James Morse Cc: "Liang, Kan" Cc: Mark Rutland Cc: Matthew Wilcox Cc: Michael Ellerman Cc: Naoya Horiguchi Cc: Palmer Dabbelt Cc: Paul Burton Cc: Paul Mackerras Cc: Paul Walmsley Cc: Peter Zijlstra Cc: Ralf Baechle Cc: Russell King Cc: Shiraz Hashim Cc: Vasily Gorbik Cc: Vineet Gupta Cc: Will Deacon Cc: Zong Li Signed-off-by: Andrew Morton Signed-off-by: Stephen Rothwell be0d18d4f9 mm/ptdump: fix a -Wold-style-declaration warning 2fdaa9d430 x86: mm: convert dump_pagetables to use walk_page_range +----------------------------------------+------------+------------+ | | be0d18d4f9 | 2fdaa9d430 | +----------------------------------------+------------+------------+ | boot_successes | 33 | 0 | | boot_failures | 0 | 11 | | INFO:trying_to_register_non-static_key | 0 | 11 | +----------------------------------------+------------+------------+ If you fix the issue, kindly add following tag Reported-by: kernel test robot [ 15.773658] Write protecting the kernel read-only data: 59392k [ 15.779777] Freeing unused kernel image (text/rodata gap) memory: 2040K [ 15.782847] Freeing unused kernel image (rodata/data gap) memory: 1428K [ 15.824309] x86/mm: Checked W+X mappings: passed, no W+X pages found. [ 15.825244] x86/mm: Checking user space page tables [ 15.826062] INFO: trying to register non-static key. [ 15.826762] the code is fine but needs lockdep annotation. [ 15.827496] turning off the locking correctness validator. [ 15.828254] CPU: 0 PID: 1 Comm: swapper Tainted: G T 5.4.0-14407-g2fdaa9d4301cd #2 [ 15.829482] Call Trace: [ 15.830430] dump_stack+0x23/0x2c [ 15.830892] register_lock_class+0xcca/0xce0 [ 15.831465] ? arch_stack_walk+0x9a/0x130 [ 15.832004] ? is_dynamic_key+0x190/0x190 [ 15.832549] ? ret_from_fork+0x24/0x30 [ 15.833098] ? stack_trace_save+0xab/0x100 [ 15.833648] __lock_acquire+0xe0/0x2760 [ 15.834193] ? __list_add_valid+0x3a/0x130 [ 15.834763] ? save_trace+0x473/0x5a0 [ 15.835260] ? mark_lock+0x760/0x760 [ 15.835750] lock_acquire+0x15a/0x290 [ 15.836244] ? __walk_page_range+0x1264/0x1570 [ 15.836860] _raw_spin_lock+0x4f/0xd0 [ 15.837439] ? __walk_page_range+0x1264/0x1570 [ 15.838081] __walk_page_range+0x1264/0x1570 [ 15.838704] walk_page_range_novma+0x100/0x1b0 [ 15.839295] ? walk_page_range+0x2a0/0x2a0 [ 15.839846] ? __read_once_size_nocheck+0x30/0x30 [ 15.840607] ? ret_from_fork+0x24/0x30 [ 15.841155] ? __orc_find+0x8a/0xe0 [ 15.841625] ptdump_walk_pgd+0x74/0xe0 [ 15.842157] ptdump_walk_pgd_level_core+0x164/0x240 [ 15.842850] ? hugetlb_get_unmapped_area+0x840/0x840 [ 15.843512] ? __orc_find+0x8a/0xe0 [ 15.843984] ? put_dec_trunc8+0x49/0x180 [ 15.844512] ? ptdump_walk_pgd_level_core+0x240/0x240 [ 15.845230] ? __kasan_check_write+0x2e/0x40 [ 15.845800] ptdump_walk_pgd_level_user_core+0xfa/0x180 [ 15.849123] ? note_page+0x1020/0x1020 [ 15.849632] ? ptdump_walk_pgd+0x3b/0xe0 [ 15.850192] ? pti_clone_pgtable+0x2e7/0x4a0 [ 15.851025] ? ptdump_walk_user_pgd_level_checkwx+0x4a/0x90 [ 15.851838] ? rest_init+0x200/0x200 [ 15.852349] ptdump_walk_user_pgd_level_checkwx+0x85/0x90 [ 15.853124] pti_finalize+0x99/0xe6 [ 15.853640] kernel_init+0x68/0x1d0 [ 15.854145] ? rest_init+0x200/0x200 [ 15.854692] ret_from_fork+0x24/0x30 [ 15.855514] x86/mm: Checked W+X mappings: passed, no W+X pages found. [ 15.856465] Run /init as init process [ 15.873689] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input4 [ 15.875091] evbug: Connected device: input4 (ImExPS/2 Generic Explorer Mouse at isa0060/serio1/input0) [ 15.880927] random: init: uninitialized urandom read (12 bytes read) # HH:MM RESULT GOOD BAD GOOD_BUT_DIRTY DIRTY_NOT_BAD git bisect start c5db92909beddadddb705b92d3388ea50b01e1a2 v5.4 -- git bisect good f988172904a8e7574affe85eec99eb91ac7e1a8f # 13:00 G 10 0 0 0 Merge remote-tracking branch 'ide/master' git bisect good dc2e543da554ae5703f5eb71483263821b4d20c5 # 13:37 G 10 0 0 0 Merge remote-tracking branch 'swiotlb/linux-next' git bisect good 34e7643d8e9b7340458e5a5e3f0f7cee03e74e29 # 13:58 G 11 0 1 1 Merge remote-tracking branch 'drivers-x86/for-next' git bisect good 7384a7a3ebb07042fa916e7713e26adb1070abd3 # 14:35 G 10 0 0 0 Merge remote-tracking branch 'ktest/for-next' git bisect good 176b423b0aa4366e64649ff2722e0a70d5b0044d # 15:14 G 10 0 0 0 Merge remote-tracking branch 'fsi/next' git bisect good bd7ecfa19f1476dab116865714617818702e8f3b # 15:36 G 10 0 0 0 Merge remote-tracking branch 'devfreq/devfreq-next' git bisect good 42f74766c89ff3af608f390d93fe9a3f5ccf729f # 16:27 G 10 0 0 0 Merge branch 'akpm-current/current' git bisect bad 335567f88239b6a8bc2d5abbd03a03cab7edfb90 # 16:46 B 0 4 20 0 Merge branch 'akpm/master' git bisect good 4fe538ac5d48f1d5f446c441897fd3a724aee02c # 17:43 G 10 0 0 0 gpio: pca953x: tighten up indentation git bisect good a4bcd5e480e6c7083229f4ab55d53a388cb5dc93 # 18:19 G 10 0 0 0 mm-add-generic-ptdump-v15 git bisect bad e9dc62ea765e9ab2b39429fb6fb89a53ef0d5c9f # 19:06 B 0 8 24 0 microblaze: use pgtable-nopmd instead of 4level-fixup git bisect bad 541728e05f903a6ef29da05efbf51eb460f56296 # 19:55 B 0 8 24 0 mm: ptdump: reduce level numbers by 1 in note_page() git bisect bad 2fdaa9d4301cd46ef0e82989afe7051c679e6d05 # 20:10 B 0 1 17 0 x86: mm: convert dump_pagetables to use walk_page_range git bisect good be0d18d4f90559ce4dc75f3893b343a24f4e5865 # 20:38 G 10 0 0 0 mm/ptdump: fix a -Wold-style-declaration warning # first bad commit: [2fdaa9d4301cd46ef0e82989afe7051c679e6d05] x86: mm: convert dump_pagetables to use walk_page_range git bisect good be0d18d4f90559ce4dc75f3893b343a24f4e5865 # 20:44 G 32 0 0 0 mm/ptdump: fix a -Wold-style-declaration warning # extra tests with debug options git bisect good 2fdaa9d4301cd46ef0e82989afe7051c679e6d05 # 21:08 G 10 0 10 10 x86: mm: convert dump_pagetables to use walk_page_range --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/hyperkitty/list/lkp@lists.01.org Intel Corporation