Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 147468 Details for
Bug 227495
CVE-2007-0006 Key serial number collision problem
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to fix key serial number collision problem in RHEL4
key-rhel4-fix.patch (text/plain), 1.79 KB, created by
David Howells
on 2007-02-06 14:50:21 UTC
(
hide
)
Description:
Patch to fix key serial number collision problem in RHEL4
Filename:
MIME Type:
Creator:
David Howells
Created:
2007-02-06 14:50:21 UTC
Size:
1.79 KB
patch
obsolete
>--- linux-2.6.9/security/keys/key.c.orig 2007-02-06 14:17:47.000000000 +0000 >+++ linux-2.6.9/security/keys/key.c 2007-02-06 14:33:07.000000000 +0000 >@@ -187,6 +187,7 @@ static inline void key_alloc_serial(stru > key->serial = 3; > key_serial_next = key->serial + 1; > >+attempt_insertion: > parent = NULL; > p = &key_serial_tree.rb_node; > >@@ -201,40 +202,34 @@ static inline void key_alloc_serial(stru > else > goto serial_exists; > } >- goto insert_here; >+ >+ /* we've found a suitable hole - arrange for this key to occupy it */ >+ rb_link_node(&key->serial_node, parent, p); >+ rb_insert_color(&key->serial_node, &key_serial_tree); >+ >+ spin_unlock(&key_serial_lock); >+ return; > > /* we found a key with the proposed serial number - walk the tree from > * that point looking for the next unused serial number */ > serial_exists: > for (;;) { > key->serial = key_serial_next; >- if (key->serial < 2) >- key->serial = 2; >+ if (key->serial < 3) >+ key->serial = 3; > key_serial_next = key->serial + 1; >- >- if (!parent->rb_parent) >- p = &key_serial_tree.rb_node; >- else if (parent->rb_parent->rb_left == parent) >- p = &parent->rb_parent->rb_left; >- else >- p = &parent->rb_parent->rb_right; >+ if (key->serial == 3) >+ goto attempt_insertion; > > parent = rb_next(parent); > if (!parent) >- break; >+ goto attempt_insertion; > > xkey = rb_entry(parent, struct key, serial_node); > if (key->serial < xkey->serial) >- goto insert_here; >+ goto attempt_insertion; > } > >- /* we've found a suitable hole - arrange for this key to occupy it */ >- insert_here: >- rb_link_node(&key->serial_node, parent, p); >- rb_insert_color(&key->serial_node, &key_serial_tree); >- >- spin_unlock(&key_serial_lock); >- > } /* end key_alloc_serial() */ > > /*****************************************************************************/
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 227495
: 147468