On Fri, 2025-01-31 at 11:28 -0800, Amery Hung wrote: > From: Amery Hung <amery.hung@xxxxxxxxxxxxx> > > Test referenced kptr acquired through struct_ops argument tagged with > "__ref". The success case checks whether 1) a reference to the correct > type is acquired, and 2) the referenced kptr argument can be accessed in > multiple paths as long as it hasn't been released. In the fail cases, > we first confirm that a referenced kptr acquried through a struct_ops > argument is not allowed to be leaked. Then, we make sure this new > referenced kptr acquiring mechanism does not accidentally allow referenced > kptrs to flow into global subprograms through their arguments. > > Signed-off-by: Amery Hung <amery.hung@xxxxxxxxxxxxx> > --- Acked-by: Eduard Zingerman <eddyz87@xxxxxxxxx> [...]