crash-utility / crash

Linux kernel crash utility
https://crash-utility.github.io
819 stars 271 forks source link

How do I get a list of open network sockets for kernel threads? #175

Open yangliping opened 7 months ago

yangliping commented 7 months ago

I can get the open network sockets for user space process. However, when I use net -s command for kernel space process, I get nothing. I am sure that there are open sockets.

crash> net -s 5663 | head -5
PID: 5663   TASK: ffff92bfe36ce2a0  CPU: 229  COMMAND: "serf"
FD      SOCKET            SOCK       FAMILY:TYPE SOURCE-PORT DESTINATION-PORT
 1 ffff92c009c58780 ffff92c00ab3b300 UNIX:STREAM
 2 ffff92c009c58780 ffff92c00ab3b300 UNIX:STREAM
 3 ffff92bff5748500 ffff92bff08d0000 INET:STREAM  192.168.9.220-7946 0.0.0.0-0

crash> net -s
PID: 35544  TASK: ffff9241d4b83150  CPU: 137  COMMAND: "socknal_cd04"
No open sockets.