From: Shubham Antil <shubham@octane.security>
To: netdev@vger.kernel.org
Cc: Simon Horman <horms@kernel.org>,
gio@octane.security, David Heidelberg <david@ixit.cz>,
oe-linux-nfc@lists.linux.dev
Subject: [PATCH net v9 0/2] nfc: split firmware download admission fixes
Date: Mon, 30 Nov 2026 13:36:43 +0530 [thread overview]
Message-ID: <20261130080645.60464-1-shubham@octane.security> (raw)
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
next reply other threads:[~2026-11-30 8:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 8:06 Shubham Antil [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261130080645.60464-1-shubham@octane.security \
--to=shubham@octane.security \
--cc=david@ixit.cz \
--cc=gio@octane.security \
--cc=horms@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=oe-linux-nfc@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox