redefinition of prctl_* on non glibc archs due to sys/prctl.h
Categories
(Core :: Security: Process Sandboxing, defect, P3)
Tracking
()
People
(Reporter: anarchy, Assigned: gcp)
Details
Attachments
(2 files, 1 obsolete file)
823 bytes,
patch
|
Details | Diff | Splinter Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review |
There is no reason we can not just use sys/prctl.h instead of linux/prctl.h
glibc's header already has the include handled via sys/prctl.h and musl has an almost identifical copy of the linux/prctl.h with a very few modifications.
![]() |
||
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
Assignee | ||
Comment 2•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Comment 4•6 years ago
|
||
bugherder |
Reporter | ||
Comment 5•6 years ago
|
||
Gian-Carlo Pascutto any reason you felt the need to take credit for the patch when it was a duplicate patch just added to the fabricator? Well I do not need the credit for the fix, it is nice to ensure the proper users are getting credit for their contributions to the project.
Also do you see any reason we should not request this to land on mozilla-beta? There are quiet a few linux distros that are using musl now days.
Reporter | ||
Comment 6•6 years ago
|
||
[Tracking Requested - why for this release]:
Updated•6 years ago
|
Assignee | ||
Comment 7•6 years ago
•
|
||
Gian-Carlo Pascutto any reason you felt the need to take credit for the patch when it was a duplicate patch just added to the fabricator? Well I do not need the credit for the fix, it is nice to ensure the proper users are getting credit for their contributions to the project.
I agree! Your patch doesn't have the author field set and it looks that when I re-uploaded it into Phrabricator, Mercurial took a guess at it and tried to fill in the blanks: https://bug1555589.bmoattachments.org/attachment.cgi?id=9068623
You can put a section like this in your .hgrc:
[ui]
username = Jory A. Pratt <anarchy@gentoo.org>
Assignee | ||
Comment 8•6 years ago
|
||
Also do you see any reason we should not request this to land on mozilla-beta? There are quiet a few linux distros that are using musl now days.
Sounds fine by me. Let me see if I can re-mangle that patch to have you as the author and I'll submit the request.
Assignee | ||
Comment 9•6 years ago
|
||
Assignee | ||
Comment 10•6 years ago
|
||
Let me see if I can re-mangle that patch to have you as the author and I'll submit the request.
This hit bug 1538151 so we'll need to wait till jld re-approves.
Reporter | ||
Comment 11•6 years ago
•
|
||
(In reply to Gian-Carlo Pascutto [:gcp] from comment #7)
You can put a section like this in your .hgrc:
[ui]
username = Jory A. Pratt <anarchy@gentoo.org>
Appears upstream has moved to requiring -U be passed for currentuser to be added properly. Sorry for the noise. I have found the problem on my end and will adjust with an alias. I am looking at what all I need to do for fabricator submission now.
Assignee | ||
Comment 12•6 years ago
|
||
Comment on attachment 9070210 [details]
Bug 1555589 - Include sys/prctl.h not linux/prctl.h. rs=jld
Beta/Release Uplift Approval Request
- User impact if declined: Build failure on various Linux distributions
- Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): No expected functional impact.
- String changes made/needed:
Comment 13•6 years ago
|
||
Comment on attachment 9070210 [details]
Bug 1555589 - Include sys/prctl.h not linux/prctl.h. rs=jld
build fix for musl libc, approved for 68.0b9
Comment 14•6 years ago
|
||
bugherder uplift |
Assignee | ||
Comment 15•6 years ago
|
||
Not sure if releng pulled the beta fix from the nightly tree instead of from Phabricator, or something again clobbered the author field, but beta also landed with the wrong author attribution. Sorry about that.
Updated•6 years ago
|
Description
•