- 17 Aug, 2009 1 commit
-
-
Greg Kroah-Hartman authored
-
- 16 Aug, 2009 1 commit
-
-
Greg Kroah-Hartman authored
-
- 30 Jul, 2009 1 commit
-
-
Greg Kroah-Hartman authored
-
- 24 Jul, 2009 1 commit
-
-
Greg Kroah-Hartman authored
-
- 20 Jul, 2009 3 commits
-
-
Greg Kroah-Hartman authored
-
Linus Torvalds authored
commit a137802e upstream. This causes kernel images that don't run init to completion with certain broken gcc versions. This fixes kernel bugzilla entry: http://bugzilla.kernel.org/show_bug.cgi?id=13012 I suspect the gcc problem is this: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28230 Fix the problem by using the -fno-strict-overflow flag instead, which not only does not exist in the known-to-be-broken versions of gcc (it was introduced later than fwrapv), but seems to be much less disturbing to gcc too: the difference in the generated code by -fno-strict-overflow are smaller (compared to using neither flag) than when using -fwrapv. Reported-by:
Barry K. Nathan <barryn@pobox.com> Pushed-by:
Frans Pop <elendil@planet.nl> Cc: Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by:
Greg Kroah-Hartman <gregkh@suse.de>
-
Eugene Teo authored
commit a3ca86ae upstream. Turning on this flag could prevent the compiler from optimising away some "useless" checks for null pointers. Such bugs can sometimes become exploitable at compile time because of the -O2 optimisation. See http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Optimize-Options.html An example that clearly shows this 'problem' is commit 6bf67672 . static void __devexit agnx_pci_remove(struct pci_dev *pdev) { struct ieee80211_hw *dev = pci_get_drvdata(pdev); - struct agnx_priv *priv = dev->priv; + struct agnx_priv *priv; AGNX_TRACE; if (!dev) return; + priv = dev->priv; By reverting this patch, and compile it with and without -fno-delete-null-pointer-checks flag, we can see that the check for dev is compiled away. call printk # - testq %r12, %r12 # dev - je .L94 #, movq %r12, %rdi # dev, Clearly the 'fix' is to stop using dev before it is tested, but building with -fno-delete-null-pointer-checks flag at least makes it harder to abuse. Signed-off-by:
Eugene Teo <eugeneteo@kernel.sg> Acked-by:
Eric Paris <eparis@redhat.com> Acked-by:
Wang Cong <amwang@redhat.com> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by:
Greg Kroah-Hartman <gregkh@suse.de>
-
- 02 Jul, 2009 1 commit
-
-
Greg Kroah-Hartman authored
-
- 12 Jun, 2009 1 commit
-
-
Greg Kroah-Hartman authored
-
- 20 May, 2009 1 commit
-
-
Greg Kroah-Hartman authored
-
- 08 May, 2009 1 commit
-
-
Greg Kroah-Hartman authored
-
- 02 May, 2009 1 commit
-
-
Greg Kroah-Hartman authored
-
- 23 Mar, 2009 3 commits
-
-
Greg Kroah-Hartman authored
-
Linus Torvalds authored
commit d0115552 upstream. Sam Ravnborg says: "We have several architectures that plays strange games with $(CC) and $(CROSS_COMPILE). So we need to postpone any use of $(call cc-option..) until we have included the arch specific Makefile so we try with the correct $(CC) version." Requested-by:
Sam Ravnborg <sam@ravnborg.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by:
Greg Kroah-Hartman <gregkh@suse.de>
-
Linus Torvalds authored
commit 68df3755 upstream. 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). Reminded-by:
Alan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by:
Greg Kroah-Hartman <gregkh@suse.de>
-
- 17 Mar, 2009 1 commit
-
-
Greg Kroah-Hartman authored
-
- 20 Feb, 2009 1 commit
-
-
Greg Kroah-Hartman authored
-
- 17 Feb, 2009 1 commit
-
-
Greg Kroah-Hartman authored
-
- 13 Feb, 2009 1 commit
-
-
Greg Kroah-Hartman authored
-
- 12 Feb, 2009 1 commit
-
-
Greg Kroah-Hartman authored
-
- 06 Feb, 2009 1 commit
-
-
Greg Kroah-Hartman authored
-
- 02 Feb, 2009 1 commit
-
-
Greg Kroah-Hartman authored
-
- 25 Jan, 2009 1 commit
-
-
Greg Kroah-Hartman authored
-
- 18 Jan, 2009 1 commit
-
-
Greg Kroah-Hartman authored
-
- 14 Jan, 2009 1 commit
-
-
Greg Kroah-Hartman authored
-
- 18 Dec, 2008 1 commit
-
-
Greg Kroah-Hartman authored
-
- 13 Dec, 2008 1 commit
-
-
Greg Kroah-Hartman authored
-
- 05 Dec, 2008 1 commit
-
-
Greg Kroah-Hartman authored
-
- 20 Nov, 2008 1 commit
-
-
Greg Kroah-Hartman authored
-
- 13 Nov, 2008 1 commit
-
-
Greg Kroah-Hartman authored
-
- 07 Nov, 2008 1 commit
-
-
Greg Kroah-Hartman authored
-
- 25 Oct, 2008 1 commit
-
-
Greg Kroah-Hartman authored
-
- 22 Oct, 2008 1 commit
-
-
Greg Kroah-Hartman authored
-
- 18 Oct, 2008 1 commit
-
-
Greg Kroah-Hartman authored
-
- 15 Oct, 2008 1 commit
-
-
Greg Kroah-Hartman authored
-
- 09 Oct, 2008 1 commit
-
-
Linus Torvalds authored
-
- 06 Oct, 2008 1 commit
-
-
Linus Torvalds authored
-
- 29 Sep, 2008 1 commit
-
-
Linus Torvalds authored
-
- 21 Sep, 2008 1 commit
-
-
Linus Torvalds authored
-
- 09 Sep, 2008 1 commit
-
-
Linus Torvalds authored
-