Skip to content

Fix _dt_sigsegv_handler when PTRACE restrictions are active (yama)#716

Merged
LebedevRI merged 1 commit intodarktable-org:masterfrom
LebedevRI:fix-sigsegv-handler-when-yama
Oct 26, 2014
Merged

Fix _dt_sigsegv_handler when PTRACE restrictions are active (yama)#716
LebedevRI merged 1 commit intodarktable-org:masterfrom
LebedevRI:fix-sigsegv-handler-when-yama

Conversation

@LebedevRI
Copy link
Copy Markdown
Member

Starting with Ubuntu 10.10, PTRACE is limited to only direct descendants.

It is controlled by /proc/sys/kernel/yama/ptrace_scope

  • if it is 0, then it is not needed
  • if it is 1, then this IS needed
  • else there is nothing we can do (no bt will be made)

FIXME: do we need to make child wait until prctl returns in main process?

Based on:
https://bugs.kde.org/show_bug.cgi?id=245529
https://breakpad.appspot.com/166001
https://wiki.ubuntu.com/Security/Features#ptrace

Starting with Ubuntu 10.10, PTRACE is limited to only direct descendants.

It is controlled by /proc/sys/kernel/yama/ptrace_scope
* if it is 0, then it is not needed
* if it is 1, then this IS needed
* else there is nothing we can do (no bt will be made)

FIXME: do we need to make child wait until prctl returns in main process?

Based on:
https://bugs.kde.org/show_bug.cgi?id=245529
https://breakpad.appspot.com/166001
https://wiki.ubuntu.com/Security/Features#ptrace
LebedevRI added a commit that referenced this pull request Oct 26, 2014
Fix _dt_sigsegv_handler when PTRACE restrictions are active (yama)
@LebedevRI LebedevRI merged commit 3d74b69 into darktable-org:master Oct 26, 2014
@LebedevRI LebedevRI deleted the fix-sigsegv-handler-when-yama branch October 26, 2014 17:29
@LebedevRI LebedevRI modified the milestone: 1.5 Oct 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant