Project

General

Profile

Actions

Bug #42018

closed

core in CryptoRandom::get_bytes(char*, int)

Added by Chang Liu over 4 years ago. Updated about 3 years ago.

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

0%

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

Description

```
/root/workspace/ceph/build/bin/ceph-authtool --create-keyring --gen-key --name=mon. /root/workspace/ceph/build/keyring --cap mon 'allow *'
creating /root/workspace/ceph/build/keyring
terminate called after throwing an instance of 'std::system_error'
what(): Function not implemented
```

the reason is that we use `check_symbol_exists(getentropy "unistd.h" HAVE_GETENTROPY)` to check whether kernel supports `getentropy` function.
actually in some case, `getentropy` function is declared in unistd.h but not implemented!


Related issues 2 (0 open2 closed)

Copied to Ceph - Backport #42134: nautilus: core in CryptoRandom::get_bytes(char*, int)ResolvedNathan CutlerActions
Copied to Ceph - Backport #42135: mimic: core in CryptoRandom::get_bytes(char*, int)RejectedActions
Actions #1

Updated by Kefu Chai over 4 years ago

  • Status changed from New to Fix Under Review
  • Assignee changed from Chang Liu to Kefu Chai
  • Backport set to mimic, nautilus
  • Pull request ID set to 30544
Actions #2

Updated by Kefu Chai over 4 years ago

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

Updated by Nathan Cutler over 4 years ago

  • Copied to Backport #42134: nautilus: core in CryptoRandom::get_bytes(char*, int) added
Actions #4

Updated by Nathan Cutler over 4 years ago

  • Copied to Backport #42135: mimic: core in CryptoRandom::get_bytes(char*, int) added
Actions #5

Updated by Nathan Cutler about 3 years ago

  • Status changed from Pending Backport to Resolved

While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved" or "Rejected".

Actions

Also available in: Atom PDF