commit | 8769f610fe6d473e5e8e221709c3ac402037da6c | [log] [tgz] |
---|---|---|
author | Vasily Gorbik <gor@linux.ibm.com> | Tue Aug 13 20:11:08 2019 +0200 |
committer | Vasily Gorbik <gor@linux.ibm.com> | Wed Aug 21 12:58:52 2019 +0200 |
tree | c740258be7d3cd1f37d7c58d4495d7b11af31ce9 | |
parent | f45f7b5bdaa4828ce871cf03f7c01599a0de57a5 [diff] |
s390/process: avoid potential reading of freed stack With THREAD_INFO_IN_TASK (which is selected on s390) task's stack usage is refcounted and should always be protected by get/put when touching other task's stack to avoid race conditions with task's destruction code. Fixes: d5c352cdd022 ("s390: move thread_info into task_struct") Cc: stable@vger.kernel.org # v4.10+ Acked-by: Ilya Leoshkevich <iii@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>