Bug 633448

Summary: [6.1 FEAT] makedumpfile support - convert Linux on z dumps to ELF - binutils part
Product: Red Hat Enterprise Linux 6 Reporter: IBM Bug Proxy <bugproxy>
Component: binutilsAssignee: Andreas Schwab <schwab>
Status: CLOSED ERRATA QA Contact: qe-baseos-tools-bugs
Severity: high Docs Contact:
Priority: high    
Version: 6.1CC: cward, gmuelas, jan.kratochvil, jjarvis, mnowak, nobody+PNT0273897, pmuller, sbest, snagar
Target Milestone: betaKeywords: FutureFeature, OtherQA
Target Release: 6.1   
Hardware: s390x   
OS: All   
Whiteboard:
Fixed In Version: binutils-2.20.51.0.2-5.13.el6 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 13:41:01 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:
Bug Depends On:    
Bug Blocks: 538808, 580566, 633869    
Attachments:
Description Flags
binutils-2.20.51.0.2-5.11-s390-add-elf-notes.patch none

Description IBM Bug Proxy 2010-09-13 19:10:58 UTC
1. Feature Overview:
Feature Id: [67046]
a. Name of Feature: [6.1 FEAT] makedumpfile support - convert Linux on z dumps to ELF - binutils part
b. Feature Description
This feature allows to convert s390 format dumps into ELF format dumps. This is needed in order to
be able to use makedumpfile tool. This feature has different parts needed and tracked in different
feature depending on the affected component (kernel, binutils, crash, s390-tools).

The port of makedumfile to s390 is tracked by a different feature.

This concrete feature provides the binutils part:
The already defined PRSTATUS ELF core section contains only general purpose and access registers and
the program status word. There are additional registers like control registers or the TOD register
that should be stored in a separate ELF header. For that purpose new ELF notes in the binutils
(include/elf/common.h) and the corresponding data structures must be defined. 

For using this feature the installation of an updated binutils package is not mandatory, because
only the numbers of the new note sections are defined there and the "readelf" tool (-n option) and
"objdump" tool (-s option) will be updated for printing the the new sections. If a user runs the old
binutils package, the only impact will be that "readelf" will print "unknown" for the new sections.


2. Feature Details:
Sponsor: LTC zSeries BOE
Architectures:   zSeries - 64 native, 

Arch Specificity: purely arch specific code
Affects Kernel Modules: Field does not exist
Delivery Mechanism: Backport
Category: other
Request Type: Toolchain - Enhancement from IBM
d. Upstream Acceptance: Field does not exist
Sponsor Priority P2
f. Severity: high
IBM Confidential: No
Code Contribution: IBM code
g. Component Version Target:---

3. Business Case
The memory footprints of Linux on System z systems grow from year to year and therefore also system
dumps become sometimes so large that it is hard to work with them. For example transferring a 50 GB
dump over the network to a service organization can take a very long time.
The "makedumpfile" open source tool is used to compress system dumps by filtering out memory pages
like free, user space or cache pages that are not necessary for dump analysis.

This feature will improve and remove possible future restrictions in service, by enabling the
infrastructure needed to be able to use makedumfile on Linux on System z. 

4. Primary contact at Red Hat:
John Jarvis jjarvis

5. Primary contacts at Partner:
Project Management Contact:
Hans-Georg Markgraf, mgrf.com

Technical contact(s):
Gonzalo Muelas Serrano, gmuelas.com

Comment 2 John Jarvis 2010-09-21 17:27:40 UTC
Will this be needed even if we do the rebase to binutils requested in BZ 633574 ?

Comment 3 Gonzalo Muelas Serrano 2010-09-22 14:28:03 UTC
The minimum binutils version including this feature is: binutils 2.20.51.0.7
So if the rebase asked in Bug 633574 (>=2.21) is done, there is no need for IBM to provide a backport for this feature.

Please let us know if you are rebasing binutils to inform the developers asap not to do the backport (they will start quite soon).

Thank you!

Comment 4 IBM Bug Proxy 2010-10-04 15:17:35 UTC
------- Comment From rsisk.com 2010-10-04 10:36 EDT-------
Code Upstream Status: Accepted

Comment 5 John Jarvis 2010-11-22 18:12:56 UTC
There are no plans to rebase binutils in RHEL 6.1, please proceed with
backports for RHBZs 631540, 633377 and 633448.

Comment 7 John Jarvis 2010-11-24 16:43:18 UTC
IBM is signed up to test and provide feedback, setting OtherQA.

Comment 8 IBM Bug Proxy 2010-11-29 16:02:49 UTC
Created attachment 463523 [details]
binutils-2.20.51.0.2-5.11-s390-add-elf-notes.patch


------- Comment on attachment From michael.holzheu.com 2010-11-29 10:58 EDT-------


binutils: Add new ELF core dump notes sections for extra s390 registers

For s390 ELF core dumps currently only the PSW, the general purpose registers,
and access registers are stored in the PRSTATUS notes section. For analyzing
s390 kernel problems additional registers are important. In order to be able
to include these registers to kernel ELF core dumps, this patch adds the
following five new note sections:

* NT_S390_TIMER:   S390 timer
* NT_S390_TODCMP:  S390 TOD comparator register
* NT_S390_TODPREG: S390 TOD programmable register
* NT_S390_CTRS:    S390 control registers
* NT_S390_PREFIX:  S390 prefix register

Comment 9 John Jarvis 2010-11-30 19:45:47 UTC
This enhancement request was evaluated by the full Red Hat Enterprise Linux 
team for inclusion in a Red Hat Enterprise Linux minor release.   As a 
result of this evaluation, Red Hat has tentatively approved inclusion of 
this feature in the next Red Hat Enterprise Linux Update minor release.   
While it is a goal to include this enhancement in the next minor release 
of Red Hat Enterprise Linux, the enhancement is not yet committed for 
inclusion in the next minor release pending the next phase of actual 
code integration and successful Red Hat and partner testing.

Comment 12 IBM Bug Proxy 2011-04-05 06:31:50 UTC
------- Comment From mgrf.com 2011-04-05 02:20 EDT-------
Verified on r 6.1 snapshots - set to verified   Thanks

Comment 13 Chris Ward 2011-04-06 11:03:14 UTC
~~ Partners and Customers ~~

This bug was included in RHEL 6.1 Beta. Please confirm the status of this request as soon as possible.

If you're having problems accessing 6.1 bits, are delayed in your test execution or find in testing that the request was not addressed adequately, please let us know.

Thanks!

Comment 18 John Jarvis 2011-05-04 13:28:48 UTC
From mail:

FYI:  
Test completed the test for the features impacted by binutils against snap5.
They haven't found any issue with the new binutils and the features work as expected with this new version.

Affected and retested features:
  66878 - RHBZ 631540  z196 exploitation in toolchain - binutils
  67046 - RHBZ 633448  makedumpfile support - convert Linux on z dumps to ELF - binutils part

Comment 19 errata-xmlrpc 2011-05-19 13:41:01 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0614.html