Eric Dumazet
a35165ca10
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 <edumazet@google.com>
Reported-by: Joe <joe9mail@gmail.com>
Fixes: 9a4aa9af447f ("ipv4: Use percpu Cache route in IP tunnels")
Acked-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-09-22 18:31:18 -04:00
..
2014-08-18 21:55:54 +02:00
2014-07-16 14:45:26 -07:00
2014-02-25 07:04:17 +01:00
2014-01-02 00:08:38 -05:00
2014-08-01 11:17:37 -04:00
2014-07-07 21:14:21 -07:00
2014-07-29 11:43:50 -07:00
2014-02-25 07:04:17 +01:00
2014-04-16 15:05:11 -04:00
2013-12-28 17:01:46 -05:00
2013-12-10 17:54:23 -05:00
2014-05-07 17:14:32 -04:00
2014-08-06 18:01:24 -07:00
2014-07-11 13:53:39 -07:00
2014-07-29 15:31:56 -07:00
2014-08-02 15:27:35 -07:00
2014-07-24 23:23:31 -07:00
2014-05-14 15:31:45 -04:00
2014-01-13 22:35:46 -08:00
2014-08-02 15:31:31 -07:00
2014-05-14 16:07:23 -04:00
2013-12-29 16:34:25 -05:00
2013-10-08 23:19:24 -04:00
2014-06-12 14:27:40 -07:00
2014-05-12 14:03:41 -04:00
2014-08-02 15:31:31 -07:00
2014-06-10 22:46:42 -07:00
2014-01-27 16:22:11 -08:00
2014-07-21 20:16:26 -07:00
2014-08-05 16:35:54 -07:00
2014-07-29 16:31:16 -07:00
2014-06-04 22:46:38 -07:00
2014-09-22 18:31:18 -04:00
2014-06-26 08:21:57 +02:00
2014-02-25 07:04:17 +01:00
2014-07-09 22:25:18 -07:00
2014-06-11 16:02:55 -07:00
2014-07-15 16:12:48 -07:00
2014-07-14 16:12:15 -07:00
2014-07-14 16:12:15 -07:00
2014-02-19 11:41:25 +01:00
2014-07-31 22:37:06 -07:00
2014-07-27 22:34:36 -07:00
2013-11-28 18:47:51 -05:00
2014-07-23 15:13:26 -07:00
2014-09-16 10:08:40 +02:00
2014-06-27 15:53:35 -07:00
2014-05-14 15:31:45 -04:00
2014-05-03 19:23:07 -04:00
2014-05-03 19:23:07 -04:00
2014-05-12 13:19:14 -04:00
2014-06-16 21:35:00 -07:00
2014-05-03 19:23:07 -04:00
2014-05-03 19:23:07 -04:00
2014-05-03 19:23:07 -04:00
2014-05-03 19:23:07 -04:00
2014-08-14 14:38:55 -07:00
2014-08-14 14:38:54 -07:00
2014-05-03 19:23:07 -04:00
2014-07-15 11:05:09 -04:00
2014-08-14 14:38:54 -07:00
2014-07-01 23:46:21 -07:00
2014-08-06 14:09:01 -07:00
2014-08-14 14:38:54 -07:00
2014-02-26 17:08:40 -05:00
2014-05-03 19:23:07 -04:00
2014-08-05 16:29:33 -07:00
2014-07-30 17:31:06 -07:00
2013-10-19 19:12:11 -04:00
2014-07-30 17:31:06 -07:00
2014-02-13 18:22:34 -05:00
2014-05-03 19:23:07 -04:00
2014-08-14 14:38:54 -07:00
2013-10-19 19:12:11 -04:00
2014-07-29 15:31:56 -07:00
2014-07-14 16:12:15 -07:00
2014-07-23 13:23:06 -07:00
2014-05-23 16:28:53 -04:00
2014-02-25 07:04:16 +01:00
2013-12-26 13:43:21 -05:00
2014-06-02 11:00:41 -07:00
2014-05-24 00:32:30 -04:00
2014-03-14 07:28:07 +01:00
2014-06-30 07:49:47 +02:00
2013-12-18 16:58:20 -05:00
2013-05-31 17:19:05 -07:00