Skip to content
Snippets Groups Projects
Commit aa2c96d6 authored by Josh Hunt's avatar Josh Hunt Committed by Linus Torvalds
Browse files

drivers/misc/lkdtm.c: fix race when crashpoint is hit multiple times before checking count


We observed the crash point count going negative in cases where the
crash point is hit multiple times before the check of "count == 0" is
done.  Because of this we never call lkdtm_do_action().  This patch just
adds a spinlock to protect count.

Reported-by: default avatarTapan Dhimant <tdhimant@akamai.com>
Signed-off-by: default avatarJosh Hunt <johunt@akamai.com>
Acked-by: default avatarAnkita Garg <ankita@in.ibm.com>
Cc: <stable@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 507c5f12
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment