Page 1 of 1

NVIDIA 334.16 kernel OOPS with latest 3.13.2 grsec patch

PostPosted: Thu Feb 13, 2014 3:30 pm
by x14sg1
Hello,

Using the grsecurity-3.0-3.13.2-201402111747.patch and a patched NVIDIA-Linux-x86-334.16.run, I get a kernel OOPS (with nothing in any log files).

A non-grsecurity 3.13.2 kernel works fine. As does the previous NVIDIA-Linux-x86-331.38.run with and without grsecurity

The vmlinuz, config and System.map files, along with the nvidia patch I am using are here:

https://home.comcast.net/~x14sg1/System ... -grsec-smp
https://home.comcast.net/~x14sg1/config ... -grsec-smp
https://home.comcast.net/~x14sg1/vmlinu ... -grsec-smp
https://home.comcast.net/~x14sg1/nv.patch

The nvidia patch is a combination of paxguy's patch(es), me making them work for kernels
with and without grsecurity and patches to get it to compile and work with linux kernels 3.13 and 3.14.

I hope paxguy1 releases a new patch soon.

Command line I used to compile the nvidia module is:

./NVIDIA-Linux-x86-334.16-custom.run --silent --no-network --force-tls=new --no-kernel-module-source --no-backup --no-nvidia-modprobe

Re: NVIDIA 334.16 kernel OOPS with latest 3.13.2 grsec patch

PostPosted: Thu Feb 13, 2014 7:28 pm
by PaX Team
if it's an oops then you surely see something somewhere ;). even if the machine freezes you can still try to take a picture of it (in a framebuffer console for more info). or you could try setting up a serial or net console to capture it.

Re: NVIDIA 334.16 kernel OOPS with latest 3.13.2 grsec patch

PostPosted: Thu Feb 13, 2014 8:29 pm
by x14sg1
Sorry about that.

I should have said after I run xinit, I see a black screen with a non-blinking '-' in the upper left corner and the machine is locked up solid

Still investigating getting more output

Re: NVIDIA 334.16 kernel OOPS with latest 3.13.2 grsec patch

PostPosted: Thu Feb 13, 2014 11:15 pm
by x14sg1
Ok, figured out how to get netconsole working


Hello,

I retested with the new patch, grsecurity-3.0-3.13.3-201402132113.patch

Here are the files (GPF is the netconsole crash output from syslog - I did not reformat it)

https://home.comcast.net/~x14sg1/GPF
https://home.comcast.net/~x14sg1/System ... -grsec-smp
https://home.comcast.net/~x14sg1/config ... -grsec-smp
https://home.comcast.net/~x14sg1/nv.patch
https://home.comcast.net/~x14sg1/vmlinu ... -grsec-smp

Re: NVIDIA 334.16 kernel OOPS with latest 3.13.2 grsec patch

PostPosted: Thu Feb 13, 2014 11:40 pm
by PaX Team
thanks, this is a UDEREF a violation, the nvidia code tried to access a userland address (in eax) directly without going through the usual userland accessors, so this is likely a security bug as well. for now disabling UDEREF would get this to work but i wouldn't put much faith into this new code... and feel free to report this to them ;).

Re: NVIDIA 334.16 kernel OOPS with latest 3.13.2 grsec patch

PostPosted: Thu Feb 13, 2014 11:42 pm
by x14sg1
Thank you for the quick reply

Re: NVIDIA 334.16 kernel OOPS with latest 3.13.2 grsec patch

PostPosted: Sun Feb 16, 2014 2:02 am
by x14sg1
Bug report has been filed

Re: NVIDIA 334.16 kernel OOPS with latest 3.13.2 grsec patch

PostPosted: Sun Mar 02, 2014 5:14 pm
by x14sg1
NVIDIA bug is 1464774

Anyone know how to track it or if it is even possible to track?

Re: NVIDIA 334.16 kernel OOPS with latest 3.13.2 grsec patch

PostPosted: Mon Mar 03, 2014 2:18 pm
by PaX Team
according to the changelog this bug has been fixed in 334.21.

Re: NVIDIA 334.16 kernel OOPS with latest 3.13.2 grsec patch

PostPosted: Mon Mar 03, 2014 10:26 pm
by x14sg1
You beat me to reporting this ... 334.21 fixed the problem

Thanks