Catch invalid address exception for invalid sock values

This commit is contained in:
Andrew Case
2025-01-31 20:40:51 +00:00
parent 1f983aca73
commit cb3542f76a
@@ -538,8 +538,11 @@ class Sockstat(plugins.PluginInterface):
continue
sock = socket.sk.dereference()
sock_type = sock.get_type()
family = sock.get_family()
try:
sock_type = sock.get_type()
family = sock.get_family()
except exceptions.InvalidAddressException:
continue
sock_handler = SockHandlers(vmlinux, task)
sock_fields = sock_handler.process_sock(sock)