diff options
| author | seokhoon.yoon <[email protected]> | 2016-05-20 16:58:47 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2016-05-20 17:58:30 -0700 |
| commit | 29b52de182acf50f85a8284ad39104d84c9bbf57 (patch) | |
| tree | 79b8aa6e41e9107ef1c71eee4f0285d81fc0d80b /tools/perf/scripts/python | |
| parent | d0834a6c2c5b0c76cfb806bd7dba6556d8b4edbb (diff) | |
mm, kasan: fix to call kasan_free_pages() after poisoning page
When CONFIG_PAGE_POISONING and CONFIG_KASAN is enabled,
free_pages_prepare()'s codeflow is below.
1)kmemcheck_free_shadow()
2)kasan_free_pages()
- set shadow byte of page is freed
3)kernel_poison_pages()
3.1) check access to page is valid or not using kasan
---> error occur, kasan think it is invalid access
3.2) poison page
4)kernel_map_pages()
So kasan_free_pages() should be called after poisoning the page.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: seokhoon.yoon <[email protected]>
Cc: Andrey Ryabinin <[email protected]>
Cc: Laura Abbott <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions