Skip to content

meta: next batch of prioritized bug fixes, driver hardening, and features (30 items) #5492

Backlog

Description

@zackees

Prioritized 30-item tracking list synthesized from an audit of master (bc3caab1dd), open PRs, remaining channel drivers, open sanitized issues, and CI/lint health.

Ordered strictly Bug Fixes first (1–20), then Features / Performance / Infrastructure / Tech Debt (21–30).


Part 1 — Bug Fixes (1–20)

Immediate / In-Flight Bug Fixes

Remaining Channel Driver DMA / Frame-Ownership / OOM Bugs (Same Class as #5453–#5488)

  • 7. [BUG][P0] Fix ESP32 PARLIO show-timeout clobbering, mid-frame READY, and unchecked resize() OOB
    • src/platforms/esp/32/drivers/parlio/channel_driver_parlio.cpp.hpp: show() ignores waitForReady() failure (L126-L137) and clobbers active mTransmittingChannels/mScratchBuffer; poll() returns READY mid-frame for ≥3 timing groups (L268-L282); ChannelDriverPARLIO::enqueue()/show() clobbers active state on busy re-entry (L471-L506, L610) and leaks SPI isInUse on ERROR (L518-L534); unchecked resize() before memcpy/memset (L423, L660).
  • 8. [BUG][P0] Fix ESP32-S3 LCD_CAM I2S (ChannelEngineI2S) show timeout, unbounded waits, and OOM OOB
    • src/platforms/esp/32/drivers/i2s/channel_driver_i2s.cpp.hpp: show() ignores waitForReady() failure (L126-L149); unbounded spin loops (L83-L85, L340-L343, L466-L469); multi-group frames leave groups 1..N with isInUse() == false (L148-L155, L457-L459); poll() can return READY without clearing mTransmittingChannels (L198); unchecked resize() OOB (L494-L504).
  • 9. [BUG][P0] Fix ESP32 UART (ChannelEngineUART) missing setInUse(), unguarded show(), and mid-frame READY
    • src/platforms/esp/32/drivers/uart/channel_driver_uart.cpp.hpp: never calls setInUse(true/false) anywhere; show() never waits for active UART DMA (L85-L171) and can deinitialize() mid-transfer (L280); poll() returns READY mid-frame for ≥3 channels (L189-L196); unbounded destructor loop (L43-L45); unchecked resize() OOB (L343-L346).
  • 10. [BUG][P0] Fix Teensy 4.x FlexIO & LPUART force-clear on timeout, empty-show corruption, and silent truncation
    • src/platforms/arm/teensy/teensy4_common/drivers/flexio/channel_engine_flexio.cpp.hpp:107-131 & src/platforms/arm/teensy/teensy4_common/drivers/lpuart/channel_engine_lpuart.cpp.hpp:76-88,132-157: both force-clear isInUse and mTransmittingChannels on 100 ms timeout before checking mEnqueuedChannels.empty(), leak isInUse when !mPeripheral, have unbounded #else spin loops, and LPUART silently truncates frames when dst_size < encoded_bytes.
  • 11. [BUG][P0] Fix RP2040/RP2350 PIO, SPI & UART destructor DMA use-after-free and orphaned pending frames
    • src/platforms/arm/rp/rpcommon/channel_engine_rp_pio.cpp.hpp:40-50,74,236-262,307,340-354, channel_engine_rp_spi.cpp.hpp:20-26,64,106-109, channel_engine_rp_uart.cpp.hpp:19-25,115,192-195: all 3 destructors call releaseInFlight() before peripheral->abort() (exact fix(i2s): stop DMA before freeing clockless frame #5484 UAF class); show() while active orphans mPendingChannels; RP PIO has unchecked words.resize() OOB and unchecked SPI/XTRA0 truncation.
  • 12. [BUG][P0] Fix SpiChannelEngineAdapter busy overwrite, streaming DRAINING livelock, and destructor spin
    • src/fl/channels/adapters/spi_channel_adapter.cpp.hpp: non-streaming show() overwrites mTransmittingChannels without checking poll()/waitForReady() (L237-L250); streaming mode livelocks returning DRAINING forever when show() arrives mid-frame (L238-L241, L309-L311, L353-L356); channels 1..N lack setInUse(true) (L249-L256, L334-L351, L442); unbounded destructor loop (L79-L82).
  • 13. [BUG][P1] Fix Channel::applyAddressing() XYMap OOM OOB write and width == 0 division by zero
    • src/fl/channels/channel.cpp.hpp:85-93: buffer.resize(numLeds) is unchecked before buffer[physicalIdx] writes, and physicalIdx % width / / width divides by zero if width == 0.
  • 14. [BUG][P1] Fix Teensy 4.x FlexibleInlineBlockClocklessController missing isInUse() check and OOM partial frames
  • 15. [BUG][P1] Fix ESP32 RMT4 mPendingChannels missing setInUse(true) and unconditional setInUse(false)
    • src/platforms/esp/32/drivers/rmt/rmt_4/channel_driver_rmt4.cpp.hpp:272-275,521,617-645: pending channels sit unprotected until startTransmission(), and clearPendingChannels() / push failures clear isInUse without verifying the same ChannelDataPtr is not active in mChannels.
  • 16. [BUG][P1] Fix LPC845 UART DMA & SCT DMA missing destructor DMA abort and setInUse / orphan gaps
    • src/platforms/arm/lpc/drivers/uart_dma/channel_engine_lpc_uart_dma.cpp.hpp:148-179,227 & src/platforms/arm/lpc/drivers/sct_dma/channel_engine_lpc_sct_dma.cpp.hpp:47: defaulted destructors never abort DMA before destroying encoded buffers; UART DMA orphans mEnqueuedChannels while active and leaves channels 1..N unprotected.
  • 17. [BUG][P1] Fix remaining ESP32/ESP8266/nRF52 destructor teardown, OOM, and spin-loop bugs
    • src/platforms/esp/32/drivers/lcd_cam/channel_driver_lcd_rgb.cpp.hpp:59-74,174,212-224,305-307,334-344 (free-before-deinit, unbounded dtor loop, unchecked resize() OOB); src/platforms/esp/32/drivers/spi/channel_driver_spi.cpp.hpp:173-206 (frees stagingA/stagingB before polling in-flight transactions); src/platforms/esp/32/drivers/lcd_spi/channel_driver_lcd_spi.cpp.hpp:64-76 & src/platforms/esp/32/drivers/i2s_spi/channel_driver_i2s_spi.cpp.hpp:50-57 (free DMA buffers on timeout without deinitialize()); src/platforms/esp/8266/i2s_channel_driver.cpp.hpp:100-116 (unchecked resize() truncation + unbounded waits); src/platforms/arm/nrf52/clockless_arm_nrf52.h:186,275-281 (unbounded spin + 0-length PWM playback).

CI, Security & Configuration Bugs

  • 18. [BUG][P0] Wire Python lint/format & lockdown scripts into CI, fix master ruff drift, and cover check_attiny85.yml
    • Format ci/ci_labels.py and ci/tests/test_ci_labels.py (regressed in ci: use on-demand Dell capacity for board builds #5434); wire bash lint --py, ci/lint/check_size_thresholds.py, ci/lint/blink_lockdown.py, and ci/lint/root_project_ini_lockdown.py into .github/workflows/template_unit_test.yml; include .github/workflows/check_attiny85.yml:38-39 in check_size_thresholds.py + .coderabbit.yaml and update stale docs/SIZE_THRESHOLD_HISTORY.md.
  • 19. [BUG][P0] Gate .github/workflows/claude.yml on the Jev sanitized label and fix .coderabbit.yaml schema error
    • Add a consumer-side sanitized gate in .github/workflows/claude.yml:28-40 (documented open security limit in docs/issue-sanitizer.md:247-269) and remove the invalid enabled: true key under reviews.pre_merge_checks in .coderabbit.yaml:3-4 that emits a validation warning on every PR.
  • 20. [BUG][P1] Fix Linux CI apt-get Microsoft-repo 403 flakes, esp32c5 symbol-analysis timeouts, and project-automation GraphQL 500 retries
    • Strip /etc/apt/sources.list.d/microsoft*.list across the 7 Linux workflows calling bare sudo apt-get update (broke nightly examples linux 3 consecutive nights); fix ci/symbol_analysis_runner.py hitting the 5-min step timeout despite --skip-on-failure (failing esp32c5); add retry/backoff in ci/github_project_sync.py on transient GraphQL 500s and remove the obsolete sync-always-fails note in agents/docs/workflow.md:97.

Part 2 — Features, Performance & Infrastructure (21–30)

Activity

  1. added
    type: bug
    area: core
    area: drivers
    area: ci
    on Dec 3, 2026
  2. zackees commented on Dec 3, 2026

    @zackees
    MemberAuthor

    Batch Completion Summary (30 PRs Merged to master)

    All Part 1 Bug Fixes (Items 1–20) and 7 of 10 Part 2 items (21, 22, 24, 25, 27, 29, 30) have landed on master through the merge queue, with phase 1 / triage completed on the remaining 3 items (23, 26, 28):

    Part 1 — Bug Fixes (1–20: 100% Merged)

    Part 2 — Features, Performance, Caching & Hygiene (21–30)

    Dell (edell / forge-ci) Runner Canary

    • FastLED native CI Dell pool routing merged in ci: speed up native CI, add Dell pool routing, gate claude.yml on sanitized, lock attiny85 size #5507 (with automatic fallback to ubuntu-latest when slots_online == 0).
    • Validated 4-slot fastled canary PR opened at forge-ci/gh-runner#614 (policy.py validate, policy.py render, pytest tests/lanes_test.py 7/7 pass). Live rollout via scripts/deploy.sh dell-fsx3mn2 was deferred while the fleet deploy lock remained held externally by an autonomous switch on dell-jw22zc3.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: ciarea: corearea: driverstype: bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions