Date:2013-04-26 05:03:53 (9 years 5 months ago)
Author:Zhao Hongjiang
Commit:91d80a84bbc8f28375cca7e65ec666577b4209ad
Message: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>
Files: fs/aio.c (1 diff)

Change Details

fs/aio.c
10291029    spin_unlock(&info->ring_lock);
10301030
10311031out:
1032    kunmap_atomic(ring);
10331032    dprintk("leaving aio_read_evt: %d h%lu t%lu\n", ret,
10341033         (unsigned long)ring->head, (unsigned long)ring->tail);
1034    kunmap_atomic(ring);
10351035    return ret;
10361036}
10371037

Archive Download the corresponding diff file



interactive