Bug 1608824
Summary: | valgrind: arch_prctl aborts process for unknown flags (seen with ARCH_CET_STATUS) | |||
---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Florian Weimer <fweimer> | |
Component: | valgrind | Assignee: | Mark Wielaard <mjw> | |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | |
Severity: | unspecified | Docs Contact: | ||
Priority: | unspecified | |||
Version: | rawhide | CC: | dodji, jakub, mjw | |
Target Milestone: | --- | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | valgrind-3.13.0-22.fc29 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1608826 (view as bug list) | Environment: | ||
Last Closed: | 2018-07-27 15:35:38 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1608826, 1654309 |
Description
Florian Weimer
2018-07-26 10:49:15 UTC
Is there a reason why arch_prctl cannot be passed to the kernel, or at least made to fail with ENOSYS? (In reply to Florian Weimer from comment #1) > Is there a reason why arch_prctl cannot be passed to the kernel, or at least > made to fail with ENOSYS? The correct way seems to be to return EINVAL (code is not a valid subcommand). Would that be helpful? I mean of course, return -1 and set errno to EINVAL. (In reply to Mark Wielaard from comment #2) > (In reply to Florian Weimer from comment #1) > > Is there a reason why arch_prctl cannot be passed to the kernel, or at least > > made to fail with ENOSYS? > > The correct way seems to be to return EINVAL (code is not a valid > subcommand). Would that be helpful? Any results that is not zero will do. An EINVAL error is okay as well. FWIW, glibc says that 0x3001 is the value of ARCH_CET_STATUS. valgrind-3.13.0-22.fc29 should have fixed this. * Thu Jul 26 2018 Mark Wielaard <mjw> - 3.13.0-22 - Add valgrind-3.13.0-arch_prctl.patch (#1608824) But the /bin/true check fails on ppc64, ppc64le, s390x and armh7l. aarch64, x86_64 and i686 build fine. https://koji.fedoraproject.org/koji/taskinfo?taskID=28624474 There isn't enough information in the build.log to understand what is going wrong on those architectures. Turned out the issue from comment #6 was a buggy binutils. Which has been fixed. And valgrind has been rebuild. |