summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-load-buffer.c
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2009-07-30 14:50:20 +0000
committerkettenis <kettenis@openbsd.org>2009-07-30 14:50:20 +0000
commit8f4f3b87fd7de3f2002e4a514eaca53c335a6c52 (patch)
treec0ff022eb623ac2854af41d073a1608a9e9a5d24 /usr.bin/tmux/cmd-load-buffer.c
parentmake sure we only ever try to read out post-op attributes (diff)
downloadwireguard-openbsd-8f4f3b87fd7de3f2002e4a514eaca53c335a6c52.tar.xz
wireguard-openbsd-8f4f3b87fd7de3f2002e4a514eaca53c335a6c52.zip
Disable interrupts when we enter cpu_intr() and enable them again when leaving
that function. It seems this function was intended to be called with interrupts disabled but that is not (no longer?) the case. As a result there were some races accessing the list of interrupt handlers and we would leave the function with interrupts disabled if there were any interrupts pending. This could make us end up in the idle loop with interrupts disabled, which would "hang" the machine. Found with help from deraadt@
Diffstat (limited to 'usr.bin/tmux/cmd-load-buffer.c')
0 files changed, 0 insertions, 0 deletions