Project

General

Profile

Actions

Bug #46485

closed

rgw: lc: Segmentation Fault when the tag of the object was not found in the rule

Added by Nathan Cutler almost 4 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
octopus, nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

master needs the following patch in src/rgw/rgw_lc.cc

@@ -454,6 +454,8 @@ static inline bool has_all_tags(const lc_op& rule_action,
   for (const auto& tag : object_tags.get_tags()) {
     const auto& rule_tags = rule_action.obj_tags->get_tags();
     const auto& iter = rule_tags.find(tag.first);
+    if(iter == rule_tags.end())
+        continue;
     if(iter->second == tag.second)
     {
       tag_count++;

Patch taken from https://github.com/ceph/ceph/pull/35996 which could not be considered initially because it was opened against the wrong branch.


Related issues 2 (0 open2 closed)

Copied to rgw - Backport #46511: octopus: rgw: lc: Segmentation Fault when the tag of the object was not found in the ruleResolvedNathan CutlerActions
Copied to rgw - Backport #46512: nautilus: rgw: lc: Segmentation Fault when the tag of the object was not found in the ruleResolvedNathan CutlerActions
Actions #1

Updated by Nathan Cutler almost 4 years ago

  • Description updated (diff)
Actions #2

Updated by Nathan Cutler almost 4 years ago

  • Status changed from New to In Progress
Actions #3

Updated by Nathan Cutler almost 4 years ago

  • Description updated (diff)
Actions #4

Updated by Or Friedmann almost 4 years ago

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

Updated by Or Friedmann almost 4 years ago

  • Assignee set to Or Friedmann
  • Pull request ID set to 36055
Actions #6

Updated by Casey Bodley almost 4 years ago

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

Updated by Nathan Cutler almost 4 years ago

  • Copied to Backport #46511: octopus: rgw: lc: Segmentation Fault when the tag of the object was not found in the rule added
Actions #8

Updated by Nathan Cutler almost 4 years ago

  • Copied to Backport #46512: nautilus: rgw: lc: Segmentation Fault when the tag of the object was not found in the rule added
Actions #9

Updated by Nathan Cutler almost 4 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF