Thread (4 messages) 4 messages, 3 authors, 2022-10-24

Re: [AX25] patch did not fix -- was: ax25: fix incorrect dev_tracker usage

From: Jakub Kicinski <kuba@kernel.org>
Date: 2022-10-24 22:36:16
Also in: linux-hams

On Mon, 24 Oct 2022 20:00:00 +0200 Thomas Osterried wrote:
 II) What consequences has the tracker counter?

     As far as I can see by kernel messages, the netdev tracker forces the
     kernel to wait
       (on ifdown (i.e. ifconfig ax0 down) 
        or rmmod (i.e. rmmod bpqether or rmmod ax25) )
     until all references to the network device are freed.
     If there's a bug (refcount > 0 or < 0), kernel obviously waits for ever.
Small correction here - the wait is when netdev is unregistered,
which often happens on rmmod, but also when user asks for a sw
netdev to be deleted, or HW device is removed, etc.
III) Is it only to track sessions initiated from userspace?

     I think no.
Correct, the trackers track the references taken on the device.
Doesn't really matter if the reference is somehow tracable to
a user request or not.

Sorry for lack of input on the actual ax25 problem, I had looked
briefly in September and it wasn't obvious how things work :S
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help