diff options
| author | Eric Dumazet <[email protected]> | 2014-09-22 17:38:16 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2014-09-22 22:31:18 +0000 |
| commit | a35165ca101695aa2cc5a6300ef69ae60be39a49 (patch) | |
| tree | d9f2aa4a8b447c524c4803d8e087a54d75698d2f /lib/dynamic_debug.c | |
| parent | Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klasse... (diff) | |
| download | kernel-a35165ca101695aa2cc5a6300ef69ae60be39a49.tar.gz kernel-a35165ca101695aa2cc5a6300ef69ae60be39a49.zip | |
ipv4: do not use this_cpu_ptr() in preemptible context
this_cpu_ptr() in preemptible context is generally bad
Sep 22 05:05:55 br kernel: [ 94.608310] BUG: using smp_processor_id()
in
preemptible [00000000] code: ip/2261
Sep 22 05:05:55 br kernel: [ 94.608316] caller is
tunnel_dst_set.isra.28+0x20/0x60 [ip_tunnel]
Sep 22 05:05:55 br kernel: [ 94.608319] CPU: 3 PID: 2261 Comm: ip Not
tainted
3.17.0-rc5 #82
We can simply use raw_cpu_ptr(), as preemption is safe in these
contexts.
Should fix https://bugzilla.kernel.org/show_bug.cgi?id=84991
Signed-off-by: Eric Dumazet <[email protected]>
Reported-by: Joe <[email protected]>
Fixes: 9a4aa9af447f ("ipv4: Use percpu Cache route in IP tunnels")
Acked-by: Tom Herbert <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions
