Project

General

Profile

Bug #42018

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

Added by Chang Liu about 1 year ago. Updated about 1 year ago.

Status:
Pending Backport
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:

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

Copied to Ceph - Backport #42134: nautilus: core in CryptoRandom::get_bytes(char*, int) Resolved
Copied to Ceph - Backport #42135: mimic: core in CryptoRandom::get_bytes(char*, int) New

History

#1 Updated by Kefu Chai about 1 year 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

#2 Updated by Kefu Chai about 1 year ago

  • Status changed from Fix Under Review to Pending Backport

#3 Updated by Nathan Cutler about 1 year ago

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

#4 Updated by Nathan Cutler about 1 year ago

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

Also available in: Atom PDF