summaryrefslogtreecommitdiff
path: root/include/asm-i386/tlbflush.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2007-02-09 09:30:37 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2007-02-23 16:24:27 -0800
commit76d21f587d66f8508f6448c7253e46ff1881bec9 (patch)
tree11d210b0a2fe75a633d2f86a04b616978edab82a /include/asm-i386/tlbflush.h
parent29b1320675ea8502790bb2dfd4098ab970ea6edb (diff)
Keys: Fix key serial number collision handling
Fix the key serial number collision avoidance code in key_alloc_serial(). This didn't use to be so much of a problem as the key serial numbers were allocated from a simple incremental counter, and it would have to go through two billion keys before it could possibly encounter a collision. However, now that random numbers are used instead, collisions are much more likely. This is fixed by finding a hole in the rbtree where the next unused serial number ought to be and using that by going almost back to the top of the insertion routine and redoing the insertion with the new serial number rather than trying to be clever and attempting to work out the insertion point pointer directly. This fixes kernel BZ #7727. Signed-off-by: David Howells <dhowells@redhat.com> Cc: Chuck Ebbert <cebbert@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/asm-i386/tlbflush.h')
0 files changed, 0 insertions, 0 deletions