Project

General

Profile

Bug #7898

mdb's ::netstat doesn't print UDP conn_t pointer correctly

Added by Dan McDonald almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
mdb - modular debugger
Start date:
2017-02-20
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:

Description

If you use "::netstat -P udp" on a kernel mdb (kmdb or "mdb -k"), all of the UDP sessions print the same pointer. This is clearly a bug.

The bug, BTW, is that the printed pointer is from the mdb process's address space, not from the actual kernel. The netstat_udp_cb() function is broken, in a way that its counterpart netstat_tcp_cb() is not. Make the UDP one act more like the TCP one.

Also available in: Atom PDF