Skip to content

Upstream pr/opens gadget procfs - #84

Closed
entlein wants to merge 15 commits into
mainfrom
upstream-pr/opens-gadget-procfs
Closed

Upstream pr/opens gadget procfs#84
entlein wants to merge 15 commits into
mainfrom
upstream-pr/opens-gadget-procfs

Conversation

@entlein

@entlein entlein commented Aug 15, 2026

Copy link
Copy Markdown

Overview

entlein and others added 9 commits August 17, 2026 11:20
Signed-off-by: entlein <einentlein@gmail.com>
The 5-byte proc/ prepend decremented buf_off unguarded; a dentry chain longer
than the half-buffer could wrap the offset and corrupt the emitted path
(masked writes keep it memory-safe). Unreachable for PATH_MAX-bounded paths -
defense in depth. On insufficient space the prepend is skipped.

Signed-off-by: entlein <einentlein@gmail.com>
…metic

Proves the u32 wrap below buf_off=5 and pins the shipped header (guard
present, buffer constants unchanged) so the analysis breaks loudly on drift.

Signed-off-by: entlein <einentlein@gmail.com>
…kload

recorded_profile_absolute_paths gains the scrambled-path check (a resolved
path never begins with a numeric segment) and a second learned workload,
bitnami/redis: its container init opens procfs through detached
fsopen/fsmount handles on runc >= 1.2, the natural reproducer for
prefix-stripped /proc paths that plain nginx never exercises. A positive
control requires at least one /proc/-rooted open in the bitnami profile so a
silently event-less gadget cannot pass the negative checks vacuously.

Signed-off-by: entlein <einentlein@gmail.com>
…ro-demo redis manifest

Replace the hand-written fixture with the verbatim helm render of the redis
distro deployment (bitnamicharts/redis 27.0.18, digest-pinned image - the
tag was removed from the registries, which is what timed the previous leg
out). The test applies every rendered document and waits on the statefulset
pod and the learned profile completion directly.

Signed-off-by: entlein <einentlein@gmail.com>
the patch didnt delete, just add

Signed-off-by: entlein <einentlein@gmail.com>
add null guard that got lost in the conflict resolv

Signed-off-by: entlein <einentlein@gmail.com>
Signed-off-by: entlein <einentlein@gmail.com>
Signed-off-by: entlein <einentlein@gmail.com>
@entlein
entlein force-pushed the upstream-pr/opens-gadget-procfs branch from 95ef8c9 to 7e7fa12 Compare August 17, 2026 09:20
@entlein
entlein changed the base branch from mirrormain to main August 18, 2026 08:37
entlein and others added 4 commits August 18, 2026 11:56
@entlein

entlein commented Aug 18, 2026

Copy link
Copy Markdown
Author

has been merged upstream

@entlein entlein closed this Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant