xhh233 opened a new issue, #22315: URL: https://github.com/apache/nuttx/issues/22315
**Mechanism.** The invalidation write's return value is not checked, so `SET`/delete reports success while the old entry is still valid. **Effect.** A caller believes the value was overwritten or deleted, but the previous entry remains readable — a stale-value read after a reported success. **Location.** `drivers/mtd/mtd_config.c:1236-1240` and `:1491-1496` (master `f284e6d7`). **Trigger.** MTD invalidation write fails (power loss, bad block, controller error) during overwrite or delete. **Expected.** The operation fails and reports the error; no stale value is left readable. **Evidence.** Deterministic MTD fault shim (models the driver logic): injected invalidation-write fault, call returns success, readback still returns the old value. **Patch.** Propagate the invalidation write error to the caller. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
