diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2017-01-22 22:22:34 -0500 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2018-05-16 13:24:14 +0200 |
| commit | aebe0949b646cd43d8b85ad8a268c269d6a5d9e3 (patch) | |
| tree | a5f5be780af11ca6c21f2a76e57c3f1fc4e51885 | |
| parent | 423f49a5638a6e83aa6989244d13b49cc2b98dba (diff) | |
add missing cache_from_obj !PageSlab check
Taken from PaX.
| -rw-r--r-- | mm/slab.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -220,6 +220,7 @@ static inline struct kmem_cache *cache_from_obj(struct kmem_cache *s, void *x) return s; page = virt_to_head_page(x); + BUG_ON(!PageSlab(page)); cachep = page->slab_cache; if (slab_equal_or_root(cachep, s)) return cachep; |
