kernel BUG

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

kernel BUG

Postby klajosh » Fri Jan 07, 2005 12:35 pm

Hi,
I receive this in syslog: (any idea)

Code: Select all
Jan  7 17:25:17 drow kernel BUG at memory.c:377!
Jan  7 17:25:17 drow invalid operand: 0000
Jan  7 17:25:17 drow CPU:    0
Jan  7 17:25:17 drow EIP:    0010:[<c012e288>]    Not tainted
Jan  7 17:25:17 drow EFLAGS: 00010a06
Jan  7 17:25:17 drow eax: c222eb9c   ebx: de04f3a0   ecx: b9d8c000   edx: c222e000
Jan  7 17:25:17 drow esi: de04f3a0   edi: b9d8c000   ebp: a5876000   esp: cf5d3bc0
Jan  7 17:25:17 drow ds: 0018   es: 0018   ss: 0018
Jan  7 17:25:17 drow Process panasz.cgi (pid: 28610, stackpage=cf5d3000)
Jan  7 17:25:17 drow Stack: cde274a0 de04f3a0 b9d8c000 a5876000 c222e100 c222e100 10242000 00000000
Jan  7 17:25:17 drow 00000000 00000246 cde27620 00000000 5f602000 c013148e de04f3a0 b9d8c000
Jan  7 17:25:17 drow a5876000 de04f3bc cf5d2000 de04f3a0 c3968040 cde270e0 c01470f2 de04f3a0
Jan  7 17:25:17 drow Call Trace:    [<c013148e>] [<c01470f2>] [<c0147298>] [<c0159bc9>] [<c01596a0>]
Jan  7 17:25:17 drow [<c0120d5d>] [<c0147827>] [<c0147c57>] [<c01145b3>] [<c0115873>]
Jan  7 17:25:17 drow
Jan  7 17:25:17 drow Code: 0f 0b 79 01 a1 d1 25 c0 89 cd 89 44 24 28 8b 44 24 30 89 44
Jan  7 17:25:17 drow kernel BUG at mmap.c:1457!
Jan  7 17:25:17 drow invalid operand: 0000
Jan  7 17:25:17 drow CPU:    0
Jan  7 17:25:17 drow EIP:    0010:[<c01314be>]    Not tainted
Jan  7 17:25:17 drow EFLAGS: 00010202
Jan  7 17:25:17 drow eax: de04fc10   ebx: 00000000   ecx: de04f3d0   edx: de04f790
Jan  7 17:25:17 drow esi: de04f3a0   edi: cf5d2000   ebp: 0000000b   esp: cf5d3aa0
Jan  7 17:25:17 drow ds: 0018   es: 0018   ss: 0018
Jan  7 17:25:17 drow Process panasz.cgi (pid: 28610, stackpage=cf5d3000)
Jan  7 17:25:17 drow Stack: de04f3a0 cf5d3b8c cf5d2000 0000000b c02431da c01208aa de04f3a0 de04f3a0
Jan  7 17:25:17 drow c0124a61 de04f3a0 00000000 cf5d3b8c c01160bc a5876000 c0115ea6 0000000b
Jan  7 17:25:17 drow cf5d3b8c 00000000 c0116141 c025760b cf5d3b8c 00000000 cf5d2000 00000000
Jan  7 17:25:17 drow Call Trace:    [<c02431da>] [<c01208aa>] [<c0124a61>] [<c01160bc>] [<c0115ea6>]
Jan  7 17:25:17 drow [<c0116141>] [<c012e288>] [<c0129c7d>] [<c024653d>] [<c0115994>] [<c012e288>]
Jan  7 17:25:17 drow [<c013148e>] [<c01470f2>] [<c0147298>] [<c0159bc9>] [<c01596a0>] [<c0120d5d>]
Jan  7 17:25:17 drow [<c0147827>] [<c0147c57>] [<c01145b3>] [<c0115873>]
Jan  7 17:25:17 drow
Jan  7 17:25:17 drow Code: 0f 0b b1 05 81 d3 25 c0 68 00 03 00 00 6a 00 56 e8 4d cb ff
klajosh
 
Posts: 7
Joined: Tue Aug 31, 2004 8:55 am

Postby spender » Fri Jan 07, 2005 1:25 pm

Run it through ksymoops.

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

Postby klajosh » Mon Jan 10, 2005 8:38 am

Hi,
This is the result:

Code: Select all
drow:~# ksymoops ./trouble.txt
ksymoops 2.4.5 on i686 2.4.28-grsec.  Options used
     -V (default)
     -k /proc/ksyms (default)
     -l /proc/modules (default)
     -o /lib/modules/2.4.28-grsec/ (default)
     -m /boot/System.map-2.4.28-grsec (default)

Warning: You did not tell me where to find symbol information.  I will
assume that the log matches the kernel and modules that are running
right now and I'll use the default options above for symbol resolution.
If the current kernel and/or modules do not match the log, you can get
more accurate output by telling me the kernel version and where to find
map, modules, ksyms etc.  ksymoops -h explains the options.

Jan  7 17:25:17 drow kernel BUG at memory.c:377!
Jan  7 17:25:17 drow kernel BUG at mmap.c:1457!

1 warning issued.  Results may not be reliable.


Probably this problem was caused by a wrong acl. A cgi (written in perl)
wasn't able to run on the server. I gave read,execute access to the required libs and works everything fine.

the acl: (which works)

Code: Select all
subject /var/www/wowowow/cgi-bin/panasz.cgi o {
        /                                               h
        /etc                                            h
        /etc/ld.so.cache                                r
        /lib                                            r
        /lib/ld-2.2.5.so                                x
        /lib/libcrypt-2.2.5.so                          rx
        /lib/libnsl-2.2.5.so                            rx
        /lib/libdb2.so.2.7.7                            rx
        /lib/libresolv-2.2.5.so                         rx
        /lib/libm-2.2.5.so                              rx
        /lib/libdl-2.2.5.so                             rx
        /lib/libc-2.2.5.so                              rx
        /lib/libnss_files-2.2.5.so                      rx
        /usr/lib                                        r
        /usr/lib/libexpat.so.1.0.0                      rx
        /usr/lib/libbz2.so.1.0.2                        rx
        /usr/lib/libz.so.1.1.4                          rx
        /usr/lib/libssl.so.0.9.6                        rx
        /usr/lib/libcrypto.so.0.9.6                     rx
        /usr/lib/libt1.so.1.3.1                         rx
        /usr/lib/libfreetype.so.6.3.0                   rx
        /usr/lib/libpng.so.2.1.0.12                     rx
        /usr/lib/libjpeg.so.62.0.0                      rx
        /usr/lib/libmysqlclient.so.14.0.0               rx
        /usr                                            h
        /usr/bin/perl                                   x
        /usr/share/zoneinfo/Europe/London             r
        /var                                            h
        /var/www/wowowow/cgi-bin/panasz.cgi                 r
        /var/www/wowowow/post/kv                       r
        /var/www/wowowow/post/kv/kv_osszes.htm         rw
        /var/www/wowowow/post/kv/template.txt          r
        -CAP_ALL
        bind    disabled
        connect disabled
}


Andras
klajosh
 
Posts: 7
Joined: Tue Aug 31, 2004 8:55 am


Return to grsecurity support