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  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Sat, 25 Nov 2017 21:34:50 +0800
From:   Fengguang Wu <fengguang.wu@...el.com>
To:     Dave Hansen <dave.hansen@...ux.intel.com>
Cc:     wfg@...ux.intel.com, Ingo Molnar <mingo@...nel.org>,
        linux-kernel@...r.kernel.org, kvm@...r.kernel.org, LKP <lkp@...org>
Subject: 06222d856e ("x86/mm/kaiser: Use PCID feature to make user and kernel
 switches faster"): BUG: kernel hang in boot stage

Hi Dave,

Here are two more error messages for commit

https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.x86/mm

commit 06222d856e45d727c18665ed37419d653f1dbef5
Author:     Dave Hansen <dave.hansen@...ux.intel.com>
AuthorDate: Wed Nov 22 16:35:09 2017 -0800
Commit:     Ingo Molnar <mingo@...nel.org>
CommitDate: Fri Nov 24 08:29:51 2017 +0100

     x86/mm/kaiser: Use PCID feature to make user and kernel switches faster
     
     Short summary: Use x86 PCID feature to avoid flushing the TLB at all
     interrupts and syscalls.  Speed them up.  Makes context switches
     and TLB flushing slower.
     
     [...]

     Signed-off-by: Dave Hansen <dave.hansen@...ux.intel.com>
     Cc: Andy Lutomirski <luto@...nel.org>
     Cc: Borislav Petkov <bp@...en8.de>
     Cc: Brian Gerst <brgerst@...il.com>
     Cc: Daniel Gruss <daniel.gruss@...k.tugraz.at>
     Cc: Denys Vlasenko <dvlasenk@...hat.com>
     Cc: H. Peter Anvin <hpa@...or.com>
     Cc: Hugh Dickins <hughd@...gle.com>
     Cc: Josh Poimboeuf <jpoimboe@...hat.com>
     Cc: Kees Cook <keescook@...gle.com>
     Cc: Linus Torvalds <torvalds@...ux-foundation.org>
     Cc: Michael Schwarz <michael.schwarz@...k.tugraz.at>
     Cc: Moritz Lipp <moritz.lipp@...k.tugraz.at>
     Cc: Peter Zijlstra <peterz@...radead.org>
     Cc: Richard Fellner <richard.fellner@...dent.tugraz.at>
     Cc: Thomas Gleixner <tglx@...utronix.de>
     Cc: linux-mm@...ck.org
     Link: http://lkml.kernel.org/r/20171123003509.EC42DD15@viggo.jf.intel.com
     Signed-off-by: Ingo Molnar <mingo@...nel.org>

5ab2af1e02  x86/mm: Allow flushing for future ASID switches
06222d856e  x86/mm/kaiser: Use PCID feature to make user and kernel switches faster
850f70b234  x86/mm/kaiser: Add Kconfig
1b46550a68  Merge branch 'WIP.x86/mm'
+-------------------------------------------------------+------------+------------+------------+------------+
|                                                       | 5ab2af1e02 | 06222d856e | 850f70b234 | 1b46550a68 |
+-------------------------------------------------------+------------+------------+------------+------------+
| boot_successes                                        | 353        | 134        | 114        | 120        |
| boot_failures                                         | 40         | 24         | 28         | 29         |
| WARNING:at_drivers/pci/pci-sysfs.c:#pci_mmap_resource | 36         | 10         | 8          | 8          |
| RIP:pci_mmap_resource                                 | 37         | 10         | 8          | 9          |
| BUG:workqueue_lockup-pool                             | 3          | 1          |            |            |
| BUG:kernel_hang_in_boot_stage                         | 0          | 9          | 9          | 4          |
| kernel_BUG_at_arch/x86/kernel/mpparse.c               | 0          | 4          | 11         | 16         |
| PANIC:early_exception                                 | 0          | 4          | 11         | 16         |
| RIP:default_get_smp_config                            | 0          | 4          | 11         | 16         |
+-------------------------------------------------------+------------+------------+------------+------------+

[    0.004000] ... CHAINHASH_SIZE:          32768
[    0.004000]  memory used by lock dependency info: 7359 kB
[    0.004000]  per task-struct memory footprint: 1920 bytes
[    0.004000] ODEBUG: selftest passed
[    0.004000] ACPI: Core revision 20170728
BUG: kernel hang in boot stage


[    0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x000000001ffdbfff]
[    0.000000] On node 0 totalpages: 130938
[    0.000000]   DMA zone: 64 pages used for memmap
[    0.000000]   DMA zone: 21 pages reserved
[    0.000000]   DMA zone: 3998 pages, LIFO batch:0
[    0.000000]   DMA32 zone: 1984 pages used for memmap
[    0.000000]   DMA32 zone: 126940 pages, LIFO batch:31
[    0.000000] Intel MultiProcessor Specification v1.0
[    0.000000] ------------[ cut here ]------------
[    0.000000] kernel BUG at arch/x86/kernel/mpparse.c:559!
PANIC: early exception 0x06 IP 10:ffffffff81f1ceb4 error 0 cr2 0xffff880002b6d000
[    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 4.14.0-01247-g06222d8 #112
[    0.000000] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[    0.000000] task: ffffffff81c1a500 task.stack: ffffffff81c00000
[    0.000000] RIP: 0010:default_get_smp_config+0x73c/0x7da
[    0.000000] RSP: 0000:ffffffff81c03e38 EFLAGS: 00010046 ORIG_RAX: 0000000000000000
[    0.000000] RAX: 0000000000000027 RBX: 86db21edabd071e4 RCX: ffffffff81c03ce4
[    0.000000] RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000000000000000
[    0.000000] RBP: ffffffff81c03eb8 R08: 0000000000000001 R09: 0000000000000000
[    0.000000] R10: ffffffff81c03d88 R11: ffffffff82919e0c R12: ffff88001ffcfe25
[    0.000000] R13: 00000000003d6e25 R14: ffffffffff200a90 R15: 0000000000000000
[    0.000000] FS:  0000000000000000(0000) GS:ffffffff81c39000(0000) knlGS:0000000000000000
[    0.000000] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    0.000000] CR2: ffff880002b6d000 CR3: 0000000001c15000 CR4: 00000000000606b0
[    0.000000] Call Trace:
[    0.000000]  ? dmi_check_system+0x15/0x3a
[    0.000000]  ? acpi_boot_init+0x34/0x84f
[    0.000000]  ? fill_pte+0xba/0xee
[    0.000000]  ? early_pci_scan_bus+0x62/0x30e
[    0.000000]  ? __set_pte_vaddr+0x36/0x40
[    0.000000]  ? setup_arch+0xa63/0xb77
[    0.000000]  ? init_cgroup_housekeeping+0xc3/0xe5
[    0.000000]  ? start_kernel+0x79/0x5fd
[    0.000000]  ? secondary_startup_64+0xa5/0xb0
[    0.000000] Code: 0b 00 16 ff 48 8d 7d a0 c6 45 a0 01 c6 45 a1 00 c7 45 a2 49 53 41 20 66 c7 45 a6 20 20 e8 81 eb ff ff 31 ff e8 46 e4 ff ff eb 02 <0f> 0b 48 b8 1c b0 0c 95 d6 6c a7 78 48 31 c3 8b 35 bf 6d 10 00

                                                           # HH:MM RESULT GOOD BAD GOOD_BUT_DIRTY DIRTY_NOT_BAD
git bisect start e4dcd0d3a4208f27ce626594a4ac0bbdb97733a2 9cd6681cb1169e815c41af0265165dd1b872f228 --
git bisect good 3bd51c5a371de917e4e7401c9df006b5998579df  # 18:22  G     85     0    6   6  objtool: Move kernel headers/code sync check to a script
git bisect good f10783ef056b89fd4ebb063ef92640df0114e63a  # 18:58  G     89     0    9   9  Merge branch 'sched/urgent'
git bisect good bcdd83b3b4765596c7e9e1c2adc5211f2bd9da52  # 19:24  G     89     0    8   9  Merge branch 'sched/urgent'
git bisect good 5b265adfd42be4da4fe919b6a8e3f5d25c5dde26  # 19:50  G     83     0    6   7  Merge branch 'timers/urgent'
git bisect good 318795c8036047280bb0e252241e77d1dcfb99f3  # 20:15  G     82     0    4   4  Merge branch 'x86/urgent'
git bisect good 24d3f840973ef024286ad5d286b82d698db73f8c  # 20:36  G     89     0    7   7  Merge branch 'WIP.timers'
git bisect good 0f973021371ba1bc27ed30fee64756562113bc08  # 21:58  G     85     0    8   8  x86/mm/kaiser: Prepare assembly for entry/exit CR3 switching
git bisect good 7334239d11aef5603241e24173a32abf7f0b8a5a  # 22:41  G     81     0    7   7  x86/mm: Move CR3 construction functions
git bisect  bad 4132e51f20ea0d05fedf0f1ba89200e4334b067d  # 23:19  B     46     3   20  21  x86/mm/kaiser: Disable native VSYSCALL
git bisect good 19a55298c2878e3453c93a9686be8ea8fd2a3970  # 00:21  G    118     0    7   7  x86/mm: Put mmu-to-h/w ASID translation in one place
git bisect  bad 06222d856e45d727c18665ed37419d653f1dbef5  # 01:07  B     66     5    7   7  x86/mm/kaiser: Use PCID feature to make user and kernel switches faster
git bisect good 5ab2af1e02f3b2fba5364984c7ef781fac4561f6  # 03:13  G    126     0   13  13  x86/mm: Allow flushing for future ASID switches
# first bad commit: [06222d856e45d727c18665ed37419d653f1dbef5] x86/mm/kaiser: Use PCID feature to make user and kernel switches faster
git bisect good 5ab2af1e02f3b2fba5364984c7ef781fac4561f6  # 04:21  G    358     0   27  40  x86/mm: Allow flushing for future ASID switches
# extra tests on HEAD of tip/master
git bisect  bad e4dcd0d3a4208f27ce626594a4ac0bbdb97733a2  # 04:21  B     38     3    0   6  Merge branch 'WIP.x86/mm'
# extra tests on tree/branch tip/WIP.x86/mm
git bisect  bad 850f70b2343d7c69c8af560aa883c238a5c89701  # 04:43  B     84     2   12  12  x86/mm/kaiser: Add Kconfig
# extra tests with first bad commit reverted
git bisect good 6d9e29038f8f424f717f848b43295ee06ac845c0  # 05:25  G    120     0    8   8  Revert "x86/mm/kaiser: Use PCID feature to make user and kernel switches faster"
# extra tests on tree/branch tip/master
git bisect good 1b46550a680d4f5b80af2490dab05868e79b462a  # 05:44  G    119     0   24  25  Merge branch 'WIP.x86/mm'

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

Download attachment "dmesg-yocto-lkp-hsw01-101:20171125004604:x86_64-randconfig-i0-201747:4.14.0-01247-g06222d8:112.gz" of type "application/gzip" (3750 bytes)

View attachment "reproduce-yocto-lkp-hsw01-101:20171125004604:x86_64-randconfig-i0-201747:4.14.0-01247-g06222d8:112" of type "text/plain" (753 bytes)

View attachment "config-4.14.0-01247-g06222d8" of type "text/plain" (116141 bytes)

View attachment "dmesg-yocto-lkp-hsw01-84:20171125003821:x86_64-randconfig-i0-201747:4.14.0-01247-g06222d8:112" of type "text/plain" (8400 bytes)

Powered by blists - more mailing lists