Re: Ax25 utils and 2.4.8(x) kernels

From: Henk de Groot (kbgkrur.wqcyiuc@ebamcorp.com)
Date: Mon Jan 07 2002 - 00:12:03 EET

  • Next message: richard: "axip & bastille-netfilter"

    Hello Stephen,

    At 19:21 6-1-02 +0000, Stephen Kitchener wrote:
    >amateur side of things I get a kernel lock up, not immediately, sometimes

    <cut>

    >I did try and compile and install 2.4.17 but this fails to load via lilo

    The problem is still in that kernel. We discussed this last week here on linux-hams and linux-kernel. Jeroen Vreeken posted a few patches a while ago. These patches are not the definate solution but will work as bypass. You can apply the patch below until the permanent fix is ready and will get into the official kernel.

    This patch is for 2.4.17 but works on older kernels, where it will report an offset but is still applied correctly. There were a number of patches but this seems the be the only one that can aid as temporary solution and is sufficient.

    I have no idea why you 2.4.17 kernel does not load. The last kernel I installed was 2.4.16 since SuSEs adaptations for 2.4.17 are not available yet. Don't forget to compile and install the modules and make an initrd bootfile with the modules which are needed at boottime in case the kernel needs that (in my case it contains the reiserfs.o module). On SuSE you can do "mk_initrd", don't know how it works on other distributions.

    Kind regards,

    Henk.

    diff -ruN linux/net/core/sock.c linux/net/core/sock.c
    --- linux/net/core/sock.c Fri Dec 28 21:25:37 2001
    +++ linux/net/core/sock.c Fri Dec 28 21:26:35 2001
    @@ -81,6 +81,7 @@
      * Andi Kleen : Fix write_space callback
      * Chris Evans : Security fixes - signedness again
      * Arnaldo C. Melo : cleanups, use skb_queue_purge
    + * Jeroen Vreeken : Add check for sk->dead in sock_def_write_space
      *
      * To Fix:
      *
    @@ -1146,7 +1147,7 @@
            /* Do not wake up a writer until he can make "significant"
             * progress. --DaveM
             */
    - if((atomic_read(&sk->wmem_alloc) << 1) <= sk->sndbuf) {
    + if(!sk->dead && (atomic_read(&sk->wmem_alloc) << 1) <= sk->sndbuf) {
                    if (sk->sleep && waitqueue_active(sk->sleep))
                            wake_up_interruptible(sk->sleep);
     

    -
    To unsubscribe from this list: send the line "unsubscribe linux-hams" in
    the body of a message to terhi.victor@logonet.com
    More majordomo info at http://vger.kernel.org/majordomo-info.html



    This archive was generated by hypermail 2b30 : Mon Jan 07 2002 - 00:17:51 EET