aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/contrib/kernel-tree
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-10-11 03:07:40 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-10-11 15:50:29 +0200
commit60ca1ed044669b1ed382515d642cd05aa4792f15 (patch)
treebe3bc89f0164206c85585521fcb4790444ff96ef /contrib/kernel-tree
parenttools: man: include kill-switch documentation using fwmark (diff)
downloadwireguard-monolithic-historical-60ca1ed044669b1ed382515d642cd05aa4792f15.tar.xz
wireguard-monolithic-historical-60ca1ed044669b1ed382515d642cd05aa4792f15.zip
receive: disable bh before using stats seq lock
Otherwise we might get a situation like this: CPU0 CPU1 ---- ---- lock(tstats lock); local_irq_disable(); lock(queue lock); lock(tstats lock); <Interrupt> lock(queue lock); CPU1 is waiting for CPU0 to release tstats lock. But CPU0, in the interrupt handler, is waiting for CPU1 to release queue lock. The solution is to disable interrupts on CPU0, so that this can't happen. Note that this only affects 32-bit, since u64_stats_update_begin nops out on native 64-bit platforms. Reported-by: René van Dorst <opensource@vdorst.com>
Diffstat (limited to 'contrib/kernel-tree')
0 files changed, 0 insertions, 0 deletions