Project

General

Profile

Actions

Bug #42827

closed

mds: when mounting the extra slash(es) at the end of server path will be wrongly parsed as snap dir

Added by Xiubo Li over 4 years ago. Updated over 4 years ago.

Status:
Won't Fix
Priority:
Normal
Assignee:
Category:
-
Target version:
% Done:

0%

Source:
Development
Tags:
Backport:
nautilus,mimic
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
MDS
Labels (FS):
crash
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

This bug is copied from https://tracker.ceph.com/issues/42771, and need to fix it in the MDS.

This will be very reproduceable every time when mounting it like:

mount.ceph 192.168195.165:40954:// /mnt/cephfs ---> only if the source path has more than 1 slash at the end
touch /mnt/cephfs/a.txt or mkdir /mnt/cephfs/mydir ....

This will cause the BUG ON core trace in the kernel client side.

<4>[ 1642.059332] ------------[ cut here ]------------
<2>[ 1642.059333] kernel BUG at fs/ceph/inode.c:1347!
<4>[ 1642.059360] invalid opcode: 0000 [#1] SMP PTI
<4>[ 1642.059429] CPU: 2 PID: 150 Comm: kworker/2:1 Tainted: G E 5.4.0-rc5+ #1
<4>[ 1642.059481] Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 05/19/2017
<4>[ 1642.059587] Workqueue: ceph-msgr ceph_con_workfn [libceph]
<4>[ 1642.059616] RIP: 0010:ceph_fill_trace+0x936/0xad0 [ceph]
<4>[ 1642.059665] Code: ff 0f 0b 0f 0b 0f 0b 4c 89 fa 48 c7 c6 5d af a7 c0 48 c7 c7 30 04 a9 c0 4c 89 1c 24 e8 33 fb ab e6 4c 8b 1c 24 e9 16 fe ff ff <0f> 0b 49 8b 56 40 4d 89 f9 4d 89 f8 4c 89 5c 24 08 48 c7 c6 48 eb
<4>[ 1642.059730] RSP: 0018:ffffa1af84ba7c70 EFLAGS: 00010297
<4>[ 1642.059748] RAX: 0000000000000000 RBX: fffffffffffffffe RCX: 0000000000000006
<4>[ 1642.059817] RDX: 0000000000000000 RSI: 0000000000000092 RDI: ffff9360aec97900
<4>[ 1642.059901] RBP: ffff935f55cd34b0 R08: 0000000000000001 R09: 00000000000006cd
<4>[ 1642.059954] R10: 00000000000257dc R11: ffff935f55cd55b0 R12: ffff93609cd52000
<4>[ 1642.059979] R13: 0000000000000000 R14: ffff935fc46b4800 R15: ffff9360a9ab7e00
<4>[ 1642.060054] FS: 0000000000000000(0000) GS:ffff9360aec80000(0000) knlGS:0000000000000000
<4>[ 1642.060111] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
<4>[ 1642.060189] CR2: 0000557dc234e010 CR3: 0000000427bb2004 CR4: 00000000003606e0
<4>[ 1642.060234] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
<4>[ 1642.060268] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
<4>[ 1642.060282] Call Trace:
<4>[ 1642.060331] dispatch+0x2ac/0x12b0 [ceph]
<4>[ 1642.060359] ceph_con_workfn+0xd40/0x27c0 [libceph]
<4>[ 1642.060463] ? __switch_to_asm+0x40/0x70
<4>[ 1642.060475] ? __switch_to_asm+0x34/0x70
<4>[ 1642.060484] ? __switch_to_asm+0x40/0x70
<4>[ 1642.060494] ? __switch_to_asm+0x34/0x70
<4>[ 1642.060503] ? __switch_to_asm+0x40/0x70
<4>[ 1642.060535] ? __switch_to_asm+0x40/0x70
<4>[ 1642.060544] ? __switch_to_asm+0x34/0x70
<4>[ 1642.061070] ? __switch_to+0x80/0x440
<4>[ 1642.061497] ? __switch_to_asm+0x34/0x70
<4>[ 1642.062031] process_one_work+0x1b0/0x350
<4>[ 1642.062951] worker_thread+0x50/0x3b0
<4>[ 1642.063491] kthread+0xfb/0x130
<4>[ 1642.064030] ? process_one_work+0x350/0x350
<4>[ 1642.064574] ? kthread_park+0x90/0x90
<4>[ 1642.065085] ret_from_fork+0x35/0x40
<4>[ 1642.065618] Modules linked in: ceph(E) libceph fscache vsock_diag tcp_diag udp_diag raw_diag inet_diag unix_diag af_packet_diag netlink_diag ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 xt_conntrack ebtable_nat ip6table_nat ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_nat iptable_mangle iptable_raw iptable_security nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip_set nfnetlink ebtable_filter ebtables ip6table_filter ip6_tables bnep vmw_vsock_vmci_transport vsock sunrpc snd_seq_midi snd_seq_midi_event snd_ens1371 snd_ac97_codec intel_rapl_msr intel_rapl_common ac97_bus snd_rawmidi snd_seq crct10dif_pclmul btusb btrtl crc32_pclmul btbcm snd_seq_device btintel bluetooth snd_pcm ghash_clmulni_intel vmw_balloon joydev snd_timer snd ecdh_generic ecc soundcore rfkill intel_rapl_perf gameport pcspkr vmw_vmci i2c_piix4 xfs libcrc32c vmwgfx drm_kms_helper ttm drm mptspi scsi_transport_spi mptscsih mptbase serio_raw crc32c_intel e1000 ata_generic pata_acpi
<4>[ 1642.070811] ---[ end trace 37ae9aab31404157 ]---
<4>[ 1642.071274] RIP: 0010:ceph_fill_trace+0x936/0xad0 [ceph]
<4>[ 1642.071754] Code: ff 0f 0b 0f 0b 0f 0b 4c 89 fa 48 c7 c6 5d af a7 c0 48 c7 c7 30 04 a9 c0 4c 89 1c 24 e8 33 fb ab e6 4c 8b 1c 24 e9 16 fe ff ff <0f> 0b 49 8b 56 40 4d 89 f9 4d 89 f8 4c 89 5c 24 08 48 c7 c6 48 eb
<4>[ 1642.073682] RSP: 0018:ffffa1af84ba7c70 EFLAGS: 00010297
<4>[ 1642.074383] RAX: 0000000000000000 RBX: fffffffffffffffe RCX: 0000000000000006
<4>[ 1642.075090] RDX: 0000000000000000 RSI: 0000000000000092 RDI: ffff9360aec97900
<4>[ 1642.075619] RBP: ffff935f55cd34b0 R08: 0000000000000001 R09: 00000000000006cd
<4>[ 1642.076261] R10: 00000000000257dc R11: ffff935f55cd55b0 R12: ffff93609cd52000
<4>[ 1642.076867] R13: 0000000000000000 R14: ffff935fc46b4800 R15: ffff9360a9ab7e00
<4>[ 1642.077512] FS: 0000000000000000(0000) GS:ffff9360aec80000(0000) knlGS:0000000000000000
<4>[ 1642.078151] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
<4>[ 1642.078707] CR2: 0000557dc234e010 CR3: 0000000427bb2004 CR4: 00000000003606e0
<4>[ 1642.079248] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
<4>[ 1642.079872] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Actions #1

Updated by Xiubo Li over 4 years ago

  • Status changed from New to In Progress
Actions #2

Updated by Xiubo Li over 4 years ago

Actions #3

Updated by Xiubo Li over 4 years ago

  • Pull request ID set to 31713
Actions #4

Updated by Patrick Donnelly over 4 years ago

  • Target version set to v15.0.0
  • Start date deleted (11/15/2019)
  • Source set to Development
  • Backport set to nautilus,mimic
Actions #5

Updated by Patrick Donnelly over 4 years ago

  • Status changed from In Progress to Fix Under Review
Actions #6

Updated by Patrick Donnelly over 4 years ago

  • Status changed from Fix Under Review to Won't Fix
Actions

Also available in: Atom PDF