lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20070523.235103.128617660.anemo@mba.ocn.ne.jp>
Date:	Wed, 23 May 2007 23:51:03 +0900 (JST)
From:	Atsushi Nemoto <anemo@....ocn.ne.jp>
To:	mika.penttila@...umbus.fi
Cc:	torvalds@...ux-foundation.org, ben.collins@...ntu.com,
	linux-kernel@...r.kernel.org, akpm@...ux-foundation.org,
	sam@...nborg.org, dwmw2@...radead.org, adobriyan@...il.com
Subject: Re: [RFC] Crash on modpost, addend_386_rel()

On Tue, 22 May 2007 17:48:09 +0300, Mika_Penttilä <mika.penttila@...umbus.fi> wrote:
> I can't see how this use of r_attend is going to work. find_elf_symbol
> compares relsym->st_value to Elf_Rela->r_attend. I think it doesn't work
> for RELA archs and even with this patch for REL.

It seems works fine with RELA archs, at least mips64.

For example, set_up_list3s is correctly reported.

WARNING: mm/built-in.o - Section mismatch: reference to .init.text:set_up_list3s from .text between 'kmem_cache_create' (at offset 0x26358) and 'cache_reap'

Here is excerpt from readelf output.  Addend value 0x21d8 matches
st_value of its target symbol.

$ mips64-linux-readelf -sr ../build-sb1250/mm/built-in.o
Relocation section '.rela.text' at offset 0x33fe0 contains 5100 entries:
  Offset          Info           Type           Sym. Value    Sym. Name + Addend
...
000000026358  000400000004 R_MIPS_26         0000000000000000 .init.text + 21d8
                    Type2: R_MIPS_NONE
                    Type3: R_MIPS_NONE
...
Symbol table '.symtab' contains 1652 entries:
   Num:    Value          Size Type    Bind   Vis      Ndx Name
...
   746: 00000000000021d8   148 FUNC    LOCAL  DEFAULT    4 set_up_list3s

---
Atsushi Nemoto
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ