nfc: st95hf: fix SPI receive bounds, DMA safety, and teardown UAF
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | nfc: st95hf: bound SPI receive length in st95hf_spi_recv_response()drivers/ drivers/ drivers/ | +28 | 0 replies | |
| 2/4 | nfc: st95hf: use DMA-safe buffers for SPI transfersdrivers/ drivers/ | +37 | 0 replies | |
| 3/4 | nfc: st95hf: validate async tag response frame lengthsdrivers/ | +19 | 0 replies | |
| 4/4 | nfc: st95hf: fix probe init order and remove teardown UAFdrivers/ | +60 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH net 0/4] nfc: st95hf: fix SPI receive bounds, DMA safety, and teardown UAF
I am trying out new Clang static analysis checks for kernel bug classes, and they flagged this code as possibly buggy. The findings were triaged/fixed and commit descriptions were drafted with help of AI, then checked against linux-next (not runtime-tested on hardware).
Thanks,
Elkin
Elkin Cruz (4):
nfc: st95hf: bound SPI receive length in st95hf_spi_recv_response()
nfc: st95hf: use DMA-safe buffers for SPI transfers
nfc: st95hf: validate async tag response frame lengths
nfc: st95hf: fix probe init order and remove teardown UAF
drivers/nfc/st95hf/core.c | 151 +++++++++++++++++++++----------------- drivers/nfc/st95hf/spi.c | 75 +++++++++++-------- drivers/nfc/st95hf/spi.h | 13 +++- 3 files changed, 140 insertions(+), 99 deletions(-)
Signature · 1 line
2.56.1.839.g22a8290db9-goog