1. 27 9月, 2006 1 次提交
  2. 02 5月, 2006 2 次提交
    • P
      [PATCH] uml: cleanup unprofile expression and build infrastructure · 7b12b913
      Paolo 'Blaisorblade' Giarrusso 提交于
      *) Rather than duplicate in various buggy ways the application of
         CFLAGS_NO_HARDENING and UNPROFILE (which apply to the same files),
         centralize it in Makefile.rules.  UNPROFILE_OBJS mustn't be listed in
         USER_OBJS but are compiled as such.
      
      I've also verified that unprofile didn't work in the current form, because we
      set _c_flags directly (using CFLAGS and not USER_CFLAGS, which is wrong),
      which is normally used by c_flags, but we also override c_flags for all
      USER_OBJS, and there we don't call unprofile.
      
      Instead it only worked for unmap.o, the only one which wasn't a USER_OBJ.
      
      We need to set c_flags (which is not a public Kbuild API) to clear a lot of
      compilation flags like -nostdinc which Kbuild forces on everything.
      
      *) Rather than $(CFLAGS_$(notdir $@)), which expands to CFLAGS_anObj.s when
         building "anObj.s", use $(CFLAGS_$(*F).o) which always accesses
         CFLAGS_anObj.o, like done by Kbuild.
      
      *) Make c_flags apply to all targets having the same basename, rather than
         listing .s, .i, .lst and .o, with the use (which I tested) of
      
      	$(USER_OBJS:.o=.%): c_flags = ...
      
      and of
      
       -      $(obj)/unmap.c: _c_flags = ...
       +      $(obj)/unmap.%: _c_flags = ...
      Signed-off-by: NPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
      Acked-by: NJeff Dike <jdike@addtoit.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      7b12b913
    • P
      [PATCH] uml: fix compilation and execution with hardened GCC · 275e6e1e
      Paolo 'Blaisorblade' Giarrusso 提交于
      To make some half-assembly stubs compile, disable various "hardened" GCC
      features:
      
      *) we can't make it build PIC code as we need %ebx to do syscalls and GCC
         wants it free for PIC
      
      *) we can't leave stack protection as the stub is moved (not relocated!) in
         memory so the RIP-relative access to the canary tries reading from an
         unmapped address and causes a segfault, since we move the stub of various
         megabytes (the exact amount will be decided at runtime) away from the
         link-time address.
      Signed-off-by: NPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
      Acked-by: NJeff Dike <jdike@addtoit.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      275e6e1e
  3. 19 1月, 2006 2 次提交
  4. 09 1月, 2006 1 次提交
  5. 29 9月, 2005 1 次提交
    • A
      [PATCH] uml makefiles sanitized · ecba97d4
      Al Viro 提交于
      UML makefiles sanitized:
       - number of generated headers reduced to 2 (from user-offsets.c and
         kernel-offsets.c resp.).  The rest is made constant and simply
         includes those two.
       - mk_... helpers are gone now that we don't need to generate these
         headers
       - arch/um/include2 removed since everything under arch/um/include/sysdep
         is constant now and symlink can point straight to source tree.
       - dependencies seriously simplified.
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      ecba97d4
  6. 05 9月, 2005 1 次提交
  7. 08 7月, 2005 1 次提交
    • B
      [PATCH] uml: Proper clone support for skas0 · 9786a8f3
      Bodo Stroesser 提交于
      This patch implements the clone-stub mechanism, which allows skas0 to run
      with proc_mm==0, even if the clib in UML uses modify_ldt.
      
      Note: There is a bug in skas3.v7 host patch, that avoids UML-skas from
      running properly on a SMP-box.  In full skas3, I never really saw problems,
      but in skas0 they showed up.
      
      More commentary by jdike - What this patch does is makes sure that the host
      parent of each new host process matches the UML parent of the corresponding
      UML process.  This ensures that any changed LDTs are inherited.  This is
      done by having clone actually called by the UML process from its stub,
      rather than by the kernel.  We have special syscall stubs that are loaded
      onto the stub code page because that code must be completely
      self-contained.  These stubs are given C interfaces, and used like normal C
      functions, but there are subtleties.  Principally, we have to be careful
      about stack variables in stub_clone_handler after the clone.  The code is
      written so that there aren't any - everything boils down to a fixed
      address.  If there were any locals, references to them after the clone
      would be wrong because the stack just changed.
      Signed-off-by: NBodo Stroesser <bstroesser@fujitsu-siemens.com>
      Signed-off-by: NJeff Dike <jdike@addtoit.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      9786a8f3
  8. 26 6月, 2005 1 次提交
  9. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4