On Fri, Dec 04, 2026 at 06:19 AM MahnurA <s.ma…@gmail.com> wrote:
> This plugs the hole temporarily. Not sure if this is the right way or > what could be a better way.
Pls wrap your emails to ~80 char per line. imo the list is the least bad way. raw_tp_null_args[], untrusted_lsm_hooks and noreturn_deny are manual lists too.
> The verifier is correctly rejecting the program, but now the error > message is not clear enough I think to highlight that this is an > attachment point issue specifically.
Fair enough. btf_ctx_access() can say why, right after the "has btf_id" line. This goes on top of the diff. I didn't compile it: bpf_log(log, "func '%s' arg%d has btf_id %d type %s '%s'\n", tname, arg, info->btf_id, btf_type_str(t), __btf_name_by_offset(btf, t->name_off)); + if (bpf_prog_args_freed(prog)) + bpf_log(log, "func '%s' can free arg%d, marking it as untrusted\n", + tname, arg); Then the log has: func 'sk_common_release' arg0 has btf_id 145052 type STRUCT 'sock' func 'sk_common_release' can free arg0, marking it as untrusted