Details
-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
Lustre 2.4.1, Lustre 2.5.0
-
None
-
3
-
9574
Description
Hit a kernel panic while trying to test the new file handle syscalls (name_to_handle_at()/open_by_handle_at())
To reproduce follow the following steps:
1) Apply patch (http://review.whamcloud.com/#/c/7247/). This patch adds a new file lustre/tests/check_fhandle_syscalls.c
2) Compile lustre client
3) Setup lustre (sh lustre/tests/llmount.sh)
4) Create a temporary file in FS (echo "testing new syscalls" > /mnt/lustre/temp_file)
5) Run the test utility as follows:
cd lustre/tests;
./check_fhandle_syscalls temp_file /mnt/lustre
The following is the stack trace of the panic:
crash> bt -l
PID: 2139 TASK: ffff880011495c40 CPU: 0 COMMAND: "check_fhandle_s"
#0 [ffff8800115cbc90] machine_kexec at ffffffff8103e9a5
/usr/src/debug/kernel-3.6.fc18/linux-3.6.10-4.fc18.x86_64/arch/x86/kernel/machine_kexec_64.c: 339
#1 [ffff8800115cbd00] crash_kexec at ffffffff810c4118
/usr/src/debug/kernel-3.6.fc18/linux-3.6.10-4.fc18.x86_64/kernel/kexec.c: 1100
#2 [ffff8800115cbdd0] panic at ffffffff816198e2
/usr/src/debug/kernel-3.6.fc18/linux-3.6.10-4.fc18.x86_64/arch/x86/include/asm/smp.h: 95
#3 [ffff8800115cbe50] lbug_with_loc at ffffffffa0418e5b [libcfs]
#4 [ffff8800115cbe90] ll_encode_fh at ffffffffa0961b75 [lustre]
#5 [ffff8800115cbed0] exportfs_encode_fh at ffffffff81264ce4
/usr/src/debug/kernel-3.6.fc18/linux-3.6.10-4.fc18.x86_64/fs/exportfs/expfs.c: 361
#6 [ffff8800115cbf10] sys_name_to_handle_at at ffffffff811e8f36
/usr/src/debug/kernel-3.6.fc18/linux-3.6.10-4.fc18.x86_64/fs/fhandle.c: 52
#7 [ffff8800115cbf80] system_call_fastpath at ffffffff8162bae9
/usr/src/debug/kernel-3.6.fc18/linux-3.6.10-4.fc18.x86_64/arch/x86/kernel/entry_64.S: 532
RIP: 00000030828f309a RSP: 00007fff2f0d94c8 RFLAGS: 00010202
RAX: 000000000000012f RBX: ffffffff8162bae9 RCX: 00007fff2f0d9578
RDX: 0000000000720010 RSI: 00007fff2f0da853 RDI: 0000000000000003
RBP: 00007fff2f0d95b0 R8: 0000000000000400 R9: 616e20676e696c6c
R10: 00007fff2f0d9578 R11: 0000000000000202 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fff2f0d9690 R15: 00000000004008f0
ORIG_RAX: 000000000000012f CS: 0033 SS: 002b