From: Eric Dumazet <eric.duma...@gmail.com> Date: Fri, 27 Jan 2017 08:11:44 -0800
> From: Eric Dumazet <eduma...@google.com> > > 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 <yanmin.zh...@intel.com> > Signed-off-by: Eric Dumazet <eduma...@google.com> Applied and queued up for -stable, thanks Eric.