Bug 491267 - kernel should be built with -fwrapv [rhel-4.9]
Summary: kernel should be built with -fwrapv [rhel-4.9]
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: kernel
Version: 4.9
Hardware: All
OS: Linux
urgent
high
Target Milestone: rc
: ---
Assignee: Vivek Goyal
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
Depends On:
Blocks: 583726
TreeView+ depends on / blocked
 
Reported: 2009-03-20 06:44 UTC by Eugene Teo (Security Response)
Modified: 2014-03-17 08:03 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-10-18 16:47:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Upstream patch (1.25 KB, patch)
2009-03-20 06:46 UTC, Eugene Teo (Security Response)
no flags Details | Diff

Description Eugene Teo (Security Response) 2009-03-20 06:44:53 UTC
Description of problem:
Add '-fwrapv' to gcc CFLAGS. This makes sure that gcc doesn't try to optimize
away wrapping arithmetic, which the kernel occasionally uses for overflow
testing, ie things like

if (ptr + offset < ptr)

which technically is undefined for non-unsigned types. See

http://bugzilla.kernel.org/show_bug.cgi?id=12597

for details.

Not all versions of gcc support it, so we need to make it conditional (it looks
like it was introduced in gcc-3.4).

Comment 4 RHEL Program Management 2009-03-30 15:45:14 UTC
Development Management has reviewed and declined this request.  You may appeal
this decision by reopening this request.

Comment 5 Eugene Teo (Security Response) 2009-05-20 05:41:52 UTC
(In reply to comment #4)
> Development Management has reviewed and declined this request.  You may appeal
> this decision by reopening this request.  

Reopened the bug. See https://bugzilla.redhat.com/show_bug.cgi?id=491266#c5.


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