Skip to contentSkip to conversation

New: redefined error in 2.6.32-279.22.1.el6.x86_64 kernel

Bug 55971 [email protected] 1 participant 5 messages Mar 30, 2013 – Apr 3, 2013

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=55971

           Summary: redefined error in 2.6.32-279.22.1.el6.x86_64 kernel
           Product: Backports project
           Version: unspecified
    Kernel Version: 2.6.32-279.22.1.el6.x86_64
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Compat
        AssignedTo: [email protected]
        ReportedBy: [email protected]
        Regression: No

Since RHEL6.3's security updated kernel (2.6.32-279.22.1.el6.x86_64) has included two macros (rcu_dereference_protected and kfree_rcu) in include/linux/rcupdate.h

These were not existed in original RHEL6.3's kernel (2.6.32-279) and even the previous kernel of 2.6.32-279.22.1.el6.x86_64.

The other hand, these macros are defined in include/linux/compat-x.z.h. (rcu_dereference_protected in compat-2.6.34.h and kfree_rcu in compat-3.0.h).

It needs to check in compat headers wether these macro are defined or not, doesn't it now? otherwise we see redefined error if both kernel header and compat headers are included for the souce codes..

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#1 lore raw

[Bug 55971] redefined error in 2.6.32-279.22.1.el6.x86_64 kernel

https://bugzilla.kernel.org/show_bug.cgi?id=55971

--- Comment #1 from [email protected] 2013-03-31 00:58:00 ---

Quoted 3 lines

It needs to check in compat headers wether these macro are defined or not, doesn't it now? otherwise we see redefined error if both kernel header and compat headers are included for the souce codes..

oops.. typo s/wether/whether/

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#2 lore raw

[Bug 55971] redefined error in 2.6.32-279.22.1.el6.x86_64 kernel

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=55971

--- Comment #2 from Andy Gospodarek <[email protected]> 2013-04-03 14:31:26 --- This should be pretty easy to fix. I'll fire up a RHEL6.3 host with the latest kernel and verify a fix.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#3 lore raw

[Bug 55971] redefined error in 2.6.32-279.22.1.el6.x86_64 kernel

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=55971

--- Comment #3 from Andy Gospodarek <[email protected]> 2013-04-03 21:15:49 --- Created an attachment (id=97241)
--> (https://bugzilla.kernel.org/attachment.cgi?id=97241)
Initial fix for 6.3 update kernel

This has not been tested other than to be sure it compiles. I'll post to the list once I receive confirmation that it works for the reporter.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#4 lore raw

[Bug 55971] redefined error in 2.6.32-279.22.1.el6.x86_64 kernel

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=55971

Andy Gospodarek <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|[email protected] |[email protected]

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.