summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2014-09-28 10:50:06 +0200
committerGeert Uytterhoeven <geert@linux-m68k.org>2014-10-03 10:50:56 +0200
commite4dc601bf99ccd1c95b7e6eef1d3cf3c4b0d4961 (patch)
tree53d8c0365752e85cfe8491a91265944d64188cef /net
parentfd4d453b64d409647c92de6395494b5dd82ce224 (diff)
downloadlinux-e4dc601bf99ccd1c95b7e6eef1d3cf3c4b0d4961.tar.bz2
m68k: Disable/restore interrupts in hwreg_present()/hwreg_write()
hwreg_present() and hwreg_write() temporarily change the VBR register to another vector table. This table contains a valid bus error handler only, all other entries point to arbitrary addresses. If an interrupt comes in while the temporary table is active, the processor will start executing at such an arbitrary address, and the kernel will crash. While most callers run early, before interrupts are enabled, or explicitly disable interrupts, Finn Thain pointed out that macsonic has one callsite that doesn't, causing intermittent boot crashes. There's another unsafe callsite in hilkbd. Fix this for good by disabling and restoring interrupts inside hwreg_present() and hwreg_write(). Explicitly disabling interrupts can be removed from the callsites later. Reported-by: Finn Thain <fthain@telegraphics.com.au> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Cc: stable@vger.kernel.org
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions