summaryrefslogtreecommitdiffstats
path: root/kernel/backtracetest.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-12-16 09:45:54 +0100
committerDavid S. Miller <davem@davemloft.net>2015-12-16 17:13:14 +0100
commitc6ff5268293ef98e48a99597e765ffc417e39fa5 (patch)
tree383abd638c072a92aab2e874870607b1147b8797 /kernel/backtracetest.c
parentrhashtable: Enforce minimum size on initial hash table (diff)
downloadlinux-c6ff5268293ef98e48a99597e765ffc417e39fa5.tar.xz
linux-c6ff5268293ef98e48a99597e765ffc417e39fa5.zip
rhashtable: Fix walker list corruption
The commit ba7c95ea3870fe7b847466d39a049ab6f156aa2c ("rhashtable: Fix sleeping inside RCU critical section in walk_stop") introduced a new spinlock for the walker list. However, it did not convert all existing users of the list over to the new spin lock. Some continued to use the old mutext for this purpose. This obviously led to corruption of the list. The fix is to use the spin lock everywhere where we touch the list. This also allows us to do rcu_rad_lock before we take the lock in rhashtable_walk_start. With the old mutex this would've deadlocked but it's safe with the new spin lock. Fixes: ba7c95ea3870 ("rhashtable: Fix sleeping inside RCU...") Reported-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/backtracetest.c')
0 files changed, 0 insertions, 0 deletions