+2
fs/aio.c
+2
fs/aio.c
···
45
45
46
46
#include <asm/kmap_types.h>
47
47
#include <linux/uaccess.h>
48
+
#include <linux/nospec.h>
48
49
49
50
#include "internal.h"
50
51
···
1039
1038
if (!table || id >= table->nr)
1040
1039
goto out;
1041
1040
1041
+
id = array_index_nospec(id, table->nr);
1042
1042
ctx = rcu_dereference(table->table[id]);
1043
1043
if (ctx && ctx->user_id == ctx_id) {
1044
1044
if (percpu_ref_tryget_live(&ctx->users))