mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v19 00/12] ALSA: virtio: fix capture accounting
@ 2026-11-06 16:18 Joonho Lee
  2026-11-06 16:18 ` [PATCH v19 01/12] ALSA: pcm: mark stop-threshold accesses for capture policy sampling Joonho Lee
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: Joonho Lee @ 2026-11-06 16:18 UTC (permalink / raw)
  To: linux-sound
  Cc: tiwai, perex, anton.yakovlev, mst, virtualization, linux-kernel,
	corbet, skhan, rdunlap, linux-doc

Hi Takashi,

This cumulative resend keeps the twelve-patch series on the same base,
a4311e9447bbb219044db38897f95be112f46a8a. It covers PCM stop-threshold
sampling, locked partial-progress reporting, the optional reset operation,
VirtIO ACK error propagation and recovery, PCM and control DMA ownership,
signal-safe teardown, staged capture lifecycle and work prioritization, and
capture parameter documentation.

Relative to v18, patch 7 validates ordinary indirect capture appl_ptr
accounting before calling the indirect transfer helper. It bounds ACK
consumption by completed, unread capture bytes and rejects positive
advances before RX ring seeding. Active over-budget advances follow the
existing XRUN path; invalid PAUSED advances roll back without ending
PAUSED.

Validation:

- Cumulative ARM64 stages 04–12 passed W=1 builds with KASAN, lockdep,
  and OSS PCM enabled. Stage 04 built Image and modules; stages 05–12
  rebuilt modules incrementally.
- A bounded candidate-only raw SYNC_PTR audit rejected unseeded PREPARED
  and over-budget RUNNING advances before indirect accounting. The PCM
  pointer rolled back, and prepare/start/read recovery passed. Valid
  partial ACKs also passed. No vulnerable baseline sequence was rerun.
- Candidate state runs passed valid subperiod ACKs, PAUSED rollback and
  resume, DRAINING tail consumption and over-budget rollback, and raw ACK
  before and after PAUSED RESET.
- A slow-reader QEMU run kept the unread capture slot unchanged while
  appl_ptr was held, then recycled it once after one period was consumed.
- Four final-byte no-hook QEMU runs covered ordinary and staged capture
  through RW and MMAP, including reset and reopen. The 14-sample oracle
  passed across ring wrap with no KASAN or lockdep diagnostics.
- v18 MMIO rollback, timeout-width, and PCI remove/reprobe checks are
  inherited for the unchanged transport and control-message paths.

The bounded ownership trace did not reproduce an in-flight duplicate
virtqueue add or message-length overflow; neither is claimed as reproduced.
Numeric ALSA runtime->boundary wrap, physical Virtualization.framework
devices, and KCSAN were not tested.

Previous version:
https://lore.kernel.org/r/20261106000644.20460-1-mynameisjune111@gmail.com/

AI assistance was used for analysis, implementation, and test preparation.
Assisted-by: LLM

Thanks,
Joonho

base-commit: a4311e9447bbb219044db38897f95be112f46a8a

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

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

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-06 16:18 [PATCH v19 00/12] ALSA: virtio: fix capture accounting Joonho Lee
2026-11-06 16:18 ` [PATCH v19 01/12] ALSA: pcm: mark stop-threshold accesses for capture policy sampling Joonho Lee
2026-11-06 16:18 ` [PATCH v19 02/12] ALSA: pcm: report partial progress under the stream lock Joonho Lee
2026-11-06 16:18 ` [PATCH v19 03/12] ALSA: pcm: add an optional reset operation " Joonho Lee
2026-11-06 16:18 ` [PATCH v19 04/12] ALSA: virtio: Propagate PCM send failures through ACK Joonho Lee
2026-11-06 16:18 ` [PATCH v19 05/12] ALSA: virtio: Recover PCM state after a failed start Joonho Lee
2026-11-06 16:18 ` [PATCH v19 06/12] ALSA: virtio: Retain queued messages through device reset Joonho Lee
2026-11-06 16:18 ` [PATCH v19 07/12] ALSA: virtio: validate indirect capture appl_ptr accounting Joonho Lee
2026-11-06 16:18 ` [PATCH v19 08/12] ALSA: virtio: Keep control payloads alive through DMA completion Joonho Lee
2026-11-06 16:18 ` [PATCH v19 09/12] ALSA: virtio: wait through signals for PCM teardown Joonho Lee
2026-11-06 16:18 ` [PATCH v19 10/12] ALSA: virtio: serialize staged capture lifecycle and defer paused XRUNs Joonho Lee
2026-11-06 16:18 ` [PATCH v19 11/12] ALSA: virtio: prioritize staged capture period work Joonho Lee
2026-11-06 16:18 ` [PATCH v19 12/12] docs: describe virtio-sound capture options Joonho Lee

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

all inboxes | Powered by JetHome®