diff options
| author | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-09-28 11:13:47 -0400 |
|---|---|---|
| committer | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-09-28 11:13:47 -0400 |
| commit | 3a6b7ca87129a995f0b3d7ddb0ea7c9893d430c0 (patch) | |
| tree | 2545f6751783aecb322d47e8be0bb100bce4a868 /kernel/ioctl.c | |
| parent | 30f3363286f541198da174cc7508706484dbbee6 (diff) | |
| download | open-iov-3a6b7ca87129a995f0b3d7ddb0ea7c9893d430c0.tar.gz open-iov-3a6b7ca87129a995f0b3d7ddb0ea7c9893d430c0.zip | |
sema: clamp the pin-rewind at ring start - never wrap below zero
The rewind used entries - (N - get) for get < N, which for an empty ring
(get=0, put=0) jumped last_get to entries-8, so the pump read ring slots the
producer had never reached and could execute stale/garbage entries. Replay
only recently consumed slots, clamped at 0.
Diffstat (limited to 'kernel/ioctl.c')
0 files changed, 0 insertions, 0 deletions
