Bug #1895

netstat doesn't show all inet sessions on SMP system

Added by thomas.nikolajsen over 2 years ago. Updated over 2 years ago.

Status:Closed Start date:
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:-

Description

On SMP system using after starting a ssh login
netstat command doesn't always show session:

On system A (192.168.1.253/24) having one ssh login to system B (192.168.1.238/
24),
it isn't shown by `netstat -f inet'; system B (UP) will show session.
With two ssh sessions to B, the last is shown by netstat on A (both on B).

ssh session to system C (192.168.1.242/24) is always shown on system A.

(ip-addrs just in case they gives different result)

`netstat -c<CPU> ..' doesn't show missing session either.

`sockstat -4c' gives same result (both use the same sysctl)

This is all using current master.


Related todos

History

Updated by dillon over 2 years ago

:New submission from Thomas Nikolajsen <thomas.nikolajsen@mail.dk>:
:
:On SMP system using after starting a ssh login
:netstat command doesn't always show session:

I tracked it down. There is a bogus generation count test in
the inpcb listing code that does not take into account sockets
which are moved between cpus when they are bound.

-Matt

Updated by thomas.nikolajsen over 2 years ago

Yes, it works now, thanks,

Also available in: Atom PDF