lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 16 Jul 2020 16:32:00 +0800
From:   kernel test robot <lkp@...el.com>
To:     Lecopzer Chen <lecopzer.chen@...iatek.com>
Cc:     Mark-PK Tsai <Mark-PK.Tsai@...iatek.com>,
        Andrew Morton <akpm@...ux-foundation.org>,
        Linux Memory Management List <linux-mm@...ck.org>,
        linux-kernel@...r.kernel.org, LKP <lkp@...ts.01.org>
Subject: db57e98d87 ("mm/sparse.c: fix ALIGN() without power of 2 in .."):
 BUG: kernel reboot-without-warning in early-boot stage, last printk: early
 console in setup code

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 <lecopzer.chen@...iatek.com>
AuthorDate: Mon Sep 23 15:36:24 2019 -0700
Commit:     Linus Torvalds <torvalds@...ux-foundation.org>
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 <lecopzer.chen@...iatek.com>
    Signed-off-by: Mark-PK Tsai <Mark-PK.Tsai@...iatek.com>
    Cc: YJ Chiang <yj.chiang@...iatek.com>
    Cc: Lecopzer Chen <lecopzer.chen@...iatek.com>
    Cc: Pavel Tatashin <pasha.tatashin@...cle.com>
    Cc: Oscar Salvador <osalvador@...e.de>
    Cc: Michal Hocko <mhocko@...e.com>
    Cc: Mike Rapoport <rppt@...ux.ibm.com>
    Signed-off-by: Andrew Morton <akpm@...ux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@...ux-foundation.org>

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 <lkp@...el.com>

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

Download attachment "dmesg-yocto-vm-yocto-23:20200619042212:x86_64-randconfig-r025-20200618:5.3.0-11836-gdb57e98d87908:1.gz" of type "application/gzip" (1052 bytes)

View attachment "reproduce-yocto-vm-yocto-23:20200619042212:x86_64-randconfig-r025-20200618:5.3.0-11836-gdb57e98d87908:1" of type "text/plain" (804 bytes)

Download attachment "13967a59b086db5cb2a664e5a4b1be82bd57b793:clang-11:x86_64-randconfig-r025-20200618:BUG:kernel_reboot-without-warning_in_early-boot_stage,last_printk:early_console_in_setup_code.xz" of type "application/x-xz" (6268 bytes)

View attachment "config-5.3.0-11836-gdb57e98d87908" of type "text/plain" (112333 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ