Commit b0e28f1
net: netif_rx() must disable preemption
Eric Paris reported netif_rx() is calling smp_processor_id() from
preemptible context, in particular when caller is
ip_dev_loopback_xmit().
RPS commit added this smp_processor_id() call, this patch makes sure
preemption is disabled. rps_get_cpus() wants rcu_read_lock() anyway, we
can dot it a bit earlier.
Reported-by: Eric Paris <[email protected]>
Signed-off-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>1 parent fea0691 commit b0e28f1
1 file changed
+15
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2206 | 2206 | | |
2207 | 2207 | | |
2208 | 2208 | | |
| 2209 | + | |
2209 | 2210 | | |
2210 | 2211 | | |
2211 | 2212 | | |
| |||
2217 | 2218 | | |
2218 | 2219 | | |
2219 | 2220 | | |
2220 | | - | |
2221 | | - | |
2222 | 2221 | | |
2223 | 2222 | | |
2224 | 2223 | | |
| |||
2296 | 2295 | | |
2297 | 2296 | | |
2298 | 2297 | | |
2299 | | - | |
2300 | 2298 | | |
2301 | 2299 | | |
2302 | 2300 | | |
| |||
2392 | 2390 | | |
2393 | 2391 | | |
2394 | 2392 | | |
2395 | | - | |
| 2393 | + | |
2396 | 2394 | | |
2397 | 2395 | | |
2398 | 2396 | | |
| |||
2402 | 2400 | | |
2403 | 2401 | | |
2404 | 2402 | | |
2405 | | - | |
2406 | | - | |
2407 | | - | |
| 2403 | + | |
| 2404 | + | |
| 2405 | + | |
| 2406 | + | |
| 2407 | + | |
| 2408 | + | |
| 2409 | + | |
| 2410 | + | |
| 2411 | + | |
| 2412 | + | |
2408 | 2413 | | |
2409 | | - | |
| 2414 | + | |
| 2415 | + | |
2410 | 2416 | | |
2411 | | - | |
2412 | | - | |
| 2417 | + | |
2413 | 2418 | | |
2414 | 2419 | | |
2415 | 2420 | | |
| |||
0 commit comments