Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 524002 - sys-kernel/hardened-sources-3.2.62-r1: Crash at boot on Hyper-V guest (ACPI init?)
Summary: sys-kernel/hardened-sources-3.2.62-r1: Crash at boot on Hyper-V guest (ACPI i...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: The Gentoo Linux Hardened Kernel Team (OBSOLETE)
URL: https://forums.grsecurity.net/viewtop...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-29 09:32 UTC by Amadeusz Żołnowski (RETIRED)
Modified: 2014-10-08 20:54 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
boot log, part 1 (2014-09-29-095651_674x410_scrot.png,22.81 KB, image/png)
2014-09-29 09:33 UTC, Amadeusz Żołnowski (RETIRED)
Details
boot log, part 2 (2014-09-29-095704_706x405_scrot.png,27.79 KB, image/png)
2014-09-29 09:34 UTC, Amadeusz Żołnowski (RETIRED)
Details
hv_vmbus.ko (hv_vmbus.ko,48.21 KB, application/x-object)
2014-09-29 18:01 UTC, Amadeusz Żołnowski (RETIRED)
Details
boot log, part 1 (2014-09-29-203001_664x405_scrot.png,22.49 KB, image/png)
2014-09-29 18:35 UTC, Amadeusz Żołnowski (RETIRED)
Details
boot log, part 2 (2014-09-29-203024_663x394_scrot.png,25.76 KB, image/png)
2014-09-29 18:35 UTC, Amadeusz Żołnowski (RETIRED)
Details
boot log, part 3 (2014-09-29-203049_679x405_scrot.png,24.31 KB, image/png)
2014-09-29 18:35 UTC, Amadeusz Żołnowski (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Amadeusz Żołnowski (RETIRED) gentoo-dev 2014-09-29 09:32:43 UTC
It looks it's related to fixed bug #473866, but it still happens. I've tested 3.15 and 3.16 series, too - still not fixed. Kernel with the same config built from gentoo-sources boots perfectly fine. It seems to be similar to the problem discussed in thread pointed by URL.

Reproducible: Always
Comment 1 Amadeusz Żołnowski (RETIRED) gentoo-dev 2014-09-29 09:33:51 UTC
Created attachment 385722 [details]
boot log, part 1
Comment 2 Amadeusz Żołnowski (RETIRED) gentoo-dev 2014-09-29 09:34:14 UTC
Created attachment 385724 [details]
boot log, part 2
Comment 3 Amadeusz Żołnowski (RETIRED) gentoo-dev 2014-09-29 09:35:21 UTC
Sorry for screenshots, but I have no way to attach to console via serial port.
Comment 4 Anthony Basile gentoo-dev 2014-09-29 10:32:03 UTC
Bouncing it off upstream.
Comment 5 PaX Team 2014-09-29 12:40:59 UTC
1. can you enable frame pointers to get a better backtrace?
2. isn't it possible to add a virtual serial port to the guest VM that linux could use a serial console and log there?
3. can you upload your hv_vmbus.ko?
Comment 6 Amadeusz Żołnowski (RETIRED) gentoo-dev 2014-09-29 18:01:09 UTC
Created attachment 385764 [details]
hv_vmbus.ko
Comment 7 Amadeusz Żołnowski (RETIRED) gentoo-dev 2014-09-29 18:35:06 UTC
Created attachment 385766 [details]
boot log, part 1
Comment 8 Amadeusz Żołnowski (RETIRED) gentoo-dev 2014-09-29 18:35:27 UTC
Created attachment 385768 [details]
boot log, part 2
Comment 9 Amadeusz Żołnowski (RETIRED) gentoo-dev 2014-09-29 18:35:49 UTC
Created attachment 385770 [details]
boot log, part 3
Comment 10 Amadeusz Żołnowski (RETIRED) gentoo-dev 2014-09-29 18:44:15 UTC
boot log part 1 hangs for a while before printing call trace. In part 2 there's a first call trace and after some time kernel prints another call trace - part 3.

The problem with VM is that I don't have an access to supervisor to connect to serial port. I've asked admins about that, but I have no answer, yet.
Comment 11 Amadeusz Żołnowski (RETIRED) gentoo-dev 2014-09-29 19:56:32 UTC
(In reply to Amadeusz Żołnowski from comment #10)
> The problem with VM is that I don't have an access to supervisor to connect
> to serial port. I've asked admins about that, but I have no answer, yet.

It's not possible. I don't know if Hyper-V is so poor (very possible) or admins don't have enough will to find out how to connect.
Comment 12 PaX Team 2014-10-01 16:40:30 UTC
what happens if you disable KERNEXEC in the guest config?
Comment 13 Amadeusz Żołnowski (RETIRED) gentoo-dev 2014-10-01 20:08:58 UTC
(In reply to PaX Team from comment #12)
> what happens if you disable KERNEXEC in the guest config?

PAX_KERNEXEC? It is&was disabled. I haven't enabled grsecurity options, yet. I wanted to have booting kernel, first. (-:
Comment 14 PaX Team 2014-10-01 21:05:37 UTC
(In reply to Amadeusz Żołnowski from comment #13)
> PAX_KERNEXEC? It is&was disabled. I haven't enabled grsecurity options, yet.

then it's a different issue than #473866 and right now i don't have an idea, the guest kernel is stuck in the vmcall insn and it's hyper-v that isn't returning from it...
Comment 15 Amadeusz Żołnowski (RETIRED) gentoo-dev 2014-10-02 08:33:49 UTC
(In reply to PaX Team from comment #14)
> (In reply to Amadeusz Żołnowski from comment #13)
> > PAX_KERNEXEC? It is&was disabled. I haven't enabled grsecurity options, yet.
> 
> then it's a different issue than #473866 and right now i don't have an idea,
> the guest kernel is stuck in the vmcall insn and it's hyper-v that isn't
> returning from it...

Yup, but the same config with gentoo-sources (which is mostly vanilla, isn't it?) produces fully functional kernel... Maybe you could point to some small fragments where I can experiment with a patch? Maybe it's something with atomic operations?
Comment 16 PaX Team 2014-10-02 14:53:30 UTC
sorry, i don't know where you could experiment here as the ball's already on hyper-v's court so to speak, the kernel's simply waiting for the vmcall to return. what would help is knowing what hyper-v's doing but i guess that's not trivial to debug. perhaps there're some logs on the host? also, what is the hyper-v version you're using? i've had success reports before for at least windows 2012 r2.
Comment 17 Amadeusz Żołnowski (RETIRED) gentoo-dev 2014-10-02 22:08:50 UTC
(In reply to PaX Team from comment #16)
> perhaps there're some logs on the host?

My VPS provider isn't either willing or able to cooperate, so no chance for that, unfortunately. So… I guess we have to close it as RESO NEEDINFO or something like that. But thanks anyway. :-)

> also, what is the hyper-v version you're using? i've had success reports
> before for at least windows 2012 r2.

It's 2012 R2, too.
Comment 18 Anthony Basile gentoo-dev 2014-10-02 22:34:22 UTC
(In reply to Amadeusz Żołnowski from comment #17)
> (In reply to PaX Team from comment #16)
> > perhaps there're some logs on the host?
> 
> My VPS provider isn't either willing or able to cooperate, so no chance for
> that, unfortunately. So… I guess we have to close it as RESO NEEDINFO or
> something like that. But thanks anyway. :-)
> 
> > also, what is the hyper-v version you're using? i've had success reports
> > before for at least windows 2012 r2.
> 
> It's 2012 R2, too.

I'm sorry about this too.  I just don't have access to this env to help out.  We've been frustrated with virtualization on and off because of these sorts of issues.  We have concentrated on qemu/kvm and virtualbox because at least there we have a chance of testing.
Comment 19 Amadeusz Żołnowski (RETIRED) gentoo-dev 2014-10-03 16:23:31 UTC
(In reply to Anthony Basile from comment #18)
> I'm sorry about this too.  I just don't have access to this env to help out.
> We've been frustrated with virtualization on and off because of these sorts
> of issues.  We have concentrated on qemu/kvm and virtualbox because at least
> there we have a chance of testing.

No problem, that's understandable. :-)