summaryrefslogtreecommitdiff
path: root/kernel/pid.c
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2018-11-12 09:54:48 -0500
committerPaul Moore <paul@paul-moore.com>2018-11-12 09:54:48 -0500
commit1635e5722350597b6a149bdb131358fcd7e34906 (patch)
tree216c24efdcd39602c92b7419d522c519bc3486e8 /kernel/pid.c
parent8d20d6e9301d7b3777d66d47dd5b89acd645cd39 (diff)
audit: Make hash table insertion safe against concurrent lookups
Currently, the audit tree code does not make sure that when a chunk is inserted into the hash table, it is fully initialized. So in theory a user of RCU lookup could see uninitialized structure in the hash table and crash. Add appropriate barriers between initialization of the structure and its insertion into hash table. Reviewed-by: Richard Guy Briggs <rgb@redhat.com> Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'kernel/pid.c')
0 files changed, 0 insertions, 0 deletions