Linux HAM/Amateur Radio development
 help / color / mirror / Atom feed
* ax25 kernel problem sometimes accur
@ 2002-12-04  7:21 Tihomir Heidelberg
  2002-12-04 11:04 ` Sandor Dibuz
  2002-12-04 19:42 ` Stewart Wilkinson
  0 siblings, 2 replies; 95+ messages in thread
From: Tihomir Heidelberg @ 2002-12-04  7:21 UTC (permalink / raw)
  To: linux-hams

Hi

After few days of running 9a0tcp gateway, ax25 kernel at
9a0tcp get broken. When the problem occur, all connections
are running well, so I think that ax25_list is not broken
because ax25_find_socket and ax25_find_cb functions are doing
good work, but running netstat or cat /proc/net/ax25 will
do "segementation fault". This makes big problems to some
of my applications.

The problem occur on kernels 2.4.18, 2.4.19 and 2.4.20, but
I notice it only on 9a0tcp gateway, even am running it on
several machines. Maybe, because 9a0tcp have few times more
traffic.

I analyzed the kernel ax25 source, and I tried to find what
can make ax25_get_info function crash. I don't know much
about how kernel and sockets exactly work, but want to know
if someone have the same problem, and maybe one of kernel
guru will catch a problem.

But, what I suspect, in af_ax25.c we define a destructor for
our sockets:
         sk->destruct = ax25_free_sock;
I guess that somebody/sometimes call this destructor when
destroying a socket. I think that after that, socket cannot be
considered as valid, but as control block still exists,
shouldn't we set sk in control block to NULL ? ax25_get_info
will still find that control block with sk set to destroyed
socket, isn't it ?
I added to the end of ax25_free_sock function this line:
        sk->protinfo.ax25->sk=NULL;
and I am waiting to see if this will help.
Is there any expert that can tell me whats wrong here.

Many thanks,

73 de Tihomir Heidelberg, 9a4gl@9a0tcp.ampr.org

^ permalink raw reply	[flat|nested] 95+ messages in thread

end of thread, other threads:[~2002-12-31  6:55 UTC | newest]

Thread overview: 95+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-04  7:21 ax25 kernel problem sometimes accur Tihomir Heidelberg
2002-12-04 11:04 ` Sandor Dibuz
2002-12-04 20:20   ` Tihomir Heidelberg
2002-12-04 21:54     ` Kjell Jarl
2002-12-05  1:16     ` M Taylor
2002-12-05 14:43       ` Tihomir Heidelberg
2002-12-04 19:42 ` Stewart Wilkinson
2002-12-07  1:10   ` Ralf Baechle DO1GRB
2002-12-07 19:32     ` Tomi Manninen
2002-12-07 23:39       ` Ralf Baechle DO1GRB
2002-12-10 14:09         ` Tomi Manninen OH2BNS
2002-12-11  1:40           ` Ralf Baechle DO1GRB
2002-12-11 10:29             ` Tomi Manninen OH2BNS
2002-12-11 12:30               ` Ralf Baechle DO1GRB
2002-12-11 13:36                 ` mvw
2002-12-11 15:32                   ` Jeroen Vreeken
2002-12-11 17:56                   ` Curt Mills, WE7U
2002-12-11 21:57                     ` Success! TWO questions remain mvw
2002-12-12 13:16                       ` mvw
2002-12-12 13:28                         ` Hamish Moffatt
2002-12-12 15:25                           ` Margaret Leber
2002-12-12 17:27                             ` Curt Mills, WE7U
2002-12-12 17:36                               ` Kelly Black
2002-12-12 18:21                                 ` And another question Michael Willems
2002-12-12 21:14                                   ` Tomi Manninen
2002-12-19  0:09                                     ` BBS - recommendations? mvw
2002-12-19  3:59                                       ` Michael Melanson
2002-12-12 21:44                               ` Success! TWO questions remain Hamish Moffatt
2002-12-12 17:34                             ` Ken Koster
2002-12-12 20:54                               ` Tomi Manninen
2002-12-12 21:45                               ` Hamish Moffatt
2002-12-13  3:12                                 ` Jack Zielke
2002-12-14 15:35                                   ` listen, permissions mvw
2002-12-14 15:43                                     ` Luc Langehegermann
2002-12-14 15:59                                       ` mvw
2002-12-14 17:48                                         ` Tomi Manninen
2002-12-14 16:07                                     ` Dennis Boone
2002-12-16 18:36                                     ` Curt Mills, WE7U
2002-12-24  5:15                                       ` Simple BBS, again, sorry for asking twice mvw
2002-12-24  6:54                                         ` Wilbert Knol
2002-12-24 21:43                                           ` mvw
2002-12-25  2:11                                         ` Tomi Manninen
2002-12-25  3:55                                           ` mvw
2002-12-25  4:36                                           ` fbb compile mvw
2002-12-25  5:13                                             ` FBB mvw
2002-12-25  9:14                                               ` FBB Cees Tool
2002-12-25 10:23                                               ` FBB Joop Stakenborg
2002-12-25 14:54                                                 ` FBB mvw
2002-12-25 23:08                                                   ` FBB Joop Stakenborg
2002-12-26 19:13                                                     ` FBB... any more help? mvw
2002-12-26 23:21                                                       ` Chuck Gelm
2002-12-27  0:05                                                         ` mvw
2002-12-27  2:50                                                           ` Chuck Gelm
2002-12-25 20:01                                                 ` FBB mvw
2002-12-25 21:31                                                   ` FBB Cees Tool
2002-12-25 22:02                                                     ` FBB mvw
2002-12-25 22:38                                                       ` FBB Cees Tool
2002-12-25 22:05                                                     ` FBB... (follow up) mvw
2002-12-25 22:11                                                       ` Tomi Manninen
2002-12-26  4:12                                                         ` mvw
2002-12-25 22:34                                                     ` FBB Tomi Manninen
2002-12-25 22:45                                                   ` FBB Joop Stakenborg
2002-12-25 21:18                                               ` FBB Tomi Manninen
2002-12-25  5:32                                           ` Simple BBS, again, sorry for asking twice Steve Fraser
2002-12-25  9:30                                             ` Wilbert Knol
2002-12-25 21:59                                               ` Steve Fraser
2002-12-26  0:31                                                 ` Wilbert Knol
2002-12-26  4:10                                                   ` Bob Nielsen
2002-12-26 10:23                                                     ` Wilbert Knol
2002-12-25  8:43                                           ` Kernel compile option? Vivi Kusumo
2002-12-25 20:24                                             ` Tomi Manninen
2002-12-29 19:35                                               ` packet radio indoor Vivi Kusumo
2002-12-29 23:30                                                 ` Wilbert Knol
2002-12-30 21:48                                                   ` packet radio indoor :-( Vivi Kusumo
2002-12-31  6:55                                                     ` Wilbert Knol
2002-12-30  2:39                                                 ` packet radio indoor Chuck Gelm
2002-12-27  7:16                                         ` Simple BBS, again, sorry for asking twice Robin Gilks
2002-12-27 13:50                                           ` mvw
2002-12-27 17:41                                           ` ax25 pakcet problem: any ideas? mvw
2002-12-27 19:14                                             ` Tomi Manninen
2002-12-27 20:00                                               ` mvw
2002-12-27 20:14                                                 ` Tomi Manninen
2002-12-30  3:18                                                   ` tcp.ip over ax25, when sent? mvw
2002-12-30  3:24                                                     ` Hamish Moffatt
2002-12-30  3:32                                                     ` Henrique Miranda
2002-12-30  5:28                                                     ` Wilbert Knol
2002-12-30  6:12                                                     ` Bob Nielsen
2002-12-30  6:45                                                       ` Bob Nielsen
2002-12-30  6:58                                                         ` Tomi Manninen OH2BNS
2002-12-30 23:37                                                           ` Bob Nielsen
2002-12-12 17:40                             ` Success! TWO questions remain Ken Koster
2002-12-12 18:09                               ` Michael Willems
2002-12-12 17:24                           ` Curt Mills, WE7U
2002-12-12 14:09                         ` cyberdoc
2002-12-17 17:37                         ` Thomas Osterried

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox