]> git.baikalelectronics.ru Git - kernel.git/commit
pcm_native: result of put_user() needs to be checked
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 19 Mar 2020 22:08:59 +0000 (18:08 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 26 Apr 2020 13:33:49 +0000 (09:33 -0400)
commit413145c7ad30731cf48ece0dc581f2937784413b
tree3c45f161f86ae3fc4c8102c2696295a608033222
parent564754299e5ae07b9d928d3533539e864cfb1374
pcm_native: result of put_user() needs to be checked

... and no, __put_user() doesn't help here - skipping
access_ok() on the second call does not remove the
possibility of page having become unmapped or r/o
in the meanwhile

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
sound/core/pcm_native.c