All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] blk-iocost: fix hweight cache publication and donation fail-safe
@ 2026-10-19 12:54 Kunhai Dai
  2026-10-19 12:54 ` [PATCH v2 1/2] blk-iocost: abort weight transfer on invalid donation weights Kunhai Dai
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Kunhai Dai @ 2026-10-19 12:54 UTC (permalink / raw)
  To: tj
  Cc: axboe, josef, yukuai, cui.tao, cgroups, linux-block, linux-kernel,
	rostedt, mhiramat, mathieu.desnoyers, linux-trace-kernel

This series fixes the blk-iocost hweight cache publication race and adds a
fail-safe for invalid donation weights.

Previous version:
  https://lists.openwall.net/linux-kernel/2026/10/15/1954
Replies:
  https://lists.openwall.net/linux-kernel/2026/10/16/1431
  https://lists.openwall.net/linux-kernel/2026/10/16/2798

Changes since v1:
- split into two patches: the donation fail-safe and the atomic cache;
- add the Fixes tags agreed on the list (e08d02aa5fc9, 7caa47151ab2) and
  Cc stable on the fail-safe;
- drop the donating > 1 guard, which only changed the value printed by the
  warning;
- do not add max(after, 1): the no-race path has not been shown to be
  reachable and the total budget invariant has not been re-validated;
- use GENMASK/FIELD_PREP/FIELD_GET helpers for the packed cache;
- have tracepoints decode the packed cache without refreshing it, and only
  evaluate that read when the tracepoint is enabled;
- explain the activation-time cache update;
- update iocost_monitor.py;
- document the AI-assisted work.

The no-race invalid-weight path is still under investigation: a hand-built
input can trigger the divide at the function level, but runtime
reachability has not been demonstrated.  The first patch is therefore a
fail-safe, not a claim that the path is reachable without a race.

Kunhai Dai (2):
  blk-iocost: abort weight transfer on invalid donation weights
  blk-iocost: publish hweights as one atomic value

 block/blk-iocost.c             | 111 +++++++++++++++++++++++++++------
 include/trace/events/iocost.h  |   7 ++-
 tools/cgroup/iocost_monitor.py |   7 ++-
 3 files changed, 101 insertions(+), 24 deletions(-)

-- 
2.27.0


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

end of thread, other threads:[~2026-10-20  9:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-19 12:54 [PATCH v2 0/2] blk-iocost: fix hweight cache publication and donation fail-safe Kunhai Dai
2026-10-19 12:54 ` [PATCH v2 1/2] blk-iocost: abort weight transfer on invalid donation weights Kunhai Dai
2026-10-19 12:54 ` [PATCH v2 2/2] blk-iocost: publish hweights as one atomic value Kunhai Dai
2026-10-19 23:12 ` [PATCH v2 0/2] blk-iocost: fix hweight cache publication and donation fail-safe Tejun Heo
2026-10-20  9:16 ` Tao Cui

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.