Project

General

Profile

Actions

Bug #62492

closed

libcephsqlite: short reads fill 0s at beginning of buffer

Added by Patrick Donnelly 9 months ago. Updated 6 months ago.

Status:
Resolved
Priority:
Immediate
Target version:
% Done:

0%

Source:
Development
Tags:
backport_processed
Backport:
reef,quincy,pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

"If xRead() returns SQLITE_IOERR_SHORT_READ it must also fill in the unread portions of the buffer with zeros. A VFS that fails to zero-fill short reads might seem to work. However, failure to zero-fill short reads will eventually lead to database corruption. "

https://www.sqlite.org/c3ref/io_methods.html

https://github.com/ceph/ceph/blob/dd5f8e078fe1235d25c9aca356bdd3eb2a9ed6b4/src/libcephsqlite.cc#L356


Related issues 3 (0 open3 closed)

Copied to cephsqlite - Backport #62553: reef: libcephsqlite: short reads fill 0s at beginning of bufferResolvedPatrick DonnellyActions
Copied to cephsqlite - Backport #62554: quincy: libcephsqlite: short reads fill 0s at beginning of bufferResolvedPatrick DonnellyActions
Copied to cephsqlite - Backport #62555: pacific: libcephsqlite: short reads fill 0s at beginning of bufferResolvedPatrick DonnellyActions
Actions #1

Updated by Patrick Donnelly 9 months ago

  • Priority changed from Normal to Immediate
  • Pull request ID set to 53053
Actions #2

Updated by Patrick Donnelly 9 months ago

  • Status changed from In Progress to Fix Under Review
Actions #3

Updated by Patrick Donnelly 8 months ago

  • Status changed from Fix Under Review to Pending Backport
Actions #4

Updated by Backport Bot 8 months ago

  • Copied to Backport #62553: reef: libcephsqlite: short reads fill 0s at beginning of buffer added
Actions #5

Updated by Backport Bot 8 months ago

  • Copied to Backport #62554: quincy: libcephsqlite: short reads fill 0s at beginning of buffer added
Actions #6

Updated by Backport Bot 8 months ago

  • Copied to Backport #62555: pacific: libcephsqlite: short reads fill 0s at beginning of buffer added
Actions #7

Updated by Backport Bot 8 months ago

  • Tags set to backport_processed
Actions #8

Updated by Patrick Donnelly 6 months ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF