[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

kernel BUG at fs/namei.c:518! running TUX + grsecurity on 2.6.11.2



Got the attached BUG when starting TUX on my newly upgraded-to-2.6
system. Kernel is:

vanilla 2.6.11.2 +
    grsecurity-2.1.3-2.6.11-200503111604.patch
    tux3-2.6.11-rc2-bk6-A7


The only hand-patching I had to do was in linux/kernel/exit.c , where I did this:

    if (group_dead)
        acct_process(code);

    if (current->tux_info) {
#ifdef CONFIG_TUX_DEBUG
        printk("Possibly unexpected TUX-thread exit(%ld)
            at %p?\n",
            code, __builtin_return_address(0));
#endif
        current->tux_exit();
}

    gr_acl_handle_psacct(tsk, code);
    gr_acl_handle_exit();
    gr_del_task_from_ip_table(tsk);
    exit_mm(tsk);

(This hand-patch was also required when using tux3-2.4.23-A3 with
linux-2.4.29 and tux-3.2.16, but the BUG was not seen with that
combination). Tux's docroot is /var/www/sites/tux, which contains symlinks to 
symlinks to the actual docroot for the various virtually hosted sites on the server.

example:

    /var/www/sites/tux/example.com 
        -> /var/www/sites/example.com
        -> /var/www/users/example_user/example.com


The kernel .config is attached. Let me know what (if anything)
else you need; thanks. =)

--n

-- 
<huey> dd of=/dev/fd0 if=/dev/flippy bs=1024
<huey> ^^^ Making Flippy Floppy

Mar 12 14:22:07 radu kernel: TUX: logger thread started.
Mar 12 14:22:07 radu kernel: TUX: thread 0 listens on http://207.44.150.54:80.
Mar 12 14:22:10 radu kernel: ------------[ cut here ]------------
Mar 12 14:22:10 radu kernel: kernel BUG at fs/namei.c:518!
Mar 12 14:22:10 radu kernel: invalid operand: 0000 [#1]
Mar 12 14:22:10 radu kernel: Modules linked in: tux zlib_deflate
Mar 12 14:22:10 radu kernel: CPU:    0
Mar 12 14:22:10 radu kernel: EIP:    0060:[link_path_walk+1816/3056]    Not tainted VLI
Mar 12 14:22:10 radu kernel: EFLAGS: 00010296   (2.6.11.2-gt) 
Mar 12 14:22:10 radu kernel: eax: d779c020   ebx: d7c905c0   ecx: d7764000   edx: 00000001
Mar 12 14:22:10 radu kernel: esi: ffffffd8   edi: d7764f50   ebp: d7764df0   esp: d7764db4
Mar 12 14:22:10 radu kernel: ds: 007b   es: 007b   ss: 0068
Mar 12 14:22:10 radu kernel: Process async IO 0/1 (pid: 30245, threadinfo=d7764000 task=d779c020)
Mar 12 14:22:10 radu kernel: Stack: d7764f50 dae7b000 d7764f50 00000000 d7764f50 d7764000 00000000 00000001 
Mar 12 14:22:10 radu kernel:        00000000 dae7b354 df7e49e0 d7c905c0 725af893 0000000c dae7b348 d7764f4c 
Mar 12 14:22:10 radu kernel:        c016961c e03281f4 dae7b000 e032dd38 dae7b000 dae7b348 d7764f50 d7764f4c 
Mar 12 14:22:10 radu kernel: Call Trace:
Mar 12 14:22:10 radu kernel:  [path_walk+28/32]
Mar 12 14:22:10 radu kernel:  [pg0+536343028/1069896704]
Mar 12 14:22:10 radu kernel:  [pg0+536366392/1069896704]
Mar 12 14:22:10 radu kernel:  [vsnprintf+1067/1132]
Mar 12 14:22:10 radu kernel:  [pg0+536366695/1069896704]
Mar 12 14:22:10 radu kernel:  [sprintf+20/24]
Mar 12 14:22:10 radu kernel:  [pg0+536342414/1069896704]
Mar 12 14:22:10 radu kernel:  [pg0+536346664/1069896704]
Mar 12 14:22:10 radu kernel:  [pg0+536346436/1069896704]
Mar 12 14:22:10 radu kernel:  [default_wake_function+0/28]
Mar 12 14:22:10 radu kernel:  [default_wake_function+0/28]
Mar 12 14:22:10 radu kernel:  [kernel_thread_helper+5/12]
Mar 12 14:22:10 radu kernel: Code: 8b 5d f0 be d8 ff ff ff 83 b8 b8 01 00 00 04 0f 8f 31 02 00 00 83 b8 bc 01 00 00 27 0f 8f 24 02 00 00 8b 7d d4 83 7f 1c 04 76 08 <0f> 0b 06 02 e0 e5 2a c0 e8 63 e8 12 00 8b 55 d4 8b 42 04 50 53 
Mar 12 14:22:15 radu kernel:  ------------[ cut here ]------------
Mar 12 14:22:15 radu kernel: kernel BUG at fs/namei.c:518!
Mar 12 14:22:15 radu kernel: invalid operand: 0000 [#2]
Mar 12 14:22:15 radu kernel: Modules linked in: tux zlib_deflate
Mar 12 14:22:15 radu kernel: CPU:    0
Mar 12 14:22:15 radu kernel: EIP:    0060:[link_path_walk+1816/3056]    Not tainted VLI
Mar 12 14:22:15 radu kernel: EFLAGS: 00010206   (2.6.11.2-gt) 
Mar 12 14:22:15 radu kernel: eax: d779c560   ebx: d7c905c0   ecx: d7d3b000   edx: 00000001
Mar 12 14:22:15 radu kernel: esi: ffffffd8   edi: d7d3bec0   ebp: d7d3bd60   esp: d7d3bd24
Mar 12 14:22:15 radu kernel: ds: 007b   es: 007b   ss: 0068
Mar 12 14:22:15 radu kernel: Process tux (pid: 4484, threadinfo=d7d3b000 task=d779c560)
Mar 12 14:22:15 radu kernel: Stack: d7d3bec0 dbab6000 d7d3bec0 e05cbafe d7d3bec0 d7d3b000 00000000 00000001 
Mar 12 14:22:15 radu kernel:        00000040 dbab6354 df7e49e0 d7c905c0 725af893 0000000c dbab6348 d7d3bebc 
Mar 12 14:22:15 radu kernel:        c016961c e03281f4 dbab6000 e032dd38 dbab6000 dbab6348 d7d3bec0 d7d3bebc 
Mar 12 14:22:15 radu kernel: Call Trace:
Mar 12 14:22:15 radu kernel:  [path_walk+28/32]
Mar 12 14:22:15 radu kernel:  [pg0+536343028/1069896704]
Mar 12 14:22:15 radu kernel:  [pg0+536366392/1069896704]
Mar 12 14:22:15 radu kernel:  [skb_copy_datagram_iovec+64/440]
Mar 12 14:22:15 radu kernel:  [cleanup_rbuf+206/244]
Mar 12 14:22:15 radu kernel:  [release_sock+81/84]
Mar 12 14:22:15 radu kernel:  [tcp_recvmsg+1621/1680]
Mar 12 14:22:15 radu kernel:  [pg0+536344182/1069896704]
Mar 12 14:22:15 radu kernel:  [try_to_wake_up+29/132]
Mar 12 14:22:15 radu kernel:  [pg0+536366695/1069896704]
Mar 12 14:22:15 radu kernel:  [pg0+536339657/1069896704]
Mar 12 14:22:15 radu kernel:  [pg0+536345671/1069896704]
Mar 12 14:22:15 radu kernel:  [pg0+536342414/1069896704]
Mar 12 14:22:15 radu kernel:  [pg0+536345978/1069896704]
Mar 12 14:22:15 radu kernel:  [pg0+536388138/1069896704]
Mar 12 14:22:15 radu kernel:  [pg0+536394972/1069896704]
Mar 12 14:22:15 radu kernel:  [sys_chdir+111/124]
Mar 12 14:22:15 radu kernel:  [sys_tux+37/132]
Mar 12 14:22:15 radu kernel:  [syscall_call+7/11]
Mar 12 14:22:15 radu kernel: Code: 8b 5d f0 be d8 ff ff ff 83 b8 b8 01 00 00 04 0f 8f 31 02 00 00 83 b8 bc 01 00 00 27 0f 8f 24 02 00 00 8b 7d d4 83 7f 1c 04 76 08 <0f> 0b 06 02 e0 e5 2a c0 e8 63 e8 12 00 8b 55 d4 8b 42 04 50 53 
Mar 12 14:22:15 radu kernel:  <5>TUX: thread 0 stopping ...

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]