RT RT/krbdev.mit.edu: Ticket #5880 libdb btree page split on zero index corrupts db Signed in as guest.
[Logout]

[Home] [Search] [Configuration]

[Display] [History] [Basics] [Dates] [People] [Links] [Jumbo]

 
 

 The Basics  
Id
5880
Status
resolved
Worked
0 min
Priority
0/0
Queue
krb5
 

 Keyword Selections  
Component
  • krb5-kdc
Tags
Version_reported
Version_Fixed
  • 1.6.4
Target_Version
  • 1.6.4
 

 Relationships  
Depends on:
Depended on by:
Parents:
Children:

Refers to:
Referred to by:
  • 5888: (tlyu) more tests for libdb btree page split on zero index [resolved]
  • 6481: (Nobody) kdb ldap integration removed rev/recurse kdb5_util dumps [resolved]
 
 Dates  
Created: Thu Jan 31 20:03:19 2008
Starts: Not set
Started: Thu Jan 31 20:03:22 2008
Last Contact: Not set
Due: Not set
Updated: Wed Dec 16 18:02:51 2015 by tlyu
 

 People  
Owner
 tlyu
Requestors
 tlyu@mit.edu
Cc
 
AdminCc
 
 

 More about Taylor Yu  
Comments about this user:
No comment entered about this user
This user's 25 highest priority tickets:
 

History   Display mode: [Brief headers] [Full headers]
      Thu Jan 31 20:03:19 2008  tlyu - Ticket created    
     
From: tlyu@mit.edu
Subject: SVN Commit


Splitting a btree page on index 0 can corrupt the database if the key
length plus data length is exactly a certain value.  This certain size
causes the item to get the left page to itself, and causes the right
page to contain an erroneous additional index "hole" having an
uninitialized value.  This bug may be one of the remaining causes of
unexplained database corruption reported over the years.  Shawn Emery
provided useful data from actual instances of this corruption.

Add a test case for this bug.  (Raw libdb test rather than kdb; the
latter would be much harder.)

Commit By: tlyu



Revision: 20214
Changed Files:
_U  trunk/
U   trunk/src/plugins/kdb/db2/libdb2/btree/bt_split.c
U   trunk/src/plugins/kdb/db2/libdb2/test/run.test


Download (untitled) 742b
      Thu Jan 31 20:03:22 2008  tlyu - Requestor tlyu@mit.edu added    
      Thu Jan 31 20:03:22 2008  tlyu - Status changed from new to resolved    
      Thu Jan 31 20:03:23 2008  tlyu - Tags pullup added    
      Thu Jan 31 20:03:23 2008  tlyu - Target_Version 1.6.4 added    
      Thu Jan 31 20:03:24 2008  tlyu - Component krb5-kdc added    
      Thu Jan 31 20:23:18 2008  tlyu - Version_Fixed 1.6.4 added    
      Thu Jan 31 20:23:18 2008  tlyu - Correspondence added    
     
From: tlyu@mit.edu
Subject: SVN Commit


pull up r20214 from trunk

 r20214@cathode-dark-space:  tlyu | 2008-01-31 20:03:11 -0500
 ticket: new
 target_version: 1.6.4
 tags: pullup
 subject: libdb btree page split on zero index corrupts db
 component: krb5-kdc

 Splitting a btree page on index 0 can corrupt the database if the key
 length plus data length is exactly a certain value.  This certain size
 causes the item to get the left page to itself, and causes the right
 page to contain an erroneous additional index "hole" having an
 uninitialized value.  This bug may be one of the remaining causes of
 unexplained database corruption reported over the years.  Shawn Emery
 provided useful data from actual instances of this corruption.

 Add a test case for this bug.  (Raw libdb test rather than kdb; the
 latter would be much harder.)



Commit By: tlyu



Revision: 20215
Changed Files:
_U  branches/krb5-1-6/
U   branches/krb5-1-6/src/plugins/kdb/db2/libdb2/btree/bt_split.c
U   branches/krb5-1-6/src/plugins/kdb/db2/libdb2/test/run.test


Download (untitled) 1012b
      Wed Dec 16 18:02:51 2015  tlyu - Keyword pullup deleted