Netdev List
 help / color / mirror / Atom feed
* [PATCH net v9 0/2] nfc: split firmware download admission fixes
@ 2026-11-30  8:06 Shubham Antil
  2026-11-30  8:06 ` [PATCH net v9 1/2] nfc: annotate firmware download state accesses Shubham Antil
  2026-11-30  8:06 ` [PATCH net v9 2/2] nfc: reject overlapping firmware downloads Shubham Antil
  0 siblings, 2 replies; 3+ messages in thread
From: Shubham Antil @ 2026-11-30  8:06 UTC (permalink / raw)
  To: netdev; +Cc: Simon Horman, gio, David Heidelberg, oe-linux-nfc

The v8 series combined several independent NFC fixes.  This standalone
submission contains only the core firmware-download admission fix.

As requested in review, patch 1 adds the READ_ONCE() and WRITE_ONCE()
annotations without changing the state machine.  Patch 2 then rejects an
overlapping firmware request without disturbing the active request.

The issue was found during an AI-assisted source audit using OpenAI Codex,
gpt-5.6-sol.  The overlapping-download condition was reproduced at runtime
by issuing two NFC_CMD_FW_DOWNLOAD requests to a pty-backed controller.
With this series the second request returned -EBUSY without disturbing the
first.  No production incident or pre-fix kernel warning was observed.
Patch development and test planning used the same assistant.

Each mail patch was applied independently to the base below on the Linux
test host.  The affected NFC objects built after every patch with W=1 and
sparse.  A pty-backed controller was used for the overlapping-request
test; no physical NFC controller was available.

Changes since v8:

  - send firmware-download admission as an independent patch set
  - place the one-copy annotations in a preparatory patch
  - record validation and hardware availability in the commits
  - add the requested AI-assistance trailer

Shubham Antil (2):
  nfc: annotate firmware download state accesses
  nfc: reject overlapping firmware downloads

 drivers/nfc/nfcmrvl/main.c |  2 +-
 drivers/nfc/nfcmrvl/uart.c |  4 ++--
 net/nfc/core.c             | 13 +++++++++----
 3 files changed, 12 insertions(+), 7 deletions(-)


base-commit: 30c71476d842b094651bd7712f6c8ee8716147d0
-- 
2.54.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-30  8:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30  8:06 [PATCH net v9 0/2] nfc: split firmware download admission fixes Shubham Antil
2026-11-30  8:06 ` [PATCH net v9 1/2] nfc: annotate firmware download state accesses Shubham Antil
2026-11-30  8:06 ` [PATCH net v9 2/2] nfc: reject overlapping firmware downloads Shubham Antil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox