1. 22 Jul, 2008 1 commit
    • Mathieu Desnoyers's avatar
      markers: fix duplicate modpost entry · d35cb360
      Mathieu Desnoyers authored
      When a kernel was rebuilt, the previous Module.markers was not cleared.
      It caused markers with different format strings to appear as duplicates
      when a markers was changed.  This problem is present since
      scripts/mod/modpost.c started to generate Module.markers, commit
      b2e3e658
      
      
      
      It therefore applies to 2.6.25, 2.6.26 and linux-next.
      
      I merely merged the patches from Roland, Wenji and Takashi here.
      
      Credits to
      Roland McGrath <roland@redhat.com>
      Wenji Huang <wenji.huang@oracle.com>
      and
      Takashi Nishiie <t-nishiie@np.css.fujitsu.com>
      
      for providing the individual fixes.
      
      - Changelog :
        - Integrated Takashi's Makefile modification to clear Module.markers upon
          make clean.
      Signed-off-by: default avatarMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
      Cc: Roland McGrath <roland@redhat.com>
      Cc: Wenji Huang <wenji.huang@oracle.com>
      Cc: Takashi Nishiie <t-nishiie@np.css.fujitsu.com>
      Cc: <stable@kernel.org>		[2.6.25.x, 2.6.26.x]
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      d35cb360
  2. 17 Jul, 2008 1 commit
  3. 16 Jul, 2008 1 commit
    • Ralf Baechle's avatar
      Fix MIPS cross-compile problem · bef5b54b
      Ralf Baechle authored
      Crosscompiling on a Fedora 9 machine running gcc 4.3.0 as its host compiler
      and gcc 3.4.6 for the mips-linux target results in the following build
      error:
      
      $ make malta_defconfig
      $ make
      cc1: error: unrecognized command line option "-fno-stack-protector"
      scripts/kconfig/conf -s arch/mips/Kconfig
      cc1: error: unrecognized command line option "-fno-stack-protector"
      
      The arch Makefile is included too late so the host compiler is feature
      tested, not the crosscompiler as intended and thus the Makefile applies
      adds -fno-stack-protector to crosscompiler's flags which fails for gcc
      3.4.6.  The bug was introduced by e06b8b98
      in 2.6.25; 35bb5b1e
      
       did add more flags
      testing before the arch Makefile inclusion.
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      bef5b54b
  4. 13 Jul, 2008 1 commit
  5. 12 Jul, 2008 1 commit
  6. 10 Jul, 2008 2 commits
  7. 05 Jul, 2008 1 commit
  8. 24 Jun, 2008 1 commit
  9. 20 Jun, 2008 1 commit
  10. 12 Jun, 2008 1 commit
  11. 04 Jun, 2008 1 commit
  12. 26 May, 2008 1 commit
  13. 23 May, 2008 1 commit
  14. 19 May, 2008 1 commit
  15. 18 May, 2008 1 commit
  16. 11 May, 2008 2 commits
  17. 03 May, 2008 1 commit
  18. 01 May, 2008 1 commit
  19. 28 Apr, 2008 2 commits
  20. 25 Apr, 2008 3 commits
  21. 24 Apr, 2008 2 commits
  22. 21 Apr, 2008 1 commit
  23. 16 Apr, 2008 1 commit
  24. 11 Apr, 2008 1 commit
  25. 01 Apr, 2008 1 commit
  26. 25 Mar, 2008 1 commit
  27. 23 Mar, 2008 1 commit
  28. 16 Mar, 2008 1 commit
  29. 10 Mar, 2008 1 commit
  30. 04 Mar, 2008 1 commit
  31. 24 Feb, 2008 1 commit
  32. 15 Feb, 2008 1 commit
  33. 14 Feb, 2008 2 commits
    • Sam Ravnborg's avatar
      kbuild: fix building vmlinux.o · cf87dcd1
      Sam Ravnborg authored
      
      Ingo Molnar wrote:
      >
      > i've got a build log from a weird build error below:
      >
      >   LD      init/built-in.o
      > distcc[12023] ERROR: compile (null) on localhost failed
      > make: *** [vmlinux.o] Error 1
      > make: *** Waiting for unfinished jobs....
      >   LD      .tmp_vmlinux1
      >
      
      Building vmlinux.o were moved up in the dependency chain so we started
      to build it before the kallsym stuff. This was done to let modpost
      report section mismatch bugs even when the final link failed.
      
      Originally I had expected the dependency of $(kallsyms.o) to
      cover this but it turns out that we need to be even more explicit.
      Fix this by adding a conditional dependency on firat target
      used in the kallsyms serie of builds.
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Roland McGrath <roland@redhat.com>
      cf87dcd1
    • Sam Ravnborg's avatar
      kbuild: allow -fstack-protector to take effect · e06b8b98
      Sam Ravnborg authored
      
      Arjan van de Ven <arjan@infradead.org> wrote:
      ===
      I just read the excellent LWN writeup of the vmsplice
      security thing, and that got me wondering why this attack
      wasn't stopped by the CONFIG_CC_STACKPROTECTOR option...
      because it plain should have been...
      
      Some analysis later.. it turns out that the following line
      in the top level Makefile, added by you in October 2007,
      entirely disables CONFIG_CC_STACKPROTECTOR ;(
      With this line removed the exploit will be nicely stopped.
      
      CFLAGS          += $(call cc-option, -fno-stack-protector)
      
      Now I realize that certain distros have patched gcc to
      compensate for their lack of distro wide CFLAGS, and it's
      great to work around that... but would there be a way to NOT
      disable this for CONFIG_CC_STACKPROTECTOR please?
      It would have made this exploit not possible for those kernels
      that enable this feature (and that includes distros like Fedora)
      ===
      
      Move the assignment to KBUILD_CFLAGS up before including
      the arch specific Makefile so arch makefiles may override
      the setting.
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      Cc: Arjan van de Ven <arjan@infradead.org>
      Cc: stable@kernel.org
      e06b8b98