grsec 2.6.27.10 + VMware Server 2

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

grsec 2.6.27.10 + VMware Server 2

Postby Voltar » Mon Feb 02, 2009 8:51 pm

I seem to have a problem with a grsec 2.6.27.10 kernel and VMware Server 2 on CentOS 5.2. When attempting to start a VM, the server ends up crashing and reboots. This doesn't happen with the stock CentOS kernel(s) or a vanilla kernel.

Here's what I got from /var/log/messages

Code: Select all
Feb  2 18:15:02 pong /usr/lib/vmware/bin/vmware-hostd[1000]: Accepted password for user root from 127.0.0.1
Feb  2 18:15:02 pong kernel: grsec: From xxxx: signal 11 sent to /usr/lib/vmware/webAccess/java/jre1.5.0_15/bin/webAccess[webAccess:1710] uid/euid:0/0 gid/egid:0/0, parent /usr/bin/vmware-watchdog[vmware-watchdog:861] uid/euid:0/0 gid/egid:0/0
Feb  2 18:15:03 pong last message repeated 4 times
Feb  2 18:15:03 pong kernel: grsec: more alerts, logging disabled for 10 seconds
Feb  2 18:15:20 pong kernel: grsec: From 127.0.0.1: signal 11 sent to /usr/lib/vmware/webAccess/java/jre1.5.0_15/bin/webAccess[webAccess:1710] uid/euid:0/0 gid/egid:0/0, parent /usr/bin/vmware-watchdog[vmware-watchdog:861] uid/euid:0/0 gid/egid:0/0
Feb  2 18:15:20 pong last message repeated 3 times
Feb  2 18:15:20 pong kernel: grsec: From 127.0.0.1: signal 11 sent to /usr/lib/vmware/webAccess/java/jre1.5.0_15/bin/webAccess[webAccess:1713] uid/euid:0/0 gid/egid:0/0, parent /usr/bin/vmware-watchdog[vmware-watchdog:861] uid/euid:0/0 gid/egid:0/0
Feb  2 18:15:20 pong kernel: grsec: more alerts, logging disabled for 10 seconds
Feb  2 18:15:34 pong kernel: grsec: From xxxx: signal 11 sent to /usr/lib/vmware/webAccess/java/jre1.5.0_15/bin/webAccess[webAccess:1742] uid/euid:0/0 gid/egid:0/0, parent /usr/bin/vmware-watchdog[vmware-watchdog:861] uid/euid:0/0 gid/egid:0/0
Feb  2 18:15:34 pong kernel: grsec: From xxxx: signal 11 sent to /usr/lib/vmware/webAccess/java/jre1.5.0_15/bin/webAccess[webAccess:1709] uid/euid:0/0 gid/egid:0/0, parent /usr/bin/vmware-watchdog[vmware-watchdog:861] uid/euid:0/0 gid/egid:0/0
Feb  2 18:15:34 pong kernel: grsec: From xxxx: signal 11 sent to /usr/lib/vmware/webAccess/java/jre1.5.0_15/bin/webAccess[webAccess:1742] uid/euid:0/0 gid/egid:0/0, parent /usr/bin/vmware-watchdog[vmware-watchdog:861] uid/euid:0/0 gid/egid:0/0
Feb  2 18:15:34 pong kernel: grsec: From xxxx: signal 11 sent to /usr/lib/vmware/webAccess/java/jre1.5.0_15/bin/webAccess[webAccess:1709] uid/euid:0/0 gid/egid:0/0, parent /usr/bin/vmware-watchdog[vmware-watchdog:861] uid/euid:0/0 gid/egid:0/0
Feb  2 18:15:34 pong kernel: grsec: From xxxx: signal 11 sent to /usr/lib/vmware/webAccess/java/jre1.5.0_15/bin/webAccess[webAccess:1709] uid/euid:0/0 gid/egid:0/0, parent /usr/bin/vmware-watchdog[vmware-watchdog:861] uid/euid:0/0 gid/egid:0/0
Feb  2 18:15:34 pong kernel: grsec: more alerts, logging disabled for 10 seconds
Feb  2 18:15:49 pong kernel: grsec: From xxxx: signal 11 sent to /usr/lib/vmware/webAccess/java/jre1.5.0_15/bin/webAccess[webAccess:1704] uid/euid:0/0 gid/egid:0/0, parent /usr/bin/vmware-watchdog[vmware-watchdog:861] uid/euid:0/0 gid/egid:0/0
Feb  2 18:15:50 pong last message repeated 4 times
Feb  2 18:15:50 pong kernel: grsec: more alerts, logging disabled for 10 seconds
Feb  2 18:16:05 pong kernel: grsec: From xxxx: signal 11 sent to /usr/lib/vmware/webAccess/java/jre1.5.0_15/bin/webAccess[webAccess:1713] uid/euid:0/0 gid/egid:0/0, parent /usr/bin/vmware-watchdog[vmware-watchdog:861] uid/euid:0/0 gid/egid:0/0
Feb  2 18:19:00 pong syslogd 1.4.1: restart.



I compiled with the default 'high' security settings, and other than removing unneeded drivers, that's the extent of the kernel config. Any ideas?
Voltar
 
Posts: 2
Joined: Mon Feb 02, 2009 8:41 pm

Re: grsec 2.6.27.10 + VMware Server 2

Postby PaX Team » Tue Feb 03, 2009 12:54 pm

Voltar wrote:I seem to have a problem with a grsec 2.6.27.10 kernel and VMware Server 2 on CentOS 5.2. When attempting to start a VM, the server ends up crashing and reboots. This doesn't happen with the stock CentOS kernel(s) or a vanilla kernel.
PaX has some changes that are not compatible with vmware and some other kernel modules, i don't know when i'll have the time to look at it.
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

Re: grsec 2.6.27.10 + VMware Server 2

Postby Voltar » Tue Feb 03, 2009 9:28 pm

Thanks for the response. This was my first time using grsec/PaX, and thought it might be something I was doing.
Voltar
 
Posts: 2
Joined: Mon Feb 02, 2009 8:41 pm

Re: grsec 2.6.27.10 + VMware Server 2

Postby Martin » Sat Apr 25, 2009 5:17 pm

There is similar problem with virtualbox. I opened bug http://www.virtualbox.org/ticket/3240, but nobody answered to me.
As workaround I'm currently using grsec 2.6.23 (2.6.23-hardened-r13 from gentoo), which is last kernel where virtualbox and vmware work fine.
Martin
 
Posts: 2
Joined: Sat Apr 25, 2009 5:03 pm

Re: grsec 2.6.27.10 + VMware Server 2

Postby Grach » Sat Apr 25, 2009 8:48 pm

There is similar problem with virtualbox. I opened bug http://www.virtualbox.org/ticket/3240, but nobody answered to me.

The problem exist for ages, and they don't care. But this could help: http://www.virtualbox.org/ticket/941
Btw, I use vmware server 1.x on x86 since 2.6.24, always without KERNEXEC. It works, but the lack of KERNEXEC is a huge drawback, of cource.
Grach
 
Posts: 66
Joined: Thu Feb 05, 2009 11:15 pm

Re: grsec 2.6.27.10 + VMware Server 2

Postby Martin » Thu Apr 30, 2009 5:39 pm

Btw, I use vmware server 1.x on x86 since 2.6.24, always without KERNEXEC. It works, but the lack of KERNEXEC is a huge drawback, of cource.


You are lucky man. Patching kernel higher that 2.6.23 with pax patch and leaving pax completly disabled on amd64 causes host hang when I try run virtual machine in vmware server 1.x or 2.x or virtualbox 2.x. I never tried virtual box 1.x.
Martin
 
Posts: 2
Joined: Sat Apr 25, 2009 5:03 pm

Re: grsec 2.6.27.10 + VMware Server 2

Postby jimjones » Tue Jun 23, 2009 4:19 pm

[quote="Martin"]There is similar problem with virtualbox. I opened bug http://www.virtualbox.org/ticket/3240, but nobody answered to me.
As workaround I'm currently using grsec 2.6.23 (2.6.23-hardened-r13 from gentoo), which is last kernel where virtualbox and vmware work fine.[/quote]

Exact same problem here on my hardened gentoo amd64 machine with VirtualBox-2.2.4 (closed source binary). I can't even be bothered to debug it. I've switched to Qemu, although it has other unrelated problems. I honestly don't see why VirtualBox has any buisness in the kernel or even the root account... a VM should be able to be run 100% usermode, otherwise it basically defeats the purpose of a VM.
jimjones
 
Posts: 2
Joined: Tue Jun 23, 2009 4:13 pm

Re: grsec 2.6.27.10 + VMware Server 2

Postby Grach » Thu Jun 25, 2009 11:02 pm

I've switched to Qemu, although it has other unrelated problems.

Maybe you should try KVM.

I honestly don't see why VirtualBox has any buisness in the kernel or even the root account...

Because it's a virtualizer, not emulator.
Grach
 
Posts: 66
Joined: Thu Feb 05, 2009 11:15 pm

Re: grsec 2.6.27.10 + VMware Server 2

Postby jimjones » Mon Jun 29, 2009 4:41 am

[quote="Grach"]Maybe you should try KVM.[/quote]

I don't have virtualization extensions, I want a VM that runs completely in user mode anyways, so it has little to no chance of breaking my host O/S.
jimjones
 
Posts: 2
Joined: Tue Jun 23, 2009 4:13 pm


Return to grsecurity support

cron