From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1169058AbdDXMjh (ORCPT ); Mon, 24 Apr 2017 08:39:37 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:34968 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1169183AbdDXMj2 (ORCPT ); Mon, 24 Apr 2017 08:39:28 -0400 Date: Mon, 24 Apr 2017 21:39:12 +0900 Message-ID: <87wpaa7zf3.wl-satoru.takeuchi@gmail.com> From: Satoru Takeuchi To: Borislav Petkov Cc: Satoru Takeuchi , x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [BUG] x86: failed to boot a kernel on a Ryzen machine In-Reply-To: <20170424110753.y332daaxxkwiipog@pd.tnic> References: <87pog21ede.wl-satoru.takeuchi@gmail.com> <20170424110753.y332daaxxkwiipog@pd.tnic> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.8 EasyPG/1.0.0 Emacs/24.5 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org At Mon, 24 Apr 2017 13:07:53 +0200, Borislav Petkov wrote: > > On Mon, Apr 24, 2017 at 03:58:05PM +0900, Satoru Takeuchi wrote: > > Recently I bought a new Ryzen machine. When I tried to test v4.11-rc8 on it, it failed to boot > > with the following panic log. > > > > ``` > > ... > > [ 0.227720] raid6: sse2x1 gen() 7985 MB/s > > [ 0.295709] raid6: sse2x1 xor() 8181 MB/s > > [ 0.363706] raid6: sse2x2 gen() 17531 MB/s > > [ 0.431699] raid6: sse2x2 xor() 11098 MB/s > > [ 0.499693] raid6: sse2x4 gen() 18509 MB/s > > [ 0.567688] raid6: sse2x4 xor() 10177 MB/s > > [ 0.571692] invalid opcode: 0000 [#1] SMP > > [ 0.572312] Modules linked in: > > [ 0.572822] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.11.0-rc8-ktest #1 > > [ 0.573734] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Ubuntu-1.8.2-1ubuntu1 04/01/2014 > ^^^^^^^^^^^^^^ > > Next time your report a bug, say it is a guest on the *very* first line > of your report. I'm very sorry. > > Now, how do you start your guest exactly? Full cmdline pls. I used the following auto-test tool (its backend is ktest). https://github.com/satoru-takeuchi/elkdat This problem can be reproduced by the following command on Ubuntu 16.04. ``` $ sudo apt-get install git vagrant libvirt-bin libvirt-dev kernel-package qemu-kvm libssl-dev libncurses5-dev ... $ sudo usermod -aG libvirt ``` Log out and back in here. ``` $ sudo sed -i'' "s/Specification.all = nil/Specification.reset/" /usr/lib/ruby/vendor_ruby/vagrant/bundler.rb # See https://github.com/vagrant-libvirt/vagrant-libvirt/issues/575 for more details about this patching $ vagrant plugin install vagrant-libvirt $ git clone https://github.com/satoru-takeuchi/elkdat.git ... $ cp -r /path/to/linux/source elkdat/linux $ cd elkdat $ ./init # start guest ... $ pushd linux ... $ git checkout v4.11-rc8 ... $ popd ... $ ./test boot # build and boot v4.11-rc8 ... # kernel panic happens here ``` The core of the starting guest process of above mentioned tools is as follows. 1. Add the vagrant box for the guest VM ``` $ vagrant box add elastic/ubuntu-16.04-x86_64 --provider libvirt ... ``` 2. Start the VM with the following Vagrantfile. ``` $ cd elkdat $ vagrant up ``` The summary of Vagrantfile is here. ``` Vagrant.configure("2") do |config| ... config.vm.define :ktest do |vm| vm.vm.box = "elastic/ubuntu-16.04-x86_64" vm.vm.synced_folder './', '/vagrant', type: 'rsync' vm.vm.provider :libvirt do |domain| domain.cpus = 2 end end ... end ``` Thanks, Satoru > > -- > Regards/Gruss, > Boris. > > Good mailing practices for 400: avoid top-posting and trim the reply.