Commit 91d80a84bbc8f28375cca7e65ec666577b4209ad
Committed by
Linus Torvalds
1 parent
697dfd8844
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
aio: fix possible invalid memory access when DEBUG is enabled
dprintk() shouldn't access @ring after it's unmapped. Signed-off-by: Zhao Hongjiang <zhaohongjiang@huawei.com> Cc: stable@vger.kernel.org Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
fs/aio.c
... | ... | @@ -1029,9 +1029,9 @@ |
1029 | 1029 | spin_unlock(&info->ring_lock); |
1030 | 1030 | |
1031 | 1031 | out: |
1032 | - kunmap_atomic(ring); | |
1033 | 1032 | dprintk("leaving aio_read_evt: %d h%lu t%lu\n", ret, |
1034 | 1033 | (unsigned long)ring->head, (unsigned long)ring->tail); |
1034 | + kunmap_atomic(ring); | |
1035 | 1035 | return ret; |
1036 | 1036 | } |
1037 | 1037 |