Freezes with 4.2.3.201510161817 and 4.2.3.201510171833 !

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

Freezes with 4.2.3.201510161817 and 4.2.3.201510171833 !

Postby nail » Mon Oct 19, 2015 3:45 am

System: Archlinux 64-bit.
DE: XFCE4.12
DM: LightDM
Kernel log at boot with linux-grsec 4.2.3.201510171833:
http://pastebin.com/YtEVKi2M

After that me downgraded to previous version 4.2.3.201510130858. That's working. Kernel log:
http://pastebin.com/46weFK8p

Threads about similar bugs with freezes:
https://bbs.archlinux.org/viewtopic.php?id=203973
http://www.wilderssecurity.com/threads/ ... ng.380789/
nail
 
Posts: 15
Joined: Mon Oct 19, 2015 2:57 am

Re: Freezes with 4.2.3.201510161817 and 4.2.3.201510171833 !

Postby ephox » Mon Oct 19, 2015 4:36 pm

ephox
 
Posts: 134
Joined: Tue Mar 20, 2012 4:36 pm

Re: Freezes with 4.2.3.201510161817 and 4.2.3.201510171833 !

Postby nail » Mon Oct 19, 2015 5:07 pm

nail
 
Posts: 15
Joined: Mon Oct 19, 2015 2:57 am

Re: Freezes with 4.2.3.201510161817 and 4.2.3.201510171833 !

Postby nail » Mon Oct 19, 2015 5:29 pm

Another shot with size overflow...
http://i.imgur.com/FpG4ybS.jpg
nail
 
Posts: 15
Joined: Mon Oct 19, 2015 2:57 am

Re: Freezes with 4.2.3.201510161817 and 4.2.3.201510171833 !

Postby ephox » Mon Oct 19, 2015 6:08 pm

Hi,
Could you please apply this patch and send me the result from dmesg?
Code: Select all
--- net/core/skbuff.c.orig      2015-10-20 00:32:27.592091107 +0200
+++ net/core/skbuff.c   2015-10-20 00:34:03.536086830 +0200
@@ -970,6 +970,7 @@
                skb->csum_start += off;
        /* {transport,network,mac}_header and tail are relative to skb->head */
        skb->transport_header += off;
+       printk(KERN_ERR "PAX overflow skb->network_header: %hx off: %x\n", skb->network_header, off);
        skb->network_header   += off;
        if (skb_mac_header_was_set(skb))
                skb->mac_header += off;
ephox
 
Posts: 134
Joined: Tue Mar 20, 2012 4:36 pm

Re: Freezes with 4.2.3.201510161817 and 4.2.3.201510171833 !

Postby nail » Tue Oct 20, 2015 7:14 am

Code: Select all
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- net/core/skbuff.c.orig      2015-10-20 00:32:27.592091107 +0200
|+++ net/core/skbuff.c   2015-10-20 00:34:03.536086830 +0200
--------------------------
File to patch:

nail
 
Posts: 15
Joined: Mon Oct 19, 2015 2:57 am

Re: Freezes with 4.2.3.201510161817 and 4.2.3.201510171833 !

Postby spender » Tue Oct 20, 2015 8:11 am

What patch command did you use? You should use -p0 for this one if done inside the root of the kernel source tree.

-Brad
spender
 
Posts: 2185
Joined: Wed Feb 20, 2002 8:00 pm

Re: Freezes with 4.2.3.201510161817 and 4.2.3.201510171833 !

Postby nail » Tue Oct 20, 2015 8:24 am

Do I have to patch the original kernel from kernel.org or is this additional patch to kernel with grsecurity?

Tried to patch additionally after grsecurity main patch:
Code: Select all
patching file net/core/skbuff.c
patch: **** malformed patch at line 8: skb->network_header, off);

==> ERROR: A failure occurred in prepare().
    Aborting..
nail
 
Posts: 15
Joined: Mon Oct 19, 2015 2:57 am

Re: Freezes with 4.2.3.201510161817 and 4.2.3.201510171833 !

Postby nail » Tue Oct 20, 2015 9:09 am

Second try to apply:
Code: Select all
patching file net/core/skbuff.c
Hunk #1 FAILED at 970.
1 out of 1 hunk FAILED -- saving rejects to file net/core/skbuff.c.rej

==> ERROR: A failure occurred in prepare().
    Aborting..
nail
 
Posts: 15
Joined: Mon Oct 19, 2015 2:57 am

Re: Freezes with 4.2.3.201510161817 and 4.2.3.201510171833 !

Postby nail » Tue Oct 20, 2015 3:49 pm

ephox wrote:Hi,
Could you please apply this patch and send me the result from dmesg?
Code: Select all
--- net/core/skbuff.c.orig      2015-10-20 00:32:27.592091107 +0200
+++ net/core/skbuff.c   2015-10-20 00:34:03.536086830 +0200
@@ -970,6 +970,7 @@
                skb->csum_start += off;
        /* {transport,network,mac}_header and tail are relative to skb->head */
        skb->transport_header += off;
+       printk(KERN_ERR "PAX overflow skb->network_header: %hx off: %x\n", skb->network_header, off);
        skb->network_header   += off;
        if (skb_mac_header_was_set(skb))
                skb->mac_header += off;

i had compare "net/core/skbuff.c" file near 970-980 lines with your patch. Me edited your patch. Instead of spaces before each line there are tabs now. And new kernel compilation started succesfully...
Later i will send it...
nail
 
Posts: 15
Joined: Mon Oct 19, 2015 2:57 am

Re: Freezes with 4.2.3.201510161817 and 4.2.3.201510171833 !

Postby nail » Tue Oct 20, 2015 6:10 pm

ephox wrote:Hi,
Could you please apply this patch and send me the result from dmesg?
Code: Select all
--- net/core/skbuff.c.orig      2015-10-20 00:32:27.592091107 +0200
+++ net/core/skbuff.c   2015-10-20 00:34:03.536086830 +0200
@@ -970,6 +970,7 @@
                skb->csum_start += off;
        /* {transport,network,mac}_header and tail are relative to skb->head */
        skb->transport_header += off;
+       printk(KERN_ERR "PAX overflow skb->network_header: %hx off: %x\n", skb->network_header, off);
        skb->network_header   += off;
        if (skb_mac_header_was_set(skb))
                skb->mac_header += off;

2 shots :) :
http://i.imgur.com/R6HqBYY.jpg
http://i.imgur.com/dsJBiq9.jpg
Will be it helpfull?
nail
 
Posts: 15
Joined: Mon Oct 19, 2015 2:57 am

Re: Freezes with 4.2.3.201510161817 and 4.2.3.201510171833 !

Postby ephox » Tue Oct 20, 2015 6:32 pm

It looks like a real bug, could you please report it to the kernel (netdev) mailing list (send them the printed values and the backtrace)?
ephox
 
Posts: 134
Joined: Tue Mar 20, 2012 4:36 pm

Re: Freezes with 4.2.3.201510161817 and 4.2.3.201510171833 !

Postby nail » Tue Oct 20, 2015 6:43 pm

ephox wrote:It looks like a real bug, could you please report it to the kernel (netdev) mailing list (send them the printed values and the backtrace)?

Ok. Thanks. I will send it them...
But there are no freezes when kernel loaded without last grsecurity patches and kernel loaded with grsecurity patch including until 4.2.3.201510130858 versions?
nail
 
Posts: 15
Joined: Mon Oct 19, 2015 2:57 am

Re: Freezes with 4.2.3.201510161817 and 4.2.3.201510171833 !

Postby PaX Team » Tue Oct 20, 2015 7:05 pm

nail wrote:But there are no freezes when kernel loaded without last grsecurity patches and kernel loaded with grsecurity patch including until 4.2.3.201510130858 versions?
that's when spender re-enabled the size overflow plugin for 4.2 that grew some new features since 4.1 such as tracking and instrumenting global variables and structure fields. we did expect this new coverage to find new issues (both true and false positives) but not this amount, so we're trying our best to handle the fallout, please don't be discouraged and keep reporting them ;).
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

Re: Freezes with 4.2.3.201510161817 and 4.2.3.201510171833 !

Postby strcat » Fri Nov 13, 2015 12:50 am

Did this get reported upstream? It doesn't seem like it has been addressed yet.
strcat
 
Posts: 20
Joined: Tue Jun 10, 2014 12:22 pm


Return to grsecurity support