Greetings, 0day kernel testing robot got the below dmesg and the first bad commit is https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master commit db57e98d87908b8837352abe08515e42752270c1 Author: Lecopzer Chen AuthorDate: Mon Sep 23 15:36:24 2019 -0700 Commit: Linus Torvalds CommitDate: Tue Sep 24 15:54:09 2019 -0700 mm/sparse.c: fix ALIGN() without power of 2 in sparse_buffer_alloc() The size argument passed into sparse_buffer_alloc() has already been aligned with PAGE_SIZE or PMD_SIZE. If the size after aligned is not power of 2 (e.g. 0x480000), the PTR_ALIGN() will return wrong value. Use roundup to round sparsemap_buf up to next multiple of size. Link: http://lkml.kernel.org/r/20190705114826.28586-1-lecopzer.chen@mediatek.com Signed-off-by: Lecopzer Chen Signed-off-by: Mark-PK Tsai Cc: YJ Chiang Cc: Lecopzer Chen Cc: Pavel Tatashin Cc: Oscar Salvador Cc: Michal Hocko Cc: Mike Rapoport Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds ae83189405 mm/sparse.c: fix memory leak of sparsemap_buf in aligned memory db57e98d87 mm/sparse.c: fix ALIGN() without power of 2 in sparse_buffer_alloc() +-----------------------------------------------------------------------------------------------+------------+------------+ | | ae83189405 | db57e98d87 | +-----------------------------------------------------------------------------------------------+------------+------------+ | boot_successes | 33 | 0 | | boot_failures | 0 | 11 | | BUG:kernel_reboot-without-warning_in_early-boot_stage,last_printk:early_console_in_setup_code | 0 | 11 | +-----------------------------------------------------------------------------------------------+------------+------------+ If you fix the issue, kindly add following tag Reported-by: kernel test robot early console in setup code BUG: kernel reboot-without-warning in early-boot stage, last printk: early console in setup code Linux version 5.3.0-11836-gdb57e98d87908 #1 Command line: root=/dev/ram0 hung_task_panic=1 debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 net.ifnames=0 printk.devkmsg=on panic=-1 softlockup_panic=1 nmi_watchdog=panic oops=panic load_ramdisk=2 prompt_ramdisk=0 drbd.minor_count=8 systemd.log_level=err ignore_loglevel console=tty0 earlyprintk=ttyS0,115200 console=ttyS0,115200 vga=normal rw link=/cephfs/kbuild/run-queue/yocto-vm-yocto/x86_64-randconfig-r025-20200618/block:async-buffered.7:db57e98d87908b8837352abe08515e42752270c1:bisect-BUG:_kernel_reboot-without-warning_in_early-boot_.__last_printk:_early_console_in_setup_code/.vmlinuz-db57e98d87908b8837352abe08515e42752270c1-20200619041951-5:yocto-vm-yocto-23 branch=block/async-buffered.7 BOOT_IMAGE=/pkg/linux/x86_64-randconfig-r025-20200618/clang-11/db57e98d87908b8837352abe08515e42752270c1/vmlinuz-5.3.0-11836-gdb57e98d87908 rcuperf.shutdown=0 watchdog_thresh=60 # HH:MM RESULT GOOD BAD GOOD_BUT_DIRTY DIRTY_NOT_BAD git bisect start v5.4 v5.3 -- git bisect bad 43b815c6a8e7dbccb5b8bd9c4b099c24bc22d135 # 13:32 B 0 11 27 0 Merge tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc git bisect good 018c6837f3e63b45163d55a1668d9f8e6fdecf6e # 13:32 G 11 0 0 0 Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma git bisect bad da05b5ea12c1e50b2988a63470d6b69434796f8b # 13:32 B 0 11 27 0 Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip git bisect good 299d14d4c31aff3b37a03894e012edf8421676ee # 13:32 G 11 0 0 0 Merge tag 'pci-v5.4-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci git bisect bad 301310c6d24e5b135d1efd3d4a9cc6adc4fbd94a # 13:32 B 0 11 27 0 Merge tag 'tpmdd-next-20190925' of git://git.infradead.org/users/jjs/linux-tpmdd git bisect good 5184d449600f501a8688069f35c138c6b3bf8b94 # 13:33 G 11 0 0 0 Merge tag 'microblaze-v5.4-rc1' of git://git.monstr.eu/linux-2.6-microblaze git bisect bad b6cb84b4fc580098a5934078e4c8dc39e3925f07 # 13:33 B 0 11 27 0 Merge tag 'for-5.4/io_uring-2019-09-24' of git://git.kernel.dk/linux-block git bisect bad 9c9fa97a8edbc3668dfc7a25de516e80c146e86f # 13:33 B 0 11 27 0 Merge branch 'akpm' (patches from Andrew) git bisect good 29a90db9299575a4bba82158f9d4e81405c54646 # 13:33 G 11 0 0 0 mm/memory_hotplug.c: s/is/if git bisect bad 99cb0dbd47a15d395bf3faa78dc122bc5efe3fc0 # 13:33 B 0 11 27 0 mm,thp: add read-only THP support for (non-shmem) FS git bisect bad f9c645621a28e37813a1de96d9cbd89cde94a1e4 # 13:33 B 0 11 27 0 memcg, oom: don't require __GFP_FS when invoking memcg OOM killer git bisect bad 7ea362427c170061b8822dd41bafaa72b3bcb9ad # 13:33 B 0 11 27 0 mm/vmalloc.c: move 'area->pages' after if statement git bisect bad 9f82883c6d9af516c2a7f9fe85eb09e9c25bbe0a # 13:33 B 0 11 27 0 mm/sparse.c: don't manually decrement num_poisoned_pages git bisect bad db57e98d87908b8837352abe08515e42752270c1 # 13:33 B 0 11 27 0 mm/sparse.c: fix ALIGN() without power of 2 in sparse_buffer_alloc() git bisect good ae83189405ea5c693683327fa69ac95a23ec59be # 13:33 G 33 0 0 0 mm/sparse.c: fix memory leak of sparsemap_buf in aligned memory # first bad commit: [db57e98d87908b8837352abe08515e42752270c1] mm/sparse.c: fix ALIGN() without power of 2 in sparse_buffer_alloc() git bisect good ae83189405ea5c693683327fa69ac95a23ec59be # 13:33 G 33 0 0 0 mm/sparse.c: fix memory leak of sparsemap_buf in aligned memory # extra tests with debug options git bisect bad db57e98d87908b8837352abe08515e42752270c1 # 13:33 B 0 11 27 0 mm/sparse.c: fix ALIGN() without power of 2 in sparse_buffer_alloc() # extra tests on head commit of linus/master # 119: [994e99a96c9b502b3f6ee411457007cd52051cf5] Merge tag 'platform-drivers-x86-v5.8-2' of git://git.infradead.org/linux-platform-drivers-x86 into master # extra tests on revert first bad commit # 119: [b04d46c8db7f7a7b4a65e6eba0004958a81109c8] Revert "mm/sparse.c: fix ALIGN() without power of 2 in sparse_buffer_alloc()" # extra tests on linus/master # duplicated: [994e99a96c9b502b3f6ee411457007cd52051cf5] Merge tag 'platform-drivers-x86-v5.8-2' of git://git.infradead.org/linux-platform-drivers-x86 into master # extra tests on linux-next/master # 119: [ca0e494af5edb59002665bf12871e94b4163a257] Add linux-next specific files for 20200715 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/lkp@lists.01.org