On Tue, 2024-03-19 at 09:09 -0700, Andrii Nakryiko wrote: [...] > > > The struct bpf_trace_run_ctx has two fields: bpf_cookie, is_uprobe > > > (there is also run_ctx but it's size is zero). > > > The is_uprobe field is not set by the code below. > > > Is it necessary to zero-init `run_ctx` variable? > > no, not really, we need to initialize fields that are going to be > used, and is_uprobe *shouldn't be used*, but see below Ok, thank you and Jiri for explaining. Acked-by: Eduard Zingerman <eddyz87@xxxxxxxxx>