Thomas Gleixner
eb366989aa
dm/verity_fec: Use GFP aware reed solomon init
...
Allocations from the rs_pool can invoke init_rs() from the mempool
allocation callback. This is problematic in fec_alloc_bufs() which invokes
mempool_alloc() with GFP_NOIO to prevent a swap deadlock because init_rs()
uses GFP_KERNEL allocations.
Switch it to init_rs_gfp() and invoke it with the gfp_t flags which are
handed in from the allocator.
Note: This is not a problem today because the rs control struct is shared
between the instances and its created when the mempool is initialized. But
the upcoming changes which switch to a rs_control struct per instance to
embed decoder buffers will trigger the swap vs. GFP_KERNEL issue.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Cc: Mike Snitzer <snitzer@redhat.com >
Cc: Alasdair Kergon <agk@redhat.com >
Cc: Neil Brown <neilb@suse.com >
Signed-off-by: Kees Cook <keescook@chromium.org >
2018-04-24 19:50:05 -07:00
..
2018-04-05 14:27:02 -07:00
2018-04-03 15:04:23 -04:00
2017-06-19 11:03:50 -04:00
2017-06-09 09:27:32 -06:00
2017-06-19 11:03:50 -04:00
2017-03-07 11:30:16 -05:00
2017-08-23 12:49:55 -06:00
2018-04-03 15:04:29 -04:00
2017-11-02 11:10:55 +01:00
2017-11-10 15:45:03 -05:00
2017-03-07 13:28:31 -05:00
2016-12-16 00:13:41 +02:00
2017-10-24 15:09:51 -04:00
2017-03-07 13:28:31 -05:00
2017-03-07 13:28:31 -05:00
2017-11-10 15:45:05 -05:00
2014-01-16 13:44:11 -05:00
2017-03-07 13:28:31 -05:00
2018-04-03 15:04:10 -04:00
2018-01-29 13:44:55 -05:00
2018-04-03 15:04:11 -04:00
2018-01-17 09:16:15 -05:00
2018-04-03 15:04:10 -04:00
2015-11-04 21:19:53 -08:00
2016-01-08 20:03:05 -05:00
2018-04-04 12:12:39 -04:00
2018-04-03 15:04:23 -04:00
2017-12-13 12:15:56 -05:00
2018-04-03 15:04:10 -04:00
2018-01-17 09:16:15 -05:00
2018-04-10 10:25:57 -07:00
2015-10-31 19:06:00 -04:00
2015-04-15 12:10:20 -04:00
2018-04-10 10:25:57 -07:00
2016-11-01 09:43:26 -06:00
2018-04-04 12:12:39 -04:00
2016-02-22 22:34:42 -05:00
2018-01-29 13:44:58 -05:00
2017-11-14 20:11:57 -07:00
2018-04-04 12:12:37 -04:00
2016-08-07 14:41:02 -06:00
2017-02-17 00:54:09 -05:00
2018-02-04 11:16:35 -08:00
2017-08-28 10:23:28 -04:00
2018-01-29 13:44:58 -05:00
2018-04-03 15:04:23 -04:00
2016-01-08 20:03:05 -05:00
2018-01-17 09:16:14 -05:00
2018-01-17 09:16:15 -05:00
2017-11-02 11:10:55 +01:00
2018-04-10 10:25:57 -07:00
2018-04-04 12:12:39 -04:00
2016-06-10 15:15:44 -04:00
2018-04-06 11:50:19 -07:00
2018-04-03 15:04:15 -04:00
2018-01-17 09:07:54 -05:00
2016-07-20 12:43:35 -04:00
2018-04-03 15:04:10 -04:00
2018-04-03 15:04:15 -04:00
2018-04-24 19:50:05 -07:00
2017-03-16 09:37:31 -04:00
2018-04-04 12:12:39 -04:00
2018-04-03 15:04:29 -04:00
2017-06-09 09:27:32 -06:00
2018-01-17 09:16:15 -05:00
2017-07-26 15:55:43 -04:00
2018-04-04 12:12:39 -04:00
2017-06-19 11:05:20 -04:00
2018-04-10 10:25:57 -07:00
2018-01-17 09:16:06 -05:00
2018-04-03 05:41:19 -07:00
2018-01-17 09:16:00 -05:00
2017-11-14 16:07:26 -08:00
2017-11-14 16:07:26 -08:00
2017-11-01 21:32:25 -07:00
2017-11-02 11:10:55 +01:00
2017-10-16 19:06:36 -07:00
2018-03-08 14:13:48 -07:00
2017-11-14 16:07:26 -08:00
2018-02-17 13:00:35 -08:00
2017-11-14 16:07:26 -08:00
2018-04-09 08:39:36 -07:00
2018-02-18 10:11:59 -08:00
2018-03-08 14:13:48 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-04-09 08:54:34 -07:00
2018-02-18 10:22:27 -08:00
2018-01-15 14:29:42 -08:00
2018-02-21 09:40:40 -08:00
2018-02-21 09:40:40 -08:00
2018-04-05 14:27:02 -07:00
2018-02-18 10:22:27 -08:00
2018-04-05 14:27:02 -07:00
2018-02-18 10:22:27 -08:00