Project

General

Profile

Actions

Bug #55286

closed

Segfault when Open Policy Agent authorization is enabled

Added by Benoît Knecht about 2 years ago. Updated 5 months ago.

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

100%

Source:
Tags:
opa backport_processed
Backport:
pacific quincy
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

On Pacific, radosgw segfault when `rgw_use_opa_authz=true`:

```
2022-04-05T09:03:01.940+0000 7fa29c225700 -1 ** Caught signal (Segmentation fault) *
in thread 7fa29c225700 thread_name:radosgw

ceph version 16.2.7 (dd0603118f56ab514f133c8d2e3adfc983942503) pacific (stable)
1: /lib64/libpthread.so.0(+0x12c20) [0x7fa2d61e1c20]
2: (rgw_opa_authorize(RGWOp*&, req_state*)+0xe90) [0x7fa2e0e54460]
3: (rgw_process_authenticated(RGWHandler_REST*, RGWOp*&, RGWRequest*, req_state*, optional_yield, bool)+0xd7d) [0x7fa2e0de17bd]
4: (process_request(rgw::sal::RGWRadosStore*, RGWREST*, RGWRequest*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, rgw::auth::StrategyRegistry const&, RGWRestfulIO*, OpsLogSink*, optional_yield, rgw::dmclock::Scheduler*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::chrono::duration<unsigned long, std::ratio<1l, 1000000000l> >, int*)+0x2861) [0x7fa2e0de53b1]
5: /lib64/libradosgw.so.2(+0x4b4f73) [0x7fa2e0d34f73]
6: /lib64/libradosgw.so.2(+0x4b6a14) [0x7fa2e0d36a14]
7: /lib64/libradosgw.so.2(+0x4b6c7e) [0x7fa2e0d36c7e]
8: make_fcontext()
```

It was working fine on Nautilus, and I haven't tested Octopus.


Related issues 2 (0 open2 closed)

Copied to rgw - Backport #55499: quincy: Segfault when Open Policy Agent authorization is enabledResolvedActions
Copied to rgw - Backport #55500: pacific: Segfault when Open Policy Agent authorization is enabledResolvedActions
Actions #2

Updated by Casey Bodley about 2 years ago

  • Status changed from New to Fix Under Review
  • Tags set to opa
  • Backport set to pacific quincy
  • Pull request ID set to 45873
Actions #3

Updated by J. Eric Ivancich almost 2 years ago

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

Updated by Backport Bot almost 2 years ago

  • Copied to Backport #55499: quincy: Segfault when Open Policy Agent authorization is enabled added
Actions #5

Updated by Backport Bot almost 2 years ago

  • Copied to Backport #55500: pacific: Segfault when Open Policy Agent authorization is enabled added
Actions #6

Updated by Backport Bot over 1 year ago

  • Tags changed from opa to opa backport_processed
Actions #7

Updated by Konstantin Shalygin 5 months ago

  • Status changed from Pending Backport to Resolved
  • Assignee set to Benoît Knecht
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF