Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Mar 2009 08:07:36 +0000 (UTC)
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/amd64/amd64 elf_machdep.c src/sys/amd64/linux32 linux32_sysvec.c src/sys/arm/arm elf_machdep.c src/sys/compat/ia32 ia32_sysvec.c src/sys/compat/svr4 svr4_sysvec.c src/sys/i386/i386 elf_machdep.c src/sys/i386/linux linux_sysvec.c src/sys/ia64/ia64 ...
Message-ID:  <200903290808.n2T88IqY092546@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
dchagin     2009-03-29 08:07:36 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_7)
    sys/amd64/amd64      elf_machdep.c 
    sys/amd64/linux32    linux32_sysvec.c 
    sys/arm/arm          elf_machdep.c 
    sys/compat/ia32      ia32_sysvec.c 
    sys/compat/svr4      svr4_sysvec.c 
    sys/i386/i386        elf_machdep.c 
    sys/i386/linux       linux_sysvec.c 
    sys/ia64/ia64        elf_machdep.c 
    sys/kern             imgact_elf.c 
    sys/powerpc/powerpc  elf_machdep.c 
    sys/sparc64/sparc64  elf_machdep.c 
    sys/sys              imgact_elf.h 
  Log:
  SVN rev 190520 on 2009-03-29 08:07:36Z by dchagin
  
  Merge from head to stable/7:
  
  r189771:
  Implement new way of branding ELF binaries by looking to a
  ".note.ABI-tag" section.
  
  The search order of a brand is changed, now first of all the
  ".note.ABI-tag" is looked through.
  
  Move code which fetch osreldate for ELF binary to check_note() handler.
  
  r189919:
  Use the properly sized types for ELF object header and program headers.
  This fixes osrel fetching from the FreeBSD branding note for the 64bit
  platforms (bug introduced by r189771).
  
  r190264:
  Fix several issues with parsing the notes for ELF objects.
  
  Badly formed ELF note may cause the caclulated pointer to the next note
  to point both after the note region, that was checked in the code, but
  also to point before the region, that was not checked [1]. Remember the
  first note location in note0 and leap out if the note is not between
  note0 and note_end.
  
  In the similar way, badly formed note may cause infinite loop by
  pointing next note into the same or previous note. Guard against this
  by
  limiting amount of loop iterations by arbitrary choosen big number.
  
  For clarity, check the calculated note alignment in each iteration.
  
  PR:     kern/132886
  Approved by:    re(Ken Smith)
  
  Revision   Changes    Path
  1.26.2.2   +4 -2      src/sys/amd64/amd64/elf_machdep.c
  1.31.2.7   +14 -2     src/sys/amd64/linux32/linux32_sysvec.c
  1.7.2.2    +4 -2      src/sys/arm/arm/elf_machdep.c
  1.27.2.3   +3 -1      src/sys/compat/ia32/ia32_sysvec.c
  1.42.2.2   +1 -0      src/sys/compat/svr4/svr4_sysvec.c
  1.22.2.2   +4 -2      src/sys/i386/i386/elf_machdep.c
  1.150.2.5  +14 -2     src/sys/i386/linux/linux_sysvec.c
  1.24.2.3   +4 -2      src/sys/ia64/ia64/elf_machdep.c
  1.178.2.6  +101 -51   src/sys/kern/imgact_elf.c
  1.24.2.2   +4 -2      src/sys/powerpc/powerpc/elf_machdep.c
  1.23.2.3   +4 -2      src/sys/sparc64/sparc64/elf_machdep.c
  1.29.2.1   +11 -3     src/sys/sys/imgact_elf.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903290808.n2T88IqY092546>