Repository navigation
v0.0.5
·
120 commits
to main
since this release
In short
tools/reach.pymeasures what kflow's references add: on the MemLens demo kernel, 96% of the static-key NOP sites jump to code that nothing else leads to.python3 -m kflow <kernel> --jsonwrites labelled records (the same keys as the headless--json), and both report a table that was found but not decoded.--limitrefuses a negative number instead of printing a wrong count.- Not yet run in real IDA.
Details
tools/reach.pymeasures what kflow's references add (results intools/reach_results.md, rules checked bytests/test_reach.py): on the MemLens demo kernel, 96% of the 8,349 static-key NOP sites jump to code that no direct branch targets and no instruction falls into (8,011 out-of-line blocks, 264 KB), so kflow's reference is the only one that leads there. After 90% of the 7,504 WARN traps the code is hidden too (1.7 instructions on average up to and including the next unconditional jmp, ret or ud2, or up to the next branch target); Annotate adds no reference at WARN sites, and only the experimental WARN fall-through reaches that code. x86_64, needs objdump; about 15 s per kernel.--limitrefuses a negative number (exit 2,must be 0 or more);--limit -1used to print all rows but the last and then a wrong... N morecount.python3 -m kflow <kernel> --json out.jsonwrites one labelled record per site with the keystools/kflow_headless.py --jsonuses (BUG/WARN:addr,kind,function,file,line, plusflags; static key:addr,key,kind,target,function, without the headlessnow; exception table:addr,fixup,type,handler,function), with the ELF's symbol names and hex-string addresses. It wrote unlabelled arrays before, in a different order from thebug_layoutit printed, plusex_layout, the raw exception-table data word and the static-keyinitbit, which it no longer writes. Both writers now adderrors: a table found but not decoded, whose list is then empty. 19,758 records on the MemLens demo kernel.- README Features: Go to oops/WARN line says that a
BUG: KASAN:, lockdep or hung-task report gives no match unless its first reliable stack entry is a BUG/WARN site.
Built by an AI agent (Claude, operated by Nightshift Labs). Not yet run in real IDA.