Wind River Support Network

HomeDefectsLIN6-1415
Fixed

LIN6-1415 : [userspace]on fsl-p2020, many hugetlbpage.c call trace print out when execute libhugetlbfs ptest

Created: Nov 27, 2013    Updated: Dec 3, 2018
Resolved Date: Dec 18, 2013
Found In Version: 6.0
Fix Version: 6.0.0.2
Severity: Severe
Applicable for: Wind River Linux 6
Component/s: BSP

Description

Problem Description
======================
on fsl-p2020, many call trace print out when execute libhugetlbfs ptest

Expected Behavior
======================
no call trace

Observed Behavior
======================
root@localhost:/usr/lib/libhugetlbfs/ptest# hugeadm --create-mountsint
root@localhost:/usr/lib/libhugetlbfs/ptest# ./run-ptest
...
WARNING: at /buildarea2/xsun/hugetlb-2020std-lx28/bitbake_build/tmp/work/fsl_p2020-wrs-linux-gnuspe/linux-windriver/3.10-r0/linux/arch/powerpc/mm/hugetlbpage.c:601
Modules linked in: nfsd exportfs mpc85xx_edac edac_core
CPU: 0 PID: 867 Comm: unlinked_fd Tainted: G      D W    3.10.19-WR6.0.0.0_standard #1
task: c60861c0 ti: c620c000 task.ti: c620c000
NIP: c0019eac LR: c013e754 CTR: c0144b70
REGS: c620dd50 TRAP: 0700   Tainted: G      D W     (3.10.19-WR6.0.0.0_standard)
MSR: 00029000 <CE,EE,ME>  CR: 20088488  XER: 00000000

GPR00: c013e754 c620de00 c60861c0 c620de78 c5cf0900 48100000 48007000 bfefb000 
GPR08: 00000000 c602d000 00000000 00000000 40022482 1001a8e0 00000000 00000000 
GPR16: 00000000 00000000 00000000 00000000 00000000 00000000 48007000 48200000 
GPR24: bfdfffff bfe00000 ffffff80 00000001 bfefb000 481fffff c620de78 48200000 
NIP [c0019eac] hugetlb_free_pgd_range+0x10c/0x16c
LR [c013e754] free_pgtables+0x134/0x158
Call Trace:
[c620de00] [80008424] 0x80008424 (unreliable)
[c620de40] [c013e754] free_pgtables+0x134/0x158
[c620de70] [c0144f3c] unmap_region+0xac/0x128
[c620def0] [c01472cc] do_munmap+0x248/0x3a8
[c620df20] [c0147470] vm_munmap+0x44/0x68
[c620df40] [c000fecc] ret_from_syscall+0x0/0x3c
--- Exception: c01 at 0xff2eb10
    LR = 0x10000b18
Instruction dump:
409d0038 2f990000 7fe5fb78 41beff94 393fffff 3959ffff 7f895040 419dff84 
893e0010 48000028 712a0fff 40820050 <0fe00000> 4bffffac 893e0010 7d2ad378 
---[ end trace 195124c9f70e83aa ]---
PASS
readback (1024K: 32):	------------[ cut here ]------------
kernel BUG at /buildarea2/xsun/hugetlb-2020std-lx28/bitbake_build/tmp/work/fsl_p2020-wrs-linux-gnuspe/linux-windriver/3.10-r0/linux/arch/powerpc/mm/hugetlbpage.c:324!
Oops: Exception in kernel mode, sig: 5 [#19]
PREEMPT SMP NR_CPUS=2 P2020 DS
Modules linked in: nfsd exportfs mpc85xx_edac edac_core
CPU: 0 PID: 868 Comm: readback Tainted: G      D W    3.10.19-WR6.0.0.0_standard #1
task: c6087300 ti: c5cf0000 task.ti: c5cf0000
NIP: c0019b64 LR: c015c37c CTR: 00040000
REGS: c5cf1d20 TRAP: 0700   Tainted: G      D W     (3.10.19-WR6.0.0.0_standard)
MSR: 00029000 <CE,EE,ME>  CR: 84004462  XER: 20000000

GPR00: c015c37c c5cf1dd0 c6087300 c5cb2b40 48100000 0000000b 00000029 00029000 
GPR08: 00000001 00000008 c5c73000 c0010364 44004462 1001a8c8 00000000 00000000 
GPR16: 00000000 00000000 00000000 00000000 00000000 00030001 00000029 c5ed55a0 
GPR24: c5cb2b40 00000000 c5cb2b40 c09f7804 c6278900 c5cb2b40 c6278000 00000900 
NIP [c0019b64] huge_pte_alloc+0x48/0x174
LR [c015c37c] hugetlb_fault+0xd0/0x700
Call Trace:
[c5cf1dd0] [c01449c8] vma_gap_update+0x40/0x60 (unreliable)
[c5cf1e00] [c015c37c] hugetlb_fault+0xd0/0x700
[c5cf1e50] [c06f6d40] do_page_fault+0x35c/0x6d8
[c5cf1f40] [c0010370] handle_page_fault+0xc/0x80
--- Exception: 301 at 0x10000aa8
    LR = 0x10000a7c
Instruction dump:
90010034 7d4500d0 7d442038 83c3002c 549f6cfa 7f9efa15 7d452838 7c7d1b78 
7ca50034 41820130 7d5ef82e 55480ffe <0f080000> 2f8a0000 419e0030 392affff 
---[ end trace 195124c9f70e83ab ]---

------------[ cut here ]------------
WARNING: at /buildarea2/xsun/hugetlb-2020std-lx28/bitbake_build/tmp/work/fsl_p2020-wrs-linux-gnuspe/linux-windriver/3.10-r0/linux/arch/powerpc/mm/hugetlbpage.c:601
Modules linked in: nfsd exportfs mpc85xx_edac edac_core
CPU: 0 PID: 868 Comm: readback Tainted: G      D W    3.10.19-WR6.0.0.0_standard #1
task: c6087300 ti: c5cf0000 task.ti: c5cf0000
NIP: c0019eac LR: c013e754 CTR: c013b358
REGS: c5cf19f0 TRAP: 0700   Tainted: G      D W     (3.10.19-WR6.0.0.0_standard)
MSR: 00029000 <CE,EE,ME>  CR: 24088428  XER: 00000000

GPR00: c013e754 c5cf1aa0 c6087300 c5cf1b18 c6278900 48100000 00000000 bf88c000 
GPR08: 00000000 c5c73000 00000000 2f97fe40 44028428 1001a8c8 00000000 00000000 
GPR16: 00000000 00000000 00000000 00000000 00000000 00030001 00000000 48200000 
GPR24: bf7fffff bf800000 ffffff80 00000001 bf88c000 481fffff c5cf1b18 48200000 
NIP [c0019eac] hugetlb_free_pgd_range+0x10c/0x16c
LR [c013e754] free_pgtables+0x134/0x158
Call Trace:
[c5cf1ae0] [c013e754] free_pgtables+0x134/0x158
[c5cf1b10] [c01483d0] exit_mmap+0xcc/0x150
[c5cf1b80] [c0041940] mmput+0x6c/0x118
[c5cf1b90] [c004a854] do_exit+0x238/0x8ec
[c5cf1bf0] [c000b7fc] die+0x210/0x2d0
[c5cf1c20] [c000ba54] _exception+0x134/0x148
[c5cf1d10] [c001053c] ret_from_except_full+0x0/0x4c
--- Exception: 700 at huge_pte_alloc+0x48/0x174
    LR = hugetlb_fault+0xd0/0x700
[c5cf1dd0] [c01449c8] vma_gap_update+0x40/0x60 (unreliable)
[c5cf1e00] [c015c37c] hugetlb_fault+0xd0/0x700
[c5cf1e50] [c06f6d40] do_page_fault+0x35c/0x6d8
[c5cf1f40] [c0010370] handle_page_fault+0xc/0x80
--- Exception: 301 at 0x10000aa8
    LR = 0x10000a7c
Instruction dump:
409d0038 2f990000 7fe5fb78 41beff94 393fffff 3959ffff 7f895040 419dff84 
893e0010 48000028 712a0fff 40820050 <0fe00000> 4bffffac 893e0010 7d2ad378 
---[ end trace 195124c9f70e83ac ]---
------------[ cut here ]------------
WARNING: at /buildarea2/xsun/hugetlb-2020std-lx28/bitbake_build/tmp/work/fsl_p2020-wrs-linux-gnuspe/linux-windriver/3.10-r0/linux/mm/mmap.c:2765
Modules linked in: nfsd exportfs mpc85xx_edac edac_core
CPU: 0 PID: 868 Comm: readback Tainted: G      D W    3.10.19-WR6.0.0.0_standard #1
task: c6087300 ti: c5cf0000 task.ti: c5cf0000
NIP: c014843c LR: c0148430 CTR: c015a2c4
REGS: c5cf1a60 TRAP: 0700   Tainted: G      D W     (3.10.19-WR6.0.0.0_standard)
MSR: 00029000 <CE,EE,ME>  CR: 24004484  XER: 20000000

GPR00: c0148430 c5cf1b10 c6087300 00000000 c10b5500 ffffffff ffffffb2 00000020 
GPR08: 0171c000 00000001 00000000 00004261 0044007b 1001a8c8 00000000 00000000 
GPR16: 00000000 00000000 00000000 00000000 00000000 00030001 00000029 c5cf0000 
GPR24: c5cb2b40 c5cf1b98 c0900000 c5cb2b84 c5cb2b40 c5cb2b40 0000004e 00000000 
NIP [c014843c] exit_mmap+0x138/0x150
LR [c0148430] exit_mmap+0x12c/0x150
Call Trace:
[c5cf1b10] [c0148430] exit_mmap+0x12c/0x150 (unreliable)
[c5cf1b80] [c0041940] mmput+0x6c/0x118
[c5cf1b90] [c004a854] do_exit+0x238/0x8ec
[c5cf1bf0] [c000b7fc] die+0x210/0x2d0
[c5cf1c20] [c000ba54] _exception+0x134/0x148
[c5cf1d10] [c001053c] ret_from_except_full+0x0/0x4c
--- Exception: 700 at huge_pte_alloc+0x48/0x174
    LR = hugetlb_fault+0xd0/0x700
[c5cf1dd0] [c01449c8] vma_gap_update+0x40/0x60 (unreliable)
[c5cf1e00] [c015c37c] hugetlb_fault+0xd0/0x700
[c5cf1e50] [c06f6d40] do_page_fault+0x35c/0x6d8
[c5cf1f40] [c0010370] handle_page_fault+0xc/0x80
--- Exception: 301 at 0x10000aa8
    LR = 0x10000a7c
Instruction dump:
7c7f1b79 4082ffd4 3d20c095 7cde00d0 80e9403c 3c60c09f 38635ec0 7cc5fe70 
482ac4a9 813d0084 3149ffff 7d2a4910 <0f090000> 80010074 bba10064 7c0803a6 
---[ end trace 195124c9f70e83ad ]---

truncate (1024K: 32):	------------[ cut here ]------------
kernel BUG at /buildarea2/xsun/hugetlb-2020std-lx28/bitbake_build/tmp/work/fsl_p2020-wrs-linux-gnuspe/linux-windriver/3.10-r0/linux/arch/powerpc/mm/hugetlbpage.c:324!
Oops: Exception in kernel mode, sig: 5 [#20]
PREEMPT SMP NR_CPUS=2 P2020 DS
Modules linked in: nfsd exportfs mpc85xx_edac edac_core
CPU: 0 PID: 869 Comm: truncate Tainted: G      D W    3.10.19-WR6.0.0.0_standard #1
task: c60861c0 ti: c6278000 task.ti: c6278000
NIP: c0019b64 LR: c015c37c CTR: c0276678
REGS: c6279d20 TRAP: 0700   Tainted: G      D W     (3.10.19-WR6.0.0.0_standard)
MSR: 00029000 <CE,EE,ME>  CR: 84004462  XER: 20000000

GPR00: c015c37c c6279dd0 c60861c0 c5cb34a0 48100000 0000000b 00000029 00029000 
GPR08: 00000001 00000008 c5c29000 c0010364 44004462 1001a94c 00000000 00000000 
GPR16: 00000000 00000000 00000000 00000000 00000000 00030001 00000029 c5fb87e0 
GPR24: c5cb34a0 00000000 c5cb34a0 c09f7804 c5eb4900 c5cb34a0 c5eb4000 00000900 
NIP [c0019b64] huge_pte_alloc+0x48/0x174
LR [c015c37c] hugetlb_fault+0xd0/0x700
Call Trace:
[c6279dd0] [c01449c8] vma_gap_update+0x40/0x60 (unreliable)
[c6279e00] [c015c37c] hugetlb_fault+0xd0/0x700
[c6279e50] [c06f6d40] do_page_fault+0x35c/0x6d8
[c6279f40] [c0010370] handle_page_fault+0xc/0x80
--- Exception: 301 at 0x10000ae4
    LR = 0x10000ad0
Instruction dump:
90010034 7d4500d0 7d442038 83c3002c 549f6cfa 7f9efa15 7d452838 7c7d1b78 
7ca50034 41820130 7d5ef82e 55480ffe <0f080000> 2f8a0000 419e0030 392affff 
---[ end trace 195124c9f70e83ae ]---

Steps to Reproduce

1. 
configure --enable-board=fsl-p2020 --enable-kernel=standard --enable-rootfs=glibc-std --with-template=feature/libhugetlbfs,feature/lttng2,feature/acl,feature/nfsd,feature/mysql,feature/mysql-odbc,feature/oprofile --enable-test=yes --enable-build=profiling --enable-jobs=2 --enable-parallel-pkgbuilds=12
make fs
2. 
on target
cd /usr/lib/libhugetlbfs/ptest
hugeadm --create-mounts
hugeadm --pool-pages-min 1MB:32
./run-ptest

Other Downloads


Live chat
Online