Project

General

Profile

Actions

Bug #19089

closed

Ceph - Bug #17650: ceph daemons DUMPABLE flag is cleared by setuid preventing coredumps

rgw daemon's DUMPABLE flag is cleared by setuid preventing coredumps

Added by Brad Hubbard about 7 years ago. Updated about 7 years ago.

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

0%

Source:
Development
Tags:
Backport:
kraken,jewel
Regression:
Yes
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

#17650 resolved this issue for the MON and OSD daemons but rgw calls setuid later in its start-up via civetweb.

The following systemtap output demonstrates the problem.

# stap -e 'probe syscall.prctl{if($option == 0x4) printf("%d - %s: %s\n", gettimeofday_ns(), probefunc(), $$parms)} probe syscall.setuid{printf("%d - %s: %s\n", gettimeofday_ns(), probefunc(), $$parms)} probe begin{print(" 
Ready\n")}'
Ready
1488166162147405611 - SyS_prctl: option=0x4 arg2=0x1 arg3=0x7faa978de6d0 arg4=0x0 arg5=0x0
1488166162363667939 - sys_setuid: uid=0xa7
1488166162363713180 - sys_setuid: uid=0xa7
1488166162363722486 - sys_setuid: uid=0xa7
1488166162363730337 - sys_setuid: uid=0xa7
1488166162363737185 - sys_setuid: uid=0xa7
1488166162363743757 - sys_setuid: uid=0xa7
1488166162363750336 - sys_setuid: uid=0xa7
1488166162363756976 - sys_setuid: uid=0xa7
...
1488166162366314105 - sys_setuid: uid=0xa7
1488166162366325018 - sys_setuid: uid=0xa7
1488166162367751039 - sys_setuid: uid=0xa7
1488166162367765766 - sys_setuid: uid=0xa7
1488166162367776082 - sys_setuid: uid=0xa7
1488166162367867883 - sys_setuid: uid=0xa7

With the proposed patch we see instead.
# stap -e 'probe syscall.prctl{if($option == 0x4) printf("%d - %s: %s\n", gettimeofday_ns(), probefunc(), $$parms)} probe syscall.setuid{printf("%d - %s: %s\n", gettimeofday_ns(), probefunc(), $$parms)} probe begin{print(" 
Ready\n")}'
Ready
1488174612605606164 - SyS_prctl: option=0x4 arg2=0x1 arg3=0x7f57da0ec6d0 arg4=0x0 arg5=0x0
1488174612823412909 - sys_setuid: uid=0xa7
1488174612823428708 - sys_setuid: uid=0xa7
1488174612823437060 - sys_setuid: uid=0xa7
1488174612823443863 - sys_setuid: uid=0xa7
1488174612823450475 - sys_setuid: uid=0xa7
1488174612823456995 - sys_setuid: uid=0xa7
...
1488174612825472831 - sys_setuid: uid=0xa7
1488174612825482576 - sys_setuid: uid=0xa7
1488174612825489733 - sys_setuid: uid=0xa7
1488174612825901602 - sys_setuid: uid=0xa7
1488174612828522914 - SyS_prctl: option=0x4 arg2=0x1 arg3=0x1 arg4=0x7ffc09533ce8 arg5=0x0

Related issues 2 (0 open2 closed)

Copied to rgw - Backport #19147: kraken: rgw daemon's DUMPABLE flag is cleared by setuid preventing coredumpsResolvedNathan CutlerActions
Copied to rgw - Backport #19148: jewel: rgw daemon's DUMPABLE flag is cleared by setuid preventing coredumpsResolvedNathan CutlerActions
Actions #1

Updated by Brad Hubbard about 7 years ago

  • Status changed from New to In Progress
Actions #2

Updated by Brad Hubbard about 7 years ago

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

Updated by Brad Hubbard about 7 years ago

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

Updated by Nathan Cutler about 7 years ago

  • Copied to Backport #19147: kraken: rgw daemon's DUMPABLE flag is cleared by setuid preventing coredumps added
Actions #5

Updated by Nathan Cutler about 7 years ago

  • Copied to Backport #19148: jewel: rgw daemon's DUMPABLE flag is cleared by setuid preventing coredumps added
Actions #6

Updated by Nathan Cutler about 7 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF