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>] [day] [month] [year] [list]
Message-ID: <20171009153127.te3t2ejxu57rafql@wfg-t540p.sh.intel.com>
Date:   Mon, 9 Oct 2017 23:31:27 +0800
From:   Fengguang Wu <fengguang.wu@...el.com>
To:     Tom Lendacky <thomas.lendacky@....com>
Cc:     wfg@...ux.intel.com, Ingo Molnar <mingo@...nel.org>,
        Thomas Gleixner <tglx@...utronix.de>,
        linux-kernel@...r.kernel.org, LKP <lkp@...org>
Subject: [x86/SME] 5868f3651f 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 5868f3651fa0dff96a57f94d49247d3ef320ebe2
Author:     Tom Lendacky <thomas.lendacky@....com>
AuthorDate: Mon Jul 17 16:10:05 2017 -0500
Commit:     Ingo Molnar <mingo@...nel.org>
CommitDate: Tue Jul 18 11:37:59 2017 +0200

     x86/mm: Add support to enable SME in early boot processing
     
     Add support to the early boot code to use Secure Memory Encryption (SME).
     Since the kernel has been loaded into memory in a decrypted state, encrypt
     the kernel in place and update the early pagetables with the memory
     encryption mask so that new pagetable entries will use memory encryption.
     
     The routines to set the encryption mask and perform the encryption are
     stub routines for now with functionality to be added in a later patch.
     
     Signed-off-by: Tom Lendacky <thomas.lendacky@....com>
     Reviewed-by: Thomas Gleixner <tglx@...utronix.de>
     Cc: Alexander Potapenko <glider@...gle.com>
     Cc: Andrey Ryabinin <aryabinin@...tuozzo.com>
     Cc: Andy Lutomirski <luto@...nel.org>
     Cc: Arnd Bergmann <arnd@...db.de>
     Cc: Borislav Petkov <bp@...en8.de>
     Cc: Brijesh Singh <brijesh.singh@....com>
     Cc: Dave Young <dyoung@...hat.com>
     Cc: Dmitry Vyukov <dvyukov@...gle.com>
     Cc: Jonathan Corbet <corbet@....net>
     Cc: Konrad Rzeszutek Wilk <konrad.wilk@...cle.com>
     Cc: Larry Woodman <lwoodman@...hat.com>
     Cc: Linus Torvalds <torvalds@...ux-foundation.org>
     Cc: Matt Fleming <matt@...eblueprint.co.uk>
     Cc: Michael S. Tsirkin <mst@...hat.com>
     Cc: Paolo Bonzini <pbonzini@...hat.com>
     Cc: Peter Zijlstra <peterz@...radead.org>
     Cc: Radim Krčmář <rkrcmar@...hat.com>
     Cc: Rik van Riel <riel@...hat.com>
     Cc: Toshimitsu Kani <toshi.kani@....com>
     Cc: kasan-dev@...glegroups.com
     Cc: kvm@...r.kernel.org
     Cc: linux-arch@...r.kernel.org
     Cc: linux-doc@...r.kernel.org
     Cc: linux-efi@...r.kernel.org
     Cc: linux-mm@...ck.org
     Link: http://lkml.kernel.org/r/e52ad781f085224bf835b3caff9aa3aee6febccb.1500319216.git.thomas.lendacky@amd.com
     Signed-off-by: Ingo Molnar <mingo@...nel.org>

33c2b803ed  x86/mm: Remove phys_to_virt() usage in ioremap()
5868f3651f  x86/mm: Add support to enable SME in early boot processing
42b76d0e6b  Merge tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
1418b85217  Add linux-next specific files for 20170929
+-------------------------------------------------------+------------+------------+------------+---------------+
|                                                       | 33c2b803ed | 5868f3651f | 42b76d0e6b | next-20170929 |
+-------------------------------------------------------+------------+------------+------------+---------------+
| boot_successes                                        | 31         | 0          | 0          | 0             |
| boot_failures                                         | 0          | 11         | 19         | 11            |
| BUG:kernel_reboot-without-warning_in_early-boot_stage | 0          | 11         | 19         | 11            |
+-------------------------------------------------------+------------+------------+------------+---------------+

early console in setup code


                                                           # HH:MM RESULT GOOD BAD GOOD_BUT_DIRTY DIRTY_NOT_BAD
git bisect start e19b205be43d11bff638cad4487008c48d21c103 v4.13 --
git bisect  bad d719518d9ce9132bad8a06e8029aeead328f66a3  # 08:54  B      0     6   20   0  Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-next
git bisect  bad a7cbfd05f427f8f1164bc53866971e89a0cbe103  # 09:22  B      0    11   24   0  Merge branch 'for-4.14' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu
git bisect  bad 6caffe21ddeaae4a9d18d46eed2445a8d269a1fe  # 09:53  B      0     6   21   2  Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mattst88/alpha
git bisect good a1400cdb777409d142c76958ed96e39c2cb95edd  # 03:05  G     11     0    0   1  Merge branch 'x86-cpu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect  bad dd90cccffc20a15d8e4c3ac8813f4b6a6cd4766f  # 03:26  B      0    11   25   0  Merge branch 'timers-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect good e0a195b5225e1285806622cc146dc5c3312fb392  # 04:31  G     11     0    0   4  Merge branch 'x86-spinlocks-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect good 5f82e71a001d14824a7728ad9e49f6aea420f161  # 05:05  G     11     0    0   0  Merge branch 'locking-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect  bad b1b6f83ac938d176742c85757960dec2cf10e468  # 05:47  B      0    11   24   0  Merge branch 'x86-mm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect  bad f655e6e6b992a2fb0d0334db2620607b98df39e7  # 07:03  B      0     6   19   0  x86/cpu/AMD: Make the microcode level available earlier in the boot
git bisect  bad fd7e315988b784509ba3f1b42f539bd0b1fca9bb  # 07:20  B      0     6   20   0  x86/mm: Simplify p[g4um]d_page() macros
git bisect good 1ed7d32763857fbdc8e406352404538e41050d22  # 07:34  G     11     0    0   0  Merge branch 'x86/boot' into x86/mm, to pick up interacting changes
git bisect good 872cbefd2d9c52bd0b1e2c7942c4369e98a5a5ae  # 07:51  G     11     0    0   0  x86/cpu/AMD: Add the Secure Memory Encryption CPU feature
git bisect good 7744ccdbc16f0ac4adae21b3678af93775b3a386  # 08:29  G     10     0    0   0  x86/mm: Add Secure Memory Encryption (SME) support
git bisect  bad 5868f3651fa0dff96a57f94d49247d3ef320ebe2  # 09:14  B      0    11   24   0  x86/mm: Add support to enable SME in early boot processing
git bisect good 33c2b803edd13487518a2c7d5002d84d7e9c878f  # 09:34  G     11     0    0   0  x86/mm: Remove phys_to_virt() usage in ioremap()
# first bad commit: [5868f3651fa0dff96a57f94d49247d3ef320ebe2] x86/mm: Add support to enable SME in early boot processing
git bisect good 33c2b803edd13487518a2c7d5002d84d7e9c878f  # 09:45  G     31     0    0   0  x86/mm: Remove phys_to_virt() usage in ioremap()
# extra tests with CONFIG_DEBUG_INFO_REDUCED
git bisect  bad 5868f3651fa0dff96a57f94d49247d3ef320ebe2  # 10:21  B      0     9   22   0  x86/mm: Add support to enable SME in early boot processing
# extra tests on HEAD of linux-devel/devel-catchup-201710011903
git bisect  bad d6a25f79713e75948c2022f417c827895f94bcfd  # 10:22  B      0    11   27   0  0day head guard for 'devel-catchup-201710011903'
# extra tests on tree/branch linus/master
git bisect  bad 42b76d0e6b1fe0fcb90e0ff6b4d053d50597b031  # 10:54  B      0     1   16   2  Merge tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
# extra tests on tree/branch linux-next/master
git bisect  bad 1418b852174ad50b3cb4738b8801626aefdc0bd9  # 11:27  B      0     9   22   0  Add linux-next specific files for 20170929

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/lkp                          Intel Corporation

Download attachment "dmesg-yocto-kbuild-25:20171005091005:x86_64-randconfig-s3-10011845:4.13.0-rc1-00043-g5868f36:2.gz" of type "application/gzip" (1077 bytes)

View attachment "reproduce-yocto-kbuild-25:20171005091005:x86_64-randconfig-s3-10011845:4.13.0-rc1-00043-g5868f36:2" of type "text/plain" (759 bytes)

View attachment "config-4.13.0-rc1-00043-g5868f36" of type "text/plain" (100013 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ