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]
Message-ID: <5d384f96.dD36t9B/8FDRT5y1%lkp@intel.com>
Date:   Wed, 24 Jul 2019 20:31:18 +0800
From:   kernel test robot <lkp@...el.com>
To:     Peter Zijlstra <peterz@...radead.org>
Cc:     LKP <lkp@...org>, kvm@...r.kernel.org,
        linux-kernel@...r.kernel.org, Andy Lutomirski <luto@...nel.org>,
        Thomas Gleixner <tglx@...utronix.de>, philip.li@...el.com
Subject: a0d14b8909 ("x86/mm, tracing: Fix CR2 corruption"):  Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.

Greetings,

0day kernel testing robot got the below dmesg and the first bad commit is

https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux.git master

commit a0d14b8909de55139b8702fe0c7e80b69763dcfb
Author:     Peter Zijlstra <peterz@...radead.org>
AuthorDate: Thu Jul 11 13:40:59 2019 +0200
Commit:     Thomas Gleixner <tglx@...utronix.de>
CommitDate: Wed Jul 17 23:17:38 2019 +0200

    x86/mm, tracing: Fix CR2 corruption
    
    Despite the current efforts to read CR2 before tracing happens there still
    exist a number of possible holes:
    
      idtentry page_fault             do_page_fault           has_error_code=1
        call error_entry
          TRACE_IRQS_OFF
            call trace_hardirqs_off*
              #PF // modifies CR2
    
          CALL_enter_from_user_mode
            __context_tracking_exit()
              trace_user_exit(0)
                #PF // modifies CR2
    
        call do_page_fault
          address = read_cr2(); /* whoopsie */
    
    And similar for i386.
    
    Fix it by pulling the CR2 read into the entry code, before any of that
    stuff gets a chance to run and ruin things.
    
    Reported-by: He Zhe <zhe.he@...driver.com>
    Reported-by: Eiichi Tsukata <devel@...ukata.com>
    Signed-off-by: Peter Zijlstra (Intel) <peterz@...radead.org>
    Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
    Reviewed-by: Andy Lutomirski <luto@...nel.org>
    Cc: bp@...en8.de
    Cc: rostedt@...dmis.org
    Cc: torvalds@...ux-foundation.org
    Cc: hpa@...or.com
    Cc: dave.hansen@...ux.intel.com
    Cc: jgross@...e.com
    Cc: joel@...lfernandes.org
    Link: https://lkml.kernel.org/r/20190711114336.116812491@infradead.org
    
    Debugged-by: Steven Rostedt <rostedt@...dmis.org>

4234653e88  x86/entry/64: Update comments and sanity tests for create_gap
a0d14b8909  x86/mm, tracing: Fix CR2 corruption
ad5e427e0f  Merge branch 'parisc-5.3-3' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux
9e6dfe8045  Add linux-next specific files for 20190724
+------------------------------------------------+------------+------------+------------+---------------+
|                                                | 4234653e88 | a0d14b8909 | ad5e427e0f | next-20190724 |
+------------------------------------------------+------------+------------+------------+---------------+
| boot_successes                                 | 31         | 0          | 0          | 0             |
| boot_failures                                  | 0          | 11         | 6          | 8             |
| Kernel_panic-not_syncing:No_working_init_found | 0          | 11         | 6          | 8             |
+------------------------------------------------+------------+------------+------------+---------------+

If you fix the issue, kindly add following tag
Reported-by: kernel test robot <lkp@...el.com>

[   15.632639] Starting init: /sbin/init exists but couldn't execute it (error -14)
[   15.634040] Run /etc/init as init process
[   15.634890] Run /bin/init as init process
[   15.635402] Run /bin/sh as init process
[   15.636008] Starting init: /bin/sh exists but couldn't execute it (error -14)
[   15.636789] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
[   15.638408] CPU: 0 PID: 1 Comm: init Tainted: G                T 5.2.0-08454-ga0d14b8 #1
[   15.639263] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[   15.640145] Call Trace:
[   15.640427]  ? dump_stack+0x8f/0xd5
[   15.640812]  ? rest_init+0x190/0x250
[   15.641206]  ? panic+0xd7/0x35b
[   15.641624]  ? rest_init+0x250/0x250
[   15.642070]  ? kernel_init+0x17b/0x190
[   15.642479]  ? ret_from_fork+0x33/0x40
[   15.643608] Kernel Offset: disabled


                                                          # HH:MM RESULT GOOD BAD GOOD_BUT_DIRTY DIRTY_NOT_BAD
git bisect start 5f9e832c137075045d15cd6899ab0505cfb2ca4b 22051d9c4a57d3b4a8b5a7407efc80c71c7bfb16 --
git bisect good a84d2d2906f983fb80f5dcc3e8e7c3ad70aa9f0d  # 08:14  G     10     0    0   0  Merge tag 'csky-for-linus-5.3-rc1' of git://github.com/c-sky/csky-linux
git bisect good 70e6e1b971e46f5c1c2d72217ba62401a2edc22b  # 13:28  G     10     0    0   0  Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect  bad f1a3b43cc1f50c6ee5ba582f2025db3dea891208  # 13:54  B      0     2   18   0  Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
git bisect good 46f5c0cc3af0ecb76224a91d2997d74e35ff7821  # 14:27  G     10     0    1   1  Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect  bad c6dd78fcb8eefa15dd861889e0f59d301cb5230c  # 14:48  B      0     3   19   0  Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect good 55aedddb6149ab71bec9f050846855113977b033  # 15:10  G     11     0    0   0  x86/paravirt: Make read_cr2() CALLEE_SAVE
git bisect  bad cd6697b8b8751b65abd7859af55cf06f36b8e716  # 15:29  B      0     2   18   0  x86/boot/efi: Remove unused variables
git bisect good 2fd37912cfb019228bf246215938e6f7619516a2  # 15:57  G     11     0    0   0  x86/entry/64: Simplify idtentry a little
git bisect  bad a0d14b8909de55139b8702fe0c7e80b69763dcfb  # 16:06  B      0     1   16   0  x86/mm, tracing: Fix CR2 corruption
git bisect good 4234653e882740cbf6625eeee294e388b3176583  # 16:36  G     11     0    0   0  x86/entry/64: Update comments and sanity tests for create_gap
# first bad commit: [a0d14b8909de55139b8702fe0c7e80b69763dcfb] x86/mm, tracing: Fix CR2 corruption
git bisect good 4234653e882740cbf6625eeee294e388b3176583  # 16:43  G     30     0    0   0  x86/entry/64: Update comments and sanity tests for create_gap
# extra tests on HEAD of linus/master
git bisect  bad 7b5cf701ea9c395c792e2a7e3b7caf4c68b87721  # 17:06  B      0     1   17   0  Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
# extra tests on tree/branch linus/master
git bisect  bad ad5e427e0f6b702e52c11d1f7b2b7be3bac7de82  # 20:09  B      0     7   23   0  Merge branch 'parisc-5.3-3' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux
# extra tests on tree/branch linux-next/master
git bisect  bad 9e6dfe8045f85f9b5aade47e4192482927e2791a  # 20:30  B      0     6   23   0  Add linux-next specific files for 20190724

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

Download attachment "dmesg-yocto-vm-yocto-8a0139c85771:20190724160608:i386-randconfig-w0-07231344:5.2.0-08454-ga0d14b8:1.gz" of type "application/gzip" (13051 bytes)

View attachment "reproduce-yocto-vm-yocto-8a0139c85771:20190724160608:i386-randconfig-w0-07231344:5.2.0-08454-ga0d14b8:1" of type "text/plain" (931 bytes)

View attachment "config-5.2.0-08454-ga0d14b8" of type "text/plain" (114228 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ