diff options
author | Marcin Slusarz <[email protected]> | 2010-06-13 23:56:54 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2010-06-18 11:30:09 +0200 |
commit | 8b8f79b927b6b302bb65fb8c56e7a19be5fbdbef (patch) | |
tree | 5e8cdb23232975f55661998956eb45c3e793a7c6 /tools/perf/scripts/python/net_dropmonitor.py | |
parent | 7e27d6e778cd87b6f2415515d7127eba53fe5d02 (diff) |
x86, kmmio/mmiotrace: Fix double free of kmmio_fault_pages
After every iounmap mmiotrace has to free kmmio_fault_pages, but
it can't do it directly, so it defers freeing by RCU.
It usually works, but when mmiotraced code calls ioremap-iounmap
multiple times without sleeping between (so RCU won't kick in
and start freeing) it can be given the same virtual address, so
at every iounmap mmiotrace will schedule the same pages for
release. Obviously it will explode on second free.
Fix it by marking kmmio_fault_pages which are scheduled for
release and not adding them second time.
Signed-off-by: Marcin Slusarz <[email protected]>
Tested-by: Marcin Kocielnicki <[email protected]>
Tested-by: Shinpei KATO <[email protected]>
Acked-by: Pekka Paalanen <[email protected]>
Cc: Stuart Bennett <[email protected]>
Cc: Marcin Kocielnicki <[email protected]>
Cc: [email protected]
Cc: <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions