AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Low 45 Bitcoin

gossmap: use gossmap_disable_mmap() on corruption.

Public commit record

What the developer wrote

Authored by Rusty Russell

65/100 · Adequate
gossmap: use gossmap_disable_mmap() on corruption.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
The short version

What changed, and why it matters

This change makes Core Lightning's gossip map (the data structure tracking network routing announcements) fall back to non-memory-mapped file access when it detects internal inconsistencies. Previously the code just forced the gossip store file to disk with fsync and then crashed if the map still looked wrong. Now it disables memory mapping first and refreshes the view, only crashing if the mismatch persists. This is a robustness improvement that may avoid unnecessary node failures and could prevent or mask a class of crashes/undefined behavior caused by stale mmap views of the gossip store.

Recommended action

Treat as a hardening/robustness patch. Review whether the underlying mmap inconsistency has a security root cause (e.g., untrusted gossip input causing invalid map state). Monitor for related follow-up commits or disclosures. No immediate emergency action is indicated from this diff alone.

Security signals we found

01

Changes failure handling for a shared memory-mapped data structure

02

Disables mmap on detected corruption/inconsistency rather than forcing fsync and crashing

03

Adds a recovery attempt before terminating the daemon

04

May mitigate denial-of-service from malformed or race-triggered gossip store states

Risk score

Why this scored 45/100

Our methodology →
Potential impact 12/30
Exploitability 8/25
Stealth signal 6/15
Affected reach 10/15
Confidence 6/10
Evidence quality 3/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.