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 for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1489053772.3961.26.camel@abdul-ThinkPad-T450>
Date:   Thu, 09 Mar 2017 15:32:52 +0530
From:   Abdul Haleem <abdhalee@...ux.vnet.ibm.com>
To:     linuxppc-dev <linuxppc-dev@...ts.ozlabs.org>
Cc:     linux-kernel <linux-kernel@...r.kernel.org>, mpe <mpe@...erman.id>,
        "aneesh.kumar" <aneesh.kumar@...ux.vnet.ibm.com>,
        sachinp <sachinp@...ux.vnet.ibm.com>
Subject: [libhugetlbfs] linkhuge_rw fails with gcc 6.2.0 on 4.11.0-rc1
 ppc64le

Hi,

linkhuge_rw test case fails on 4.11.0-rc1 kernel.


# HUGETLB_VERBOSE=99 HUGETLB_DEBUG=yes HUGETLB_SHARE=0
LD_LIBRARY_PATH=./obj64 HUGETLB_ELFMAP=R ./tests/obj64/linkhuge_rw 
libhugetlbfs [pkvmhab012:8026]: INFO: Found pagesize 16384 kB
libhugetlbfs [pkvmhab012:8026]: INFO: Detected page sizes:
libhugetlbfs [pkvmhab012:8026]: INFO:    Size: 16384 kB (default)
Mount: /dev/hugepages
libhugetlbfs [pkvmhab012:8026]: INFO: Parsed kernel version: [4] . [9] .
[0]  [pre-release: 6]
libhugetlbfs [pkvmhab012:8026]: INFO: Feature private_reservations is
present in this kernel
libhugetlbfs [pkvmhab012:8026]: INFO: Feature noreserve_safe is present
in this kernel
libhugetlbfs [pkvmhab012:8026]: INFO: Feature map_hugetlb is present in
this kernel
libhugetlbfs [pkvmhab012:8026]: INFO: Kernel has MAP_PRIVATE
reservations.  Disabling heap prefaulting.
libhugetlbfs [pkvmhab012:8026]: INFO: Kernel supports MAP_HUGETLB
libhugetlbfs [pkvmhab012:8026]: INFO: HUGETLB_SHARE=0, sharing disabled
libhugetlbfs [pkvmhab012:8026]: INFO: HUGETLB_NO_RESERVE=no,
reservations enabled
libhugetlbfs [pkvmhab012:8026]: INFO: Segment 0 (phdr 2): 0-0x133d4
(filesz=0x133d4) (prot = 0x5)
libhugetlbfs [pkvmhab012:8026]: DEBUG: Total memsz = 0x133d4, memsz of
largest segment = 0x133d4
libhugetlbfs [pkvmhab012:8026]: INFO: libhugetlbfs version: 2.20
(modified)
libhugetlbfs [pkvmhab012:8027]: INFO: Mapped hugeseg at 0x3effff000000.
Copying 0x133d4 bytes and 0 extra bytes from (nil)...libhugetlbfs
[pkvmhab012:8026]: INFO: Prepare succeeded
Starting testcase "./tests/obj64/linkhuge_rw", pid 8026
HUGETLB_ELFMAP=R
entry: small_data, data: 0x60d20010, writable: 1
entry: small_data, data: 0x60d20010, is_huge: 0
entry: big_data, data: 0x60d10010, writable: 1
entry: big_data, data: 0x60d10010, is_huge: 0
entry: small_bss, data: 0x60d30124, writable: 1
entry: small_bss, data: 0x60d30124, is_huge: 0
entry: big_bss, data: 0x60d20124, writable: 1
entry: big_bss, data: 0x60d20124, is_huge: 0
entry: small_const, data: 0x40d22e2c, writable: 0
entry: small_const, data: 0x40d22e2c, is_huge: 0
entry: big_const, data: 0x40d12e2c, writable: 0
entry: big_const, data: 0x40d12e2c, is_huge: 0
entry: static_func, data: 0x40d11cb0, writable: 0
entry: static_func, data: 0x40d11834, is_huge: 0
entry: global_func, data: 0x40d11c90, writable: 0
entry: global_func, data: 0x40d11834, is_huge: 0
Hugepages used for:
FAIL	small_const is not hugepage

# objdump  -p linkhuge_rw 

linkhuge_rw:     file format elf64-powerpcle

Program Header:
    PHDR off    0x0000000000000040 vaddr 0x0000000000000040 paddr 0x0000000000000040 align 2**3
         filesz 0x00000000000001c0 memsz 0x00000000000001c0 flags r-x
  INTERP off    0x0000000000000200 vaddr 0x0000000000000200 paddr 0x0000000000000200 align 2**0
         filesz 0x0000000000000011 memsz 0x0000000000000011 flags r--
    LOAD off    0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**28
         filesz 0x00000000000133d4 memsz 0x00000000000133d4 flags r-x
    LOAD off    0x000000000ffffb50 vaddr 0x000000001ffffb50 paddr 0x000000001ffffb50 align 2**28
         filesz 0x00000000000105cc memsz 0x00000000000205e0 flags rw-
 DYNAMIC off    0x000000000ffffb68 vaddr 0x000000001ffffb68 paddr 0x000000001ffffb68 align 2**3
         filesz 0x0000000000000260 memsz 0x0000000000000260 flags rw-
    NOTE off    0x0000000000000214 vaddr 0x0000000000000214 paddr 0x0000000000000214 align 2**2
         filesz 0x0000000000000044 memsz 0x0000000000000044 flags r--
   STACK off    0x0000000000000000 vaddr 0x0000000000000000 paddr 0x0000000000000000 align 2**4
         filesz 0x0000000000000000 memsz 0x0000000000000000 flags rw-
   RELRO off    0x000000000ffffb50 vaddr 0x000000001ffffb50 paddr 0x000000001ffffb50 align 2**0
         filesz 0x00000000000004b0 memsz 0x00000000000004b0 flags r--


# cat /proc/self/maps
10000000-10020000 r-xp 00000000 08:02 87687259                           /bin/cat
10020000-10030000 r--p 00010000 08:02 87687259                           /bin/cat
10030000-10040000 rw-p 00020000 08:02 87687259                           /bin/cat
10020490000-100204c0000 rw-p 00000000 00:00 0                            [heap]
3fffb1fd0000-3fffb2010000 rw-p 00000000 00:00 0 
3fffb2010000-3fffb2340000 r--p 00000000 08:02 154664970                  /usr/lib/locale/locale-archive
3fffb2340000-3fffb2500000 r-xp 00000000 08:02 4325397                    /lib/powerpc64le-linux-gnu/libc-2.24.so
3fffb2500000-3fffb2510000 r--p 001b0000 08:02 4325397                    /lib/powerpc64le-linux-gnu/libc-2.24.so
3fffb2510000-3fffb2520000 rw-p 001c0000 08:02 4325397                    /lib/powerpc64le-linux-gnu/libc-2.24.so
3fffb2530000-3fffb2550000 r-xp 00000000 00:00 0                          [vdso]
3fffb2550000-3fffb2590000 r-xp 00000000 08:02 4325389                    /lib/powerpc64le-linux-gnu/ld-2.24.so
3fffb2590000-3fffb25a0000 r--p 00030000 08:02 4325389                    /lib/powerpc64le-linux-gnu/ld-2.24.so
3fffb25a0000-3fffb25b0000 rw-p 00040000 08:02 4325389                    /lib/powerpc64le-linux-gnu/ld-2.24.so
3fffe31c0000-3fffe31f0000 rw-p 00000000 00:00 0                          [stack]


-- 
Regard's

Abdul Haleem
IBM Linux Technology Centre



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ