> Please address the Sashiko High finding regarding repeating stalls under > the fixed 64-entry reorder cap (and the two Medium findings), and answer > the sinfo discovery/testing questions before respinning.
Thanks Willem. The bug was found by an LLM scan. It was also triggered at runtime, not only in theory. In a 2 GB x86 QEMU guest running 6.12.95, the PoC floods one L2TPv3 session with copies of a future Ns, and the expected Ns is never sent. With panic_on_oom=2 the guest panicked: Kernel panic - not syncing: Out of memory: compulsory panic_on_oom is enabled The same setup also works as an unprivileged user inside unshare -Urn. Sashiko is right about the High. If one Ns is lost, the next 64 packets fill the queue and later ones are dropped at the cap. When the head expires, nr jumps to the next held packet, then to a sequence that was already dropped, and the queue stalls again. We reproduced that on v2. In v3, when the queue is full and the head is still waiting for a missing Ns, nr skips to the earliest held packet and the new packet takes one extra slot, so the queue never holds more than 65. The same test then delivers every packet after the gap, with no cap drops. The two Mediums are also fixed in v3. Both enqueue helpers now return false and leave the skb to the caller, so cap and duplicate drops are counted once in rx_seq_discards and once in rx_errors. A drop on a dead session is counted in rx_errors only, on both paths. The timer and the receive path could previously both unlink under the lock and then deliver out of order. v3 adds a reorder_busy flag so only one context drains the queue. v3 also drops an already-queued packet in l2tp_recv_dequeue() if its Ns has already been passed. That drop is counted like an expiry drop. It does not clear reorder_skip, and it does not move nr backwards. The noref dst issue is pre-existing and is not in this series. I will send v3 shortly. The commit message has the discovery and testing details. Ruide