From: Eric Dumazet <[email protected]> Date: Fri, 27 Jan 2017 08:11:44 -0800
> From: Eric Dumazet <[email protected]> > > Zhang Yanmin reported crashes [1] and provided a patch adding a > synchronize_rcu() call in can_rx_unregister() > > The main problem seems that the sockets themselves are not RCU > protected. > > If CAN uses RCU for delivery, then sockets should be freed only after > one RCU grace period. > > Recent kernels could use sock_set_flag(sk, SOCK_RCU_FREE), but let's > ease stable backports with the following fix instead. ... > Reported-by: Zhang Yanmin <[email protected]> > Signed-off-by: Eric Dumazet <[email protected]> Applied and queued up for -stable, thanks Eric.
