summaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms/cell/cpufreq_spudemand.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2020-05-05 13:12:50 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2020-05-05 23:46:09 +0300
commit88413a6bfbbe2f648df399b62f85c934460b7a4d (patch)
tree638fe85310e0f969f7ed3c1eaabb4c842ef8b21b /arch/powerpc/platforms/cell/cpufreq_spudemand.c
parent8f3d9f354286745c751374f5f1fcafee6b3f3136 (diff)
downloadlinux-88413a6bfbbe2f648df399b62f85c934460b7a4d.tar.xz
powerpc/spufs: fix copy_to_user while atomic
Currently, we may perform a copy_to_user (through simple_read_from_buffer()) while holding a context's register_lock, while accessing the context save area. This change uses a temporary buffer for the context save area data, which we then pass to simple_read_from_buffer. Includes changes from Christoph Hellwig <hch@lst.de>. Fixes: bf1ab978be23 ("[POWERPC] coredump: Add SPU elf notes to coredump.") Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Reviewed-by: Arnd Bergmann <arnd@arndb.de> [hch: renamed to function to avoid ___-prefixes] Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/powerpc/platforms/cell/cpufreq_spudemand.c')
0 files changed, 0 insertions, 0 deletions