Re: [PATCH net] ip6mr: Do not call __IP6_INC_STATS() from preemptible context

2019-03-04 Thread David Miller
From: Ido Schimmel Date: Sun, 3 Mar 2019 07:34:57 + > Similar to commit 44f49dd8b5a6 ("ipmr: fix possible race resulting from > improper usage of IP_INC_STATS_BH() in preemptible context."), we cannot > assume preemption is disabled when incrementing the counter and > accessing a per-CPU vari

[PATCH net] ip6mr: Do not call __IP6_INC_STATS() from preemptible context

2019-03-02 Thread Ido Schimmel
Similar to commit 44f49dd8b5a6 ("ipmr: fix possible race resulting from improper usage of IP_INC_STATS_BH() in preemptible context."), we cannot assume preemption is disabled when incrementing the counter and accessing a per-CPU variable. Preemption can be enabled when we add a route in process co