kernel-fxtec-pro1x/drivers/misc/sgi-gru
Jack Steiner 1926ee85a9 gru: fix potential use-after-free when purging GRU tlbs
Fix potential SGI GRU bug that could cause a use-after-free.  If one
thread in a task is flushing the GRU and another thread destroys the GRU
context, there is the potential to access a table after it has been freed.

Copy the gms pointer to a local variable before unlocking the gts table.
Note that no refcnt is needed for the gms - the reference is held
indirectly by the task's mm_struct.

Signed-off-by: Jack Steiner <steiner@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-06-18 13:04:04 -07:00
..
gru.h SGI IA64 UV: fix ia64 build error in the linux-next tree 2009-02-11 13:31:47 +01:00
gru_instructions.h gru: cleanup gru inline functions 2009-06-18 13:04:03 -07:00
grufault.c gru: fix potential use-after-free when purging GRU tlbs 2009-06-18 13:04:04 -07:00
grufile.c gru: generic infrastructure for context options 2009-06-18 13:04:03 -07:00
gruhandles.c gru: change resource assignment for kernel threads 2009-06-18 13:04:00 -07:00
gruhandles.h gru: update to rev 0.9 of gru spec 2009-06-18 13:04:02 -07:00
grukdump.c gru: change resource assignment for kernel threads 2009-06-18 13:04:00 -07:00
grukservices.c gru: fix automatic retry of gru instruction failures 2009-06-18 13:04:03 -07:00
grukservices.h gru: support for asynchronous gru instructions 2009-06-18 13:04:00 -07:00
grulib.h gru: add user request to specify gru slice 2009-06-18 13:04:04 -07:00
grumain.c gru: add user request to specify gru slice 2009-06-18 13:04:04 -07:00
gruprocfs.c gru: generic infrastructure for context options 2009-06-18 13:04:03 -07:00
grutables.h gru: add user request to specify gru slice 2009-06-18 13:04:04 -07:00
grutlbpurge.c sgi-gru: improvements to GRU debug messages & statistics 2009-04-02 19:05:05 -07:00
Makefile gru: dump chiplet state 2009-06-18 13:03:59 -07:00