Project

General

Profile

Bug #40872

rgw: when usring radosgw-admin to list bucket, can set --max-entries excessively high

Added by Eric Ivancich 3 months ago. Updated 3 months ago.

Status:
Pending Backport
Priority:
Normal
Assignee:
Target version:
Start date:
07/22/2019
Due date:
% Done:

0%

Source:
Tags:
Backport:
nautilus, mimic, luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

Description

When listing a bucket with radosgw-admin, the user can specify the
maximum number of entries. That number can be unreasonably large, and
can affect the performance and memory availability. For example:

radosgw-admin bucket list --bucket mybucket1 --max-entries=10000000

This has the potential for creating large data structures at multiple
levels in the the call stack of the radosgw(-admin) process,
potentially causing the process to run out of memory. This change
limits the maximum number of entries requested in all but the high
level code to help mitigate this issue.


Related issues

Related to rgw - Bug #41655: rgw: fix minimum of unordered bucket listing Pending Backport 09/04/2019
Copied to rgw - Backport #41102: nautilus: rgw: when usring radosgw-admin to list bucket, can set --max-entries excessively high In Progress
Copied to rgw - Backport #41103: mimic: rgw: when usring radosgw-admin to list bucket, can set --max-entries excessively high Resolved
Copied to rgw - Backport #41104: luminous: rgw: when usring radosgw-admin to list bucket, can set --max-entries excessively high Resolved

History

#1 Updated by Casey Bodley 3 months ago

  • Status changed from In Progress to Testing

#2 Updated by Eric Ivancich 3 months ago

  • Status changed from Testing to Pending Backport

#3 Updated by Patrick Donnelly 3 months ago

  • Copied to Backport #41102: nautilus: rgw: when usring radosgw-admin to list bucket, can set --max-entries excessively high added

#4 Updated by Patrick Donnelly 3 months ago

  • Copied to Backport #41103: mimic: rgw: when usring radosgw-admin to list bucket, can set --max-entries excessively high added

#5 Updated by Patrick Donnelly 3 months ago

  • Copied to Backport #41104: luminous: rgw: when usring radosgw-admin to list bucket, can set --max-entries excessively high added

#6 Updated by Nathan Cutler about 1 month ago

  • Related to Bug #41655: rgw: fix minimum of unordered bucket listing added

Also available in: Atom PDF