On Thu, 5 Oct 2023 11:46:33 +0200 Marc Kleine-Budde wrote:
Lock jsk->sk to prevent UAF when setsockopt(..., SO_J1939_FILTER, ...) modifies jsk->filters while receiving packets.
Doesn't it potentially introduce sleep in atomic?
j1939_sk_recv_match() spin_lock_bh(&priv->j1939_socks_lock); j1939_sk_recv_match_one() j1939_sk_match_filter() lock_sock() sleep