Project

General

Profile

Bug #19089

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 9 months ago. Updated 7 months ago.

Status:
Resolved
Priority:
High
Assignee:
Target version:
-
Start date:
02/27/2017
Due date:
% Done:

0%

Source:
Development
Tags:
Backport:
kraken,jewel
Regression:
Yes
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Release:
Needs Doc:
No

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

Copied to rgw - Backport #19147: kraken: rgw daemon's DUMPABLE flag is cleared by setuid preventing coredumps Resolved
Copied to rgw - Backport #19148: jewel: rgw daemon's DUMPABLE flag is cleared by setuid preventing coredumps Resolved

History

#1 Updated by Brad Hubbard 9 months ago

  • Status changed from New to In Progress

#2 Updated by Brad Hubbard 9 months ago

  • Status changed from In Progress to Need Review

#3 Updated by Brad Hubbard 9 months ago

  • Status changed from Need Review to Pending Backport

#4 Updated by Nathan Cutler 9 months ago

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

#5 Updated by Nathan Cutler 9 months ago

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

#6 Updated by Nathan Cutler 7 months ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF