Tejun Heo
d0264c01e7
fs/aio: Use RCU accessors for kioctx_table->table[]
...
While converting ioctx index from a list to a table, db446a08c23d
("aio: convert the ioctx list to table lookup v3") missed tagging
kioctx_table->table[] as an array of RCU pointers and using the
appropriate RCU accessors. This introduces a small window in the
lookup path where init and access may race.
Mark kioctx_table->table[] with __rcu and use the approriate RCU
accessors when using the field.
Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Jann Horn <jannh@google.com>
Fixes: db446a08c23d ("aio: convert the ioctx list to table lookup v3")
Cc: Benjamin LaHaise <bcrl@kvack.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: stable@vger.kernel.org # v3.12+
2018-03-14 12:10:17 -07:00
..
2018-01-01 12:45:37 -07:00
2017-11-27 13:05:09 -08:00
2018-02-01 08:15:25 -05:00
2018-02-06 14:43:37 +00:00
2018-01-30 14:43:12 -08:00
2018-01-15 12:07:54 -08:00
2017-11-02 11:10:55 +01:00
2018-03-04 11:04:27 -08:00
2018-02-11 14:34:03 -08:00
2018-03-01 16:39:47 +01:00
2018-02-07 09:36:46 -06:00
2018-02-11 14:34:03 -08:00
2017-10-19 16:15:16 +02:00
2018-02-08 11:37:31 -08:00
2018-02-01 10:51:18 -05:00
2018-02-11 14:34:03 -08:00
2018-01-31 08:48:37 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-02-22 10:21:02 -08:00
2017-11-27 13:05:09 -08:00
2018-02-07 14:25:22 -08:00
2018-02-07 14:25:22 -08:00
2018-02-07 14:25:22 -08:00
2018-02-04 10:43:12 -08:00
2018-02-01 08:15:25 -05:00
2018-01-15 12:07:57 -08:00
2017-11-16 11:41:22 -08:00
2018-02-11 14:34:03 -08:00
2018-03-07 11:40:38 -07:00
2017-11-27 13:05:09 -08:00
2018-02-06 18:32:45 -08:00
2017-11-02 11:10:55 +01:00
2017-12-10 12:58:18 -08:00
2018-01-31 17:18:39 -08:00
2017-11-27 13:05:09 -08:00
2018-01-10 00:27:29 -05:00
2018-01-31 19:25:25 -08:00
2018-02-03 16:25:42 -08:00
2018-02-11 14:34:03 -08:00
2018-01-24 17:33:57 -05:00
2017-11-27 13:05:09 -08:00
2018-03-08 12:56:32 -05:00
2017-11-27 16:45:11 -05:00
2018-02-08 15:18:32 -08:00
2018-02-06 18:32:45 -08:00
2017-11-02 11:10:55 +01:00
2018-02-11 14:34:03 -08:00
2018-01-01 10:09:33 -05:00
2018-02-11 14:34:03 -08:00
2017-11-02 11:10:55 +01:00
2017-11-27 13:05:09 -08:00
2018-02-11 14:34:03 -08:00
2018-03-07 11:47:15 +01:00
2018-02-14 17:31:51 -08:00
2017-11-28 16:39:09 -08:00
2017-11-27 13:05:09 -08:00
2017-11-27 13:05:09 -08:00
2017-11-29 16:46:48 +01:00
2017-09-06 17:27:26 -07:00
2018-01-01 12:45:37 -07:00
2017-11-27 13:05:09 -08:00
2017-11-27 13:05:09 -08:00
2018-02-01 13:36:15 -08:00
2017-11-27 13:05:09 -08:00
2017-07-06 03:31:46 -04:00
2018-02-04 10:43:12 -08:00
2017-12-19 08:11:01 +01:00
2018-02-07 14:25:22 -08:00
2018-03-01 14:12:45 -08:00
2018-03-14 12:10:17 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-09-04 19:05:15 -04:00
2017-11-17 12:54:01 -08:00
2018-02-06 18:32:45 -08:00
2017-11-02 11:10:55 +01:00
2017-10-13 16:18:33 -07:00
2017-10-03 17:54:25 -07:00
2018-02-26 09:48:42 -07:00
2018-01-31 09:25:20 -08:00
2017-11-02 11:10:55 +01:00
2017-12-28 11:17:29 -05:00
2017-11-17 11:54:55 -08:00
2018-02-03 13:49:22 -08:00
2018-02-05 13:05:20 -08:00
2018-02-26 09:05:35 -07:00
2017-11-02 11:10:55 +01:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2018-01-03 10:13:36 -08:00
2018-02-11 14:34:03 -08:00
2018-01-15 12:07:51 -08:00
2017-12-07 14:23:30 -05:00
2018-01-31 09:25:20 -08:00
2017-11-02 11:10:55 +01:00
2017-11-07 10:32:44 +01:00
2018-01-06 09:18:00 -07:00
2018-02-06 18:32:47 -08:00
2017-11-10 08:48:46 -05:00
2017-11-02 11:10:55 +01:00
2018-01-29 07:27:24 -08:00
2018-02-06 10:41:33 -08:00
2017-09-10 19:31:46 -04:00
2017-11-27 13:05:09 -08:00
2018-02-08 15:18:32 -08:00
2017-11-28 13:55:01 +01:00
2018-01-09 23:57:52 -05:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-01-31 09:25:20 -08:00
2017-12-09 20:16:33 -05:00
2017-12-31 16:12:23 +01:00
2017-09-05 12:53:12 +02:00
2018-02-11 14:34:03 -08:00
2018-01-02 19:27:28 -08:00
2018-02-11 14:34:03 -08:00
2017-11-17 12:08:18 -08:00
2017-11-07 10:32:44 +01:00
2018-02-11 14:34:03 -08:00
2018-01-20 02:31:15 -05:00
2018-02-22 15:00:07 -06:00
2017-10-25 11:01:08 +02:00
2017-11-02 11:10:55 +01:00
2017-11-27 13:05:09 -08:00
2018-01-31 09:25:20 -08:00
2017-11-14 15:32:19 -08:00
2018-02-11 14:34:03 -08:00
2018-02-11 14:34:03 -08:00
2017-11-02 11:10:55 +01:00
2017-10-04 18:03:15 +11:00