Bug 456175
Summary: | ptrace: PTRACE_SINGLEBLOCK crashes i586 (as not having DEBUGCTLMSR=0x1d9) | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jan Kratochvil <jan.kratochvil> |
Component: | kernel | Assignee: | Roland McGrath <roland> |
Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 9 | CC: | kernel-maint |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i586 | ||
OS: | Linux | ||
URL: | http://sources.redhat.com/cgi-bin/cvsweb.cgi/~checkout~/tests/ptrace-tests/tests/block-step.c?cvsroot=systemtap | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2008-07-22 12:19:59 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jan Kratochvil
2008-07-21 22:21:01 UTC
There is no x86-64 hardware without debugctlmsr, so that is just a kvm issue. All that crash output is just a red herring wholly unrelated to this bug. It's rather confusing to have that output from an entirely unrelated kernel in the same initial report with the cpuinfo from a real i586 case where the real problem exists. The existing code (now upstream) checks >= 6 against the same number that's shown in "cpu family". So that check would not let the K6 try it, and PTRACE_SINGLEBLOCK would get EIO. The model check is compiled away by CONFIG_X86_DEBUGCTLMSR. For the i586 kernel where this problem actually happens, check if its .config got this. If so, the fix is to consult upstream with what the right set of kconfig dependencies to use for CONFIG_X86_DEBUGCTLMSR is. i586 .config does not have CONFIG_X86_DEBUGCTLMSR set, here's why: config X86_DEBUGCTLMSR def_bool y depends on !(M586MMX || M586TSC || M586 || M486 || M386) Kconfig.cpu fix posted upstream: http://marc.info/?l=linux-kernel&m=121672860614868 Just it does not fix the KVM debugctlmsr Bug 437028 (which was my original intention). I tested the patch and I confirm that it fixes the crash. |