On Tue, Feb 25, 2020 at 5:57 AM Lorenz Bauer <lmb@xxxxxxxxxxxxxx> wrote: > > The sock map code checks that a socket does not have an active upper > layer protocol before inserting it into the map. This requires casting > via inet_csk, which isn't valid for UDP sockets. > > Guard checks for ULP by checking inet_sk(sk)->is_icsk first. > > Signed-off-by: Lorenz Bauer <lmb@xxxxxxxxxxxxxx> Acked-by: Song Liu <songliubraving@xxxxxx>