Bug 672844 - section mismatch due to wrong annotation of hugetlb_sysfs_add_hstate()
Summary: section mismatch due to wrong annotation of hugetlb_sysfs_add_hstate()
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: kernel
Version: 6.1
Hardware: All
OS: All
high
high
Target Milestone: rc
: ---
Assignee: Dean Nelson
QA Contact: Caspar Zhang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-26 15:20 UTC by Dean Nelson
Modified: 2013-07-03 07:28 UTC (History)
2 users (show)

Fixed In Version: kernel-2.6.32-112.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-23 20:39:02 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:0542 0 normal SHIPPED_LIVE Important: Red Hat Enterprise Linux 6.1 kernel security, bug fix and enhancement update 2011-05-19 11:58:07 UTC

Description Dean Nelson 2011-01-26 15:20:58 UTC
Since the recent setting of CONFIG_DEBUG_SECTION_MISMATCH to 'y', builds of RHEL6.1 are seeing the following warning message:

  WARNING: mm/built-in.o(.text+0x405c0): Section mismatch in reference from the function hugetlb_register_node() to the function .init.text:hugetlb_sysfs_add_hstate()
  The function hugetlb_register_node() references
  the function __init hugetlb_sysfs_add_hstate().
  This is often because hugetlb_register_node lacks a __init
  annotation or the annotation of hugetlb_sysfs_add_hstate is wrong.

It turns out that the annotation of hugetlb_sysfs_add_hstate() is wrong. And can be corrected by backporting the following linux-2.6 commit:

  commit 094e9539bd24bbe23b8e2741e903b0f3f1f85b03
  Author: Jeff Mahoney <jeffm>
  Date:   Tue Feb 2 13:44:14 2010 -0800
      hugetlb: fix section mismatches

Comment 1 RHEL Program Management 2011-01-26 15:30:53 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux maintenance release. Product Management has 
requested further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed 
products. This request is not yet committed for inclusion in an Update release.

Comment 3 Aristeu Rozanski 2011-02-03 19:06:26 UTC
Patch(es) available on kernel-2.6.32-112.el6

Comment 6 Caspar Zhang 2011-03-18 10:24:41 UTC
Tested with kernel-2.6.32-124.el6.src.rpm, the section mismatch was gone.

Move to "VERIFIED"

Comment 7 errata-xmlrpc 2011-05-23 20:39:02 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/RHSA-2011-0542.html


Note You need to log in before you can comment on or make changes to this bug.