On Tue, 2025-07-22 at 16:33 +0200, Paul Chaignon wrote: > This patch adds selftests to cover invalid narrower loads on the > context. These used to cause kernel warnings before the previous patch. > To trigger the warning, the load had to be aligned, to read an affected > context field (ex., skb->sk), and not starting at the beginning of the > field. > > The nine new cases all fail without the previous patch. > > Suggested-by: Eduard Zingerman <eddyz87@xxxxxxxxx> > Signed-off-by: Paul Chaignon <paul.chaignon@xxxxxxxxx> > --- > Changes in v2: > - Cover all affected fields, via a macro, as suggested by Eduard. Acked-by: Eduard Zingerman <eddyz87@xxxxxxxxx> [...]