Qian Cai
fcf88917dd
slab: fix a crash by reading /proc/slab_allocators
...
The commit 510ded33e075 ("slab: implement slab_root_caches list")
changes the name of the list node within "struct kmem_cache" from "list"
to "root_caches_node", but leaks_show() still use the "list" which
causes a crash when reading /proc/slab_allocators.
You need to have CONFIG_SLAB=y and CONFIG_MEMCG=y to see the problem,
because without MEMCG all slab caches are root caches, and the "list"
node happens to be the right one.
Fixes: 510ded33e075 ("slab: implement slab_root_caches list")
Signed-off-by: Qian Cai <cai@lca.pw>
Reviewed-by: Tobin C. Harding <tobin@kernel.org>
Cc: Tejun Heo <tj@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2019-04-07 19:23:12 -10:00
..
2019-03-29 10:01:36 -07:00
2019-01-22 14:39:38 -07:00
2017-11-14 23:57:38 +02:00
2018-06-15 07:55:25 +09:00
2019-03-05 21:07:20 -08:00
2019-03-12 10:04:01 -07:00
2017-11-02 11:10:55 +01:00
2019-04-04 11:56:15 +01:00
2017-11-02 11:10:55 +01:00
2019-03-29 10:01:37 -07:00
2019-03-05 21:07:20 -08:00
2017-12-11 14:54:44 +01:00
2018-08-30 20:01:32 +02:00
2019-03-05 21:07:17 -08:00
2019-03-15 11:26:07 -07:00
2017-12-14 16:00:48 -08:00
2018-06-15 07:55:25 +09:00
2019-03-05 21:07:17 -08:00
2019-03-07 17:43:58 -08:00
2018-12-28 12:11:47 -08:00
2019-03-12 10:04:00 -07:00
2019-04-05 16:02:31 -10:00
2018-06-07 17:34:35 -07:00
2019-03-05 21:07:19 -08:00
2018-01-23 12:17:42 -06:00
2018-07-17 09:35:30 +02:00
2019-03-05 21:07:17 -08:00
2018-01-31 17:18:37 -08:00
2018-12-28 12:11:46 -08:00
2019-03-05 21:07:18 -08:00
2019-03-05 21:07:19 -08:00
2016-03-17 15:09:34 -07:00
2019-04-05 16:02:30 -10:00
2019-03-05 21:07:19 -08:00
2019-03-05 21:07:19 -08:00
2019-02-25 09:10:51 -08:00
2018-12-28 12:11:50 -08:00
2018-10-31 08:54:16 -07:00
2019-03-12 10:04:02 -07:00
2019-04-05 16:02:31 -10:00
2019-03-05 21:07:19 -08:00
2019-03-29 10:01:37 -07:00
2019-03-05 21:07:13 -08:00
2019-03-29 10:01:37 -07:00
2019-03-29 10:01:37 -07:00
2019-03-05 21:07:20 -08:00
2017-11-02 11:10:55 +01:00
2019-03-29 10:01:37 -07:00
2019-01-24 09:04:37 +13:00
2019-03-05 21:07:21 -08:00
2018-12-28 12:11:47 -08:00
2019-03-05 21:07:18 -08:00
2017-03-02 08:42:38 +01:00
2018-11-27 09:21:46 -08:00
2018-12-28 12:11:50 -08:00
2017-11-02 11:10:55 +01:00
2019-03-05 21:07:18 -08:00
2019-03-05 21:07:21 -08:00
2017-11-02 11:10:55 +01:00
2018-10-26 16:38:15 -07:00
2019-03-05 21:07:19 -08:00
2019-03-29 10:01:37 -07:00
2018-06-07 17:34:36 -07:00
2019-03-12 10:04:02 -07:00
2019-03-05 21:07:21 -08:00
2019-01-04 13:13:48 -08:00
2019-03-29 10:01:37 -07:00
2019-03-05 21:07:17 -08:00
2019-03-05 21:07:13 -08:00
2018-10-31 08:54:11 -07:00
2019-03-05 21:07:20 -08:00
2018-04-05 21:36:27 -07:00
2017-11-02 11:10:55 +01:00
2019-02-26 13:47:58 -08:00
2018-06-12 16:19:22 -07:00
2018-02-18 05:33:01 -08:00
2019-03-12 10:04:02 -07:00
2018-10-09 16:51:11 +02:00
2018-02-06 18:32:48 -08:00
2017-11-02 11:10:55 +01:00
2019-03-05 21:07:20 -08:00
2019-03-05 21:07:21 -08:00
2017-10-03 17:54:24 -07:00
2019-03-05 21:07:19 -08:00
2019-03-29 10:01:37 -07:00
2019-04-07 19:23:12 -10:00
2019-03-29 10:01:37 -07:00
2018-06-07 17:34:34 -07:00
2019-03-29 10:01:37 -07:00
2018-10-31 08:54:16 -07:00
2019-03-29 10:01:37 -07:00
2017-11-02 11:10:55 +01:00
2018-08-22 10:52:44 -07:00
2019-03-05 21:07:16 -08:00
2019-03-05 21:07:21 -08:00
2019-03-05 21:07:21 -08:00
2019-03-05 21:07:20 -08:00
2019-01-08 17:15:11 -08:00
2019-01-08 17:15:11 -08:00
2019-04-05 16:02:31 -10:00
2018-09-13 15:18:04 -10:00
2019-03-05 21:07:20 -08:00
2018-06-07 17:34:36 -07:00
2019-03-05 21:07:21 -08:00
2019-03-05 21:07:17 -08:00
2019-03-05 21:07:21 -08:00
2018-11-18 10:15:09 -08:00
2018-02-06 18:32:48 -08:00
2018-02-21 15:35:43 -08:00
2018-10-26 16:26:35 -07:00
2018-12-28 12:11:47 -08:00