Actions
Bug #19089
closedCeph - Bug #17650: ceph daemons DUMPABLE flag is cleared by setuid preventing coredumps
rgw daemon's DUMPABLE flag is cleared by setuid preventing coredumps
% 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
Updated by Brad Hubbard about 7 years ago
- Status changed from New to In Progress
Updated by Brad Hubbard about 7 years ago
- Status changed from In Progress to Fix Under Review
Updated by Brad Hubbard about 7 years ago
- Status changed from Fix Under Review to Pending Backport
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
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
Updated by Nathan Cutler about 7 years ago
- Status changed from Pending Backport to Resolved
Actions