Catalin Marinas
9099daed9c
mm: kmemleak: avoid using __va() on addresses that don't have a lowmem mapping
...
Some of the kmemleak_*() callbacks in memblock, bootmem, CMA convert a
physical address to a virtual one using __va(). However, such physical
addresses may sometimes be located in highmem and using __va() is
incorrect, leading to inconsistent object tracking in kmemleak.
The following functions have been added to the kmemleak API and they take
a physical address as the object pointer. They only perform the
corresponding action if the address has a lowmem mapping:
kmemleak_alloc_phys
kmemleak_free_part_phys
kmemleak_not_leak_phys
kmemleak_ignore_phys
The affected calling places have been updated to use the new kmemleak
API.
Link: http://lkml.kernel.org/r/1471531432-16503-1-git-send-email-catalin.marinas@arm.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Reported-by: Vignesh R <vigneshr@ti.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2016-10-11 15:06:33 -07:00
..
2016-08-11 16:58:14 -07:00
2016-08-04 14:19:16 -06:00
2016-07-26 16:19:19 -07:00
2016-10-11 15:06:33 -07:00
2016-01-27 09:09:57 -05:00
2015-07-17 16:39:54 -07:00
2016-10-11 15:06:33 -07:00
2015-08-14 15:56:32 -07:00
2016-10-07 18:46:29 -07:00
2016-03-17 15:09:34 -07:00
2016-10-07 18:46:29 -07:00
2016-03-17 15:09:34 -07:00
2015-11-05 19:34:48 -08:00
2016-06-09 14:23:11 -07:00
2016-03-15 16:55:16 -07:00
2016-10-10 13:38:49 -07:00
2016-02-16 10:11:12 +01:00
2016-07-26 16:19:19 -07:00
2016-08-02 16:11:27 -04:00
2016-05-19 19:12:14 -07:00
2016-10-07 18:46:29 -07:00
2016-05-20 17:58:30 -07:00
2016-10-07 18:46:29 -07:00
2015-09-10 13:29:01 -07:00
2011-07-26 16:49:47 -07:00
2016-10-07 18:46:29 -07:00
2015-02-10 14:30:31 -08:00
2016-08-26 17:39:35 -07:00
2016-09-13 02:35:27 +02:00
2016-09-19 15:36:16 -07:00
2016-03-17 15:09:34 -07:00
2016-03-17 15:09:34 -07:00
2016-10-11 15:06:33 -07:00
2016-10-07 18:46:29 -07:00
2016-01-20 17:09:18 -08:00
2016-05-22 17:21:27 -07:00
2016-05-23 17:04:14 -07:00
2016-08-08 14:48:14 -07:00
2016-10-11 15:06:33 -07:00
2016-10-07 18:46:29 -07:00
2016-10-07 18:46:29 -07:00
2016-07-28 16:07:41 -07:00
2016-10-07 18:46:28 -07:00
2016-10-07 18:46:28 -07:00
2016-07-28 16:07:41 -07:00
2015-09-08 15:35:28 -07:00
2016-10-07 18:46:29 -07:00
2016-10-07 18:46:28 -07:00
2016-10-07 18:46:28 -07:00
2016-03-17 15:09:34 -07:00
2016-10-07 18:46:29 -07:00
2016-04-28 11:44:19 +02:00
2016-03-17 15:09:34 -07:00
2016-05-19 19:12:14 -07:00
2016-10-10 11:01:51 -07:00
2016-07-26 16:19:19 -07:00
2015-11-05 19:34:48 -08:00
2016-10-11 15:06:33 -07:00
2016-07-26 16:19:19 -07:00
2016-10-07 18:46:29 -07:00
2016-10-07 18:46:29 -07:00
2015-11-05 19:34:48 -08:00
2016-10-07 18:46:27 -07:00
2016-07-28 16:07:41 -07:00
2016-10-07 18:46:29 -07:00
2016-10-07 18:46:29 -07:00
2016-10-07 18:46:27 -07:00
2016-06-03 15:06:22 -07:00
2016-10-07 18:46:28 -07:00
2016-01-15 17:56:32 -08:00
2016-03-17 15:09:34 -07:00
2014-09-02 14:46:02 -04:00
2016-05-25 11:48:25 -04:00
2016-03-17 15:09:34 -07:00
2016-02-16 10:04:09 +01:00
2016-03-17 15:09:34 -07:00
2016-08-26 17:39:35 -07:00
2016-08-10 16:40:56 -07:00
2016-10-10 20:16:43 -07:00
2016-07-26 16:19:19 -07:00
2016-09-06 18:30:20 +02:00
2016-07-28 16:07:41 -07:00
2016-02-18 16:23:24 -08:00
2016-09-06 18:30:20 +02:00
2016-08-02 17:31:41 -04:00
2016-08-02 17:31:41 -04:00
2016-03-17 15:09:34 -07:00
2016-10-07 18:46:28 -07:00
2016-10-07 18:46:28 -07:00
2016-10-07 18:46:28 -07:00
2016-07-26 16:19:19 -07:00
2016-09-20 16:07:39 -07:00
2016-04-04 10:41:08 -07:00
2016-07-28 16:07:41 -07:00
2016-10-07 18:46:27 -07:00
2016-10-07 18:46:29 -07:00
2016-02-03 08:28:43 -08:00
2016-10-07 18:46:28 -07:00
2016-10-07 18:46:30 -07:00
2016-09-30 15:26:52 -07:00
2016-06-03 16:02:55 -07:00
2016-01-15 11:40:52 -08:00
2015-11-06 17:50:42 -08:00
2016-07-28 16:07:41 -07:00
2016-05-20 17:58:30 -07:00