Page MenuHomeFreeBSD

ddb: add optional printing of BBLog entries
ClosedPublic

Authored by tuexen on May 31 2025, 4:19 PM.
Tags
None
Referenced Files
F128073811: D50629.id156783.diff
Sun, Sep 7, 12:28 PM
F128065769: D50629.id.diff
Sun, Sep 7, 10:03 AM
Unknown Object (File)
Sat, Sep 6, 2:20 PM
Unknown Object (File)
Fri, Sep 5, 12:57 PM
Unknown Object (File)
Fri, Sep 5, 2:51 AM
Unknown Object (File)
Tue, Sep 2, 11:17 PM
Unknown Object (File)
Wed, Aug 13, 3:52 PM
Unknown Object (File)
Fri, Aug 8, 10:12 PM
Subscribers

Details

Summary

Add a /b option to show tcpcb and show all tcpcbs to print BBLog entries. Right now this supports the entries generated by the FreeBSD default TCP stack. It should help in debugging issues reported by syzkaller, for example panic: tcp_do_segment: sent too much: NUM>NUM.
The syntax for printing sent and received packets is similar to the one used by packetdrill, since the output of ddb will be used to create packetdrill scripts for debugging.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This looks to do what is advertised in some simple tests. ddb is pretty fragile for me to use on the best of days so I'm happy enough

This revision is now accepted and ready to land.Jun 10 2025, 1:06 PM
This revision was automatically updated to reflect the committed changes.