Re: ax25 kernel problem sometimes accur

From: Kjell Jarl (kebjwg.zguvnapkz@mailit.tunk.net)
Date: Wed Dec 04 2002 - 23:54:55 EET

  • Next message: M Taylor: "Re: ax25 kernel problem sometimes accur"

    Possibly this is the same bug I have had for ages?
    Running 2.4.19 right now.
    Last week end, I had a netrom/ax.25 link gone mad, with about 10 packets
    sent in bursts indefiniteley, the netrom queue was some 32 k. I tried
    axctl -kill but it segfaulted, then reboot which failed (kernel panic).
    Will try this change soon.
    Thanks
    Kjell, sm7gvf

    Tihomir Heidelberg wrote:
    >
    > Hi Sanyi,
    >
    > thanks for reply, I applyed a fix explained in my post to linux-hams
    > and I am waiting to see if this bug will occur again....
    >
    > please, are you interested for testing this also ? it would be also
    > good if ha5ob is interested... it would help me to find if it helps
    > or not, because it is hard to find a host with high traffic that
    > have this problem :)
    >
    > to try it you just need to edit /usr/src/linux/net/ax25/af_ax25.c
    > and in function ax25_free_sock just add this line at the end:
    > sk->protinfo.ax25->sk=NULL;
    > so, the ax25_free_sock function should look:
    > static void ax25_free_sock(struct sock *sk)
    > {
    > ax25_free_cb(sk->protinfo.ax25);
    > sk->protinfo.ax25->sk=NULL;
    > }
    >
    > of course, then you should do make modules;make modules_install
    > if you use ax25 in module or make install if you have it compiled
    > in kernel.
    >
    > this should not do anything harmfull in kernel, I am quite sure :)
    >
    > by my opinion, when kernel destroy an socket, there is still a pointer
    > in ax25 control block that points to that destroyed socket and everytime
    > it access it it crash.
    >
    > so, will see if this will help...
    >
    > 73 de Tihomir, terhi.victor@logonet.com
    > -
    > To unsubscribe from this list: send the line "unsubscribe linux-hams" in
    > the body of a message to aeieoyg.tzjgbyvk@ifb.co.uk
    > More majordomo info at http://vger.kernel.org/majordomo-info.html
    -
    To unsubscribe from this list: send the line "unsubscribe linux-hams" in
    the body of a message to pmnmhhrk@mailit.tunk.net
    More majordomo info at http://vger.kernel.org/majordomo-info.html



    This archive was generated by hypermail 2b30 : Wed Dec 04 2002 - 23:55:37 EET