diff options
author | Tejun Heo <[email protected]> | 2018-03-14 12:10:17 -0700 |
---|---|---|
committer | Tejun Heo <[email protected]> | 2018-03-14 12:10:17 -0700 |
commit | d0264c01e7587001a8c4608a5d1818dba9a4c11a (patch) | |
tree | fe5161b426a3c3071a9b3b5ee590af2ddd03e0d1 /scripts/gcc-plugins/randomize_layout_plugin.c | |
parent | a6d7cff472eea87d96899a20fa718d2bab7109f3 (diff) |
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 <[email protected]>
Reported-by: Jann Horn <[email protected]>
Fixes: db446a08c23d ("aio: convert the ioctx list to table lookup v3")
Cc: Benjamin LaHaise <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: [email protected] # v3.12+
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions