Bug 16527

Summary: Kernel panic in kernel-desktop-4.1.3-1 when is using more than 1 processor
Product: Mageia Reporter: Piotr Mierzwinski <piotr.mierzwinski>
Component: RPM PackagesAssignee: Thomas Backlund <tmb>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: gm2.asp, marja11, thierry.vignaud
Version: Cauldron   
Target Milestone: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Source RPM: kernel-desktop-4.1.3-1.mga6-1-1.mga6 CVE:
Status comment:
Attachments: Kernel panic screen shot
VirtualBox 5.0 settings
VirtualBox 5.0 settings for Windows host (Intel i5 in host)
VirtualBox 5.0 settings for Linux host (Amd Phenom in host, no nested paging)
Kernel panic screen shot (4.1.4-desktop)

Description Piotr Mierzwinski 2015-08-03 02:03:01 CEST
Description of problem:
Testing in VirtualBox 5.0.0 (host and guest), where Mageia was a guest.

When I try to run Mageia Cauldron using kernel-desktop-4.1.3-1 (default), whereas in VBox is set more than one processors, then I get Kernel Panic.

Please note, that using kernel-server-4.1.3-1 all is fine.


Version-Release number of selected component (if applicable):
kernel-desktop-4.1.3-1.mga6-1-1.mga6

How reproducible:

Steps to Reproduce:
1. Start VirtualBox
2. Set more than 1 CPU in virtual machine
3. Try to start the latest Mageia Cauldron using default kernel: kernel-desktop-4.1.3-1

Result:
Kernel Panic.


I'm not sure is this new limit for desktop kernels in Mageia or just bug.
Tested with all updates made at day 2015/08/02.


Reproducible: 

Steps to Reproduce:
Comment 1 Piotr Mierzwinski 2015-08-03 02:08:18 CEST
Created attachment 6888 [details]
Kernel panic screen shot
Comment 2 Marja Van Waes 2015-08-03 08:40:12 CEST
Do you get the kernel panic every time you try, or didn't you try again?
If the latter, then please try whether you can reproduce it.

CC: (none) => marja11, tmb
Whiteboard: (none) => NEEDINFO

Comment 3 Thierry Vignaud 2015-08-03 13:45:03 CEST
Can you test if disabling "nested paging" in vbox config (system) fixes it?
I'd quite a lot of kernel oops & userspace segfaults once updating to virtualbox-5.0 on Windows that were solved by disabling "nested paging"

CC: (none) => thierry.vignaud

Comment 4 Piotr Mierzwinski 2015-08-03 15:39:18 CEST
#1, @Marja van Waes
I tried several times with several settings in VirtualBox. Result was always the same, so I decided to try with kernel server version where I didn't meet Kernel Panic. Additionally I was trying with VirtualBox package from Mageia 5.
Hence I suppose it's something wrong in kernel desktop configuration.

#2, @Thierry Vignaud
I was trying with disabled "nested paging". Didn't help.
I was trying with both type of chipsets (PIIX3 and ICH9).
I was trying with enabled and disabled PAE/NX.
I was trying with 1 CPU, 2 CPU and 3 CPU. Only on 1 CPU kernel is starting.
Paravirtualization interface has "Default" value (here this is KVM).

Always result is the same. Kernel Panic.

I'm testing Mageia 6 on configuration where host and guest is Linux. In this particular case it was:
  Host: Mageia 5 32bit (virtualbox installed from package provided by Oracle)
        I'm using AMD Phenom(tm) II X4 955 Processor (4 cores).
        with kernel: 3.19.8-server-3.mga5
  Guest Mageia 6 (Cauldron) 32 bit (updates on day 2015/08/02)

VirtualBox configuration is:
Processors: 3 (from 8 available)
Base Memory is "1251 MB"
Chipset: ICH9
Enable I/O APIC (on)
Enable EFI (off)
Enable PAE/NX (off)
Enable 3D acceleration (on)
Controller IDE: ICH9
Controller SATA: AHCI (Use Host I/O cache - off)

As I said before, kernel-server-4.1.3-1 is working fine with default settings in VirtualBox (nested paging is turned on).
Comment 5 Thierry Vignaud 2015-08-03 18:46:01 CEST
Sorry I think that was paravirtualization that was the issue. I think I'd to set it to "kvm" + disable "nested pages" in order to get rid of those issues
Comment 6 Piotr Mierzwinski 2015-08-03 20:00:28 CEST
I was trying kvm (directly selecting KVM) + disabled "nested pages" and it doesn't work!
Even if I turn off "paravirtualization" then I get Kernel Panic! 
Sorry, your were talking in previous post about Windows. Maybe there it will help. And by the way. I'm using VirtualBox 5.0.0 with Mageia 5 32bit, where Windows 7 is the host and all work fine.

KVM is chose by default by virtual machine in my system, because I don't have installed in my system other Hypervisor (only KVM). Attached screen shot.

I can say also that using older kernel: "kernel-desktop-3.19.0-0.rc.7.3.mga5" (comming from Mageia 5), the system starts up.

How could you explain that Mageia Cauldron is starting with kernel dedicated for 
servers (using 3 cores from my processor, KVM and enabled "nested pages")?

Did kernel-desktop-4.3.1 was tested on (running on Linux) VirtualBox 5.0 with more than 1 CPU (set in VBox)?

From my point of view the issue is in configuration which was using to build kernel desktop.
Comment 7 Piotr Mierzwinski 2015-08-03 20:00:55 CEST
Created attachment 6894 [details]
VirtualBox 5.0 settings
Marja Van Waes 2015-08-03 20:40:09 CEST

CC: tmb => (none)
Assignee: bugsquad => tmb
Whiteboard: NEEDINFO => (none)

Comment 8 Thierry Vignaud 2015-08-04 06:43:43 CEST
You didn't disabled "nested pages"!
Comment 9 Piotr Mierzwinski 2015-08-04 18:00:12 CEST
Thierry please.

Yes. I did it. Trust me. On screen shot I only showed my default configuration of virtual machine where I run Mageia. Through this screen shot I would like to prove you that I have turned on KVM as default. Just look at where I put info about screen shot.
If option "nested pages" helped you in Windows (I don't know what version), so this automatically not means that it will help everywhere.

Did you ever test this kernel in similar configuration?
If I will have some time then I try to do the test on Windows 7 host.
Comment 10 Piotr Mierzwinski 2015-08-04 21:29:49 CEST
Created attachment 6903 [details]
VirtualBox 5.0 settings for Windows host (Intel i5 in host)
Comment 11 Piotr Mierzwinski 2015-08-04 21:57:59 CEST
Update.
As I promised I performed test for Windows 7 as host. Virtual machine had 2 processors. Check screen shot for the other details of configuration referring to virtual machine.
Host is based on Intel i5-3340 processor. VirtualBox in version 5.0.0.
All works fine. Mageia Cauldron with kernel-desktop-4.1.3 is running.

I was repeating last test on machine with AMD Phenom II processor where "nested paging" is disabled and set 3 processors. Result the same - Kernel Panic.
I was also testing with Paravirtualization interface set as "legacy" and disabled "nested paging" (check screen shot). No change - Kernel Panic.

Please notice, that on machine with AMD Phenom II processor where on virtual machine is available only 1 processor - Mageia Cauldron with kernel-desktop-4.1.3 kernel is starting.
And I remind that for kernel-server-4.1.3 all work fine (with KVM and enabled "nested paging").

I'm confused and I don't know what is going on here. :-(
Comment 12 Piotr Mierzwinski 2015-08-04 21:59:04 CEST
Created attachment 6904 [details]
VirtualBox 5.0 settings for Linux host (Amd Phenom in host, no nested paging)
Comment 13 Piotr Mierzwinski 2015-08-09 21:12:28 CEST
On version 4.1.4-desktop I meet the same situation - Kernel panic (attached screen shot). Version for servers works fine.
Comment 14 Piotr Mierzwinski 2015-08-09 21:13:27 CEST
Created attachment 6919 [details]
Kernel panic screen shot (4.1.4-desktop)
Comment 15 Thomas Backlund 2015-09-18 15:16:12 CEST
is 4.1.7 working any better ?
Comment 16 Piotr Mierzwinski 2015-09-18 23:35:08 CEST
Unfortunately no change :(. Server is working "desktop" not working.
Please note that this is working on real machine (I've tested on Ivy Bridge).
I've installed all updates till today (18/09/2015 23:30)
Comment 17 Thomas Backlund 2015-09-19 12:35:06 CEST
If you havent done it yet... can you update virtualbox to 5.0.4 too
Comment 18 Arne Spiegelhauer 2015-09-19 13:10:05 CEST
Issue bears some similarities to this Manjaro issue:
https://github.com/manjaro/packages-core/issues/14
which is traced back to an upstream regression.

CC: (none) => gm2.asp

Comment 19 Piotr Mierzwinski 2015-09-19 17:38:36 CEST
(In reply to Thomas Backlund from comment #17)
> If you havent done it yet... can you update virtualbox to 5.0.4 too

No change - server is working and "desktop" is not working.

I've updated virtualbox to: VirtualBox-5.0.4-102546 (using self executable file - "Linux_x86.run") and immediately updated extension pack to Oracle_VM_VirtualBox_Extension_Pack-5.0.4-102546.vbox-extpack

Virtualbox is running on Mageia 5 32bit with latest updates (kernel-3.19.8-server-3.mga5).
Comment 20 Thomas Backlund 2015-09-19 21:45:23 CEST
(In reply to Arne Spiegelhauer from comment #18)
> Issue bears some similarities to this Manjaro issue:
> https://github.com/manjaro/packages-core/issues/14
> which is traced back to an upstream regression.

Ah, indeed ... now I remember reading about this issue earlier...

I will merge that fix in the next kernel
Comment 21 Thomas Backlund 2015-09-20 17:42:55 CEST
there is now a 4.1.8-1 kernel in cauldron (and mga5 updates testing) that I have added the needed fix in
Comment 22 Piotr Mierzwinski 2015-09-20 23:50:50 CEST
It's working :).

kernel-desktop-4.1.8-1.mga6-1-1.mga6
Tested with 3 processors on virtual machine running on VirtualBox-5.0.4-102546.

Big thanks.

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 23 Thomas Backlund 2015-09-23 16:01:01 CEST
Great :)

And thanks to Arne for upstream regression reference