Samba client freeze during write when using higher than vers=1.0

Bug #1811723 reported by zorlax
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hello,
 My issue is that whenever I try to write new files (copy or move) to my file server something in the samba client freezes and I can't do anything samba until the system is rebooted.

To get write access I mount with uid ie "sudo mount //server/share /mountpoint -o user=write,uid=1000". Using this command the server and client negotiates smb protocol version 3.02.

When this happens the server is still happily serving files to other machines.
If I just read files everything works fine.
If I connect from a windows client there is no issue.
If I add "vers=1.0" everything works but transfers are really slow. Specifying version 3 produces a fail.
Trying the same operation (different hw) with Mint 18 Mate produces the same fault.
Trying the same operation (with "vers=3.0" set) using SuSE Leap 15.0 KDE live everything works as expected.

Both client and server are running fully updated, as of posting, bionic.

Using 'dmesg -w' too see what's going on I can see that there is a general protection fault somehow related to cifsd. I am however unable to tell if it is relevant to my issue, from kern.log:

Jan 9 21:03:49 ubnu kernel: [ 410.357213] general protection fault: 0000 [#1] SMP PTI
Jan 9 21:03:49 ubnu kernel: [ 410.357224] Modules linked in: cmac arc4 md4 nls_utf8 cifs ccm fscache rfcomm pci_stub vboxpci(OE) vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) thunderbolt bnep binfmt_misc nls_iso8859_1 snd_hda_codec_hdmi snd_soc_skl snd_soc_skl_ipc snd_hda_ext_core snd_soc_sst_dsp snd_soc_sst_ipc snd_hda_codec_realtek snd_soc_acpi snd_hda_codec_generic snd_soc_core snd_compress ac97_bus snd_pcm_dmaengine snd_hda_intel intel_rapl btusb x86_pkg_temp_thermal intel_powerclamp btrtl coretemp joydev btbcm snd_hda_codec kvm_intel input_leds kvm irqbypass btintel crct10dif_pclmul crc32_pclmul snd_hda_core ghash_clmulni_intel pcbc snd_hwdep snd_pcm bluetooth ecdh_generic snd_seq_midi snd_seq_midi_event aesni_intel snd_rawmidi aes_x86_64 crypto_simd glue_helper cryptd intel_cstate intel_rapl_perf snd_seq rtsx_pci_ms snd_seq_device
Jan 9 21:03:49 ubnu kernel: [ 410.357357] wmi_bmof snd_timer memstick intel_wmi_thunderbolt snd shpchp soundcore mei_me mei intel_pch_thermal acpi_pad mac_hid sch_fq_codel parport_pc ppdev lp parport ip_tables x_tables autofs4 xfs libcrc32c hid_generic usbhid hid rtsx_pci_sdmmc i915 e1000e i2c_algo_bit drm_kms_helper ptp syscopyarea pps_core i2c_i801 sysfillrect sysimgblt rtsx_pci fb_sys_fops drm ahci libahci wmi video
Jan 9 21:03:49 ubnu kernel: [ 410.357447] CPU: 2 PID: 1822 Comm: cifsd Tainted: G OE 4.15.0-43-generic #46-Ubuntu
Jan 9 21:03:49 ubnu kernel: [ 410.357453] Hardware name: /NUC7i3BNB, BIOS BNKBL357.86A.0069.2018.0920.1250 09/20/2018
Jan 9 21:03:49 ubnu kernel: [ 410.357468] RIP: 0010:prefetch_freepointer+0x15/0x30
Jan 9 21:03:49 ubnu kernel: [ 410.357474] RSP: 0018:ffffb16201ae3da0 EFLAGS: 00010282
Jan 9 21:03:49 ubnu kernel: [ 410.357482] RAX: 0000000000000000 RBX: e90527c744fff71a RCX: 0000000000003ea9
Jan 9 21:03:49 ubnu kernel: [ 410.357488] RDX: 0000000000003ea8 RSI: e90527c744fff71a RDI: ffff9d7079255080
Jan 9 21:03:49 ubnu kernel: [ 410.357494] RBP: ffffb16201ae3da0 R08: ffff9d707ed2b650 R09: ffffb16201ae3db0
Jan 9 21:03:49 ubnu kernel: [ 410.357499] R10: ffffb16201ae3de8 R11: 0000000000000000 R12: 0000000001011200
Jan 9 21:03:49 ubnu kernel: [ 410.357505] R13: ffff9d7079255080 R14: ffff9d7016478c40 R15: ffff9d7079255080
Jan 9 21:03:49 ubnu kernel: [ 410.357512] FS: 0000000000000000(0000) GS:ffff9d707ed00000(0000) knlGS:0000000000000000
Jan 9 21:03:49 ubnu kernel: [ 410.357519] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jan 9 21:03:49 ubnu kernel: [ 410.357525] CR2: 00007f0a2802d028 CR3: 000000003760a006 CR4: 00000000003606e0
Jan 9 21:03:49 ubnu kernel: [ 410.357530] Call Trace:
Jan 9 21:03:49 ubnu kernel: [ 410.357545] kmem_cache_alloc+0xa2/0x1b0
Jan 9 21:03:49 ubnu kernel: [ 410.357558] ? mempool_alloc_slab+0x15/0x20
Jan 9 21:03:49 ubnu kernel: [ 410.357570] ? wait_woken+0x80/0x80
Jan 9 21:03:49 ubnu kernel: [ 410.357580] mempool_alloc_slab+0x15/0x20
Jan 9 21:03:49 ubnu kernel: [ 410.357590] mempool_alloc+0x71/0x190
Jan 9 21:03:49 ubnu kernel: [ 410.357660] ? smb2_add_credits+0xb0/0x250 [cifs]
Jan 9 21:03:49 ubnu kernel: [ 410.357709] cifs_small_buf_get+0x1a/0x30 [cifs]
Jan 9 21:03:49 ubnu kernel: [ 410.357751] cifs_demultiplex_thread+0x5c7/0xaf0 [cifs]
Jan 9 21:03:49 ubnu kernel: [ 410.357762] ? __schedule+0x299/0x8a0
Jan 9 21:03:49 ubnu kernel: [ 410.357777] kthread+0x121/0x140
Jan 9 21:03:49 ubnu kernel: [ 410.357815] ? cifs_handle_standard+0x190/0x190 [cifs]
Jan 9 21:03:49 ubnu kernel: [ 410.357827] ? kthread_create_worker_on_cpu+0x70/0x70
Jan 9 21:03:49 ubnu kernel: [ 410.357838] ? do_syscall_64+0x73/0x130
Jan 9 21:03:49 ubnu kernel: [ 410.357847] ? SyS_exit_group+0x14/0x20
Jan 9 21:03:49 ubnu kernel: [ 410.357859] ret_from_fork+0x35/0x40
Jan 9 21:03:49 ubnu kernel: [ 410.357866] Code: eb bb 49 8b 74 24 60 48 c7 c7 30 cd 0e a5 e8 93 b9 ea ff eb 90 90 0f 1f 44 00 00 55 48 85 f6 48 89 e5 74 14 48 63 47 20 48 01 c6 <48> 33 36 48 33 b7 40 01 00 00 0f 18 0e 5d c3 66 90 66 2e 0f 1f
Jan 9 21:03:49 ubnu kernel: [ 410.357991] RIP: prefetch_freepointer+0x15/0x30 RSP: ffffb16201ae3da0
Jan 9 21:03:49 ubnu kernel: [ 410.358063] ---[ end trace 9fca55019e520b64 ]---
---
ProblemType: Bug
ApportVersion: 2.20.9-0ubuntu7.6
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: jerker 1682 F.... pulseaudio
 /dev/snd/pcmC1D0p: jerker 1682 F...m pulseaudio
 /dev/snd/controlC1: jerker 1682 F.... pulseaudio
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 18.04
HibernationDevice: RESUME=UUID=76d6812e-d205-4c26-8186-69b8beb57759
InstallationDate: Installed on 2018-11-14 (197 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
IwConfig:
 eno1 no wireless extensions.

 lo no wireless extensions.
Package: linux (not installed)
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.15.0-50-generic root=UUID=38dfd8d3-c78d-4d3b-8b98-1feb616865fa ro quiet splash vt.handoff=1
ProcVersionSignature: Ubuntu 4.15.0-50.54-generic 4.15.18
RelatedPackageVersions:
 linux-restricted-modules-4.15.0-50-generic N/A
 linux-backports-modules-4.15.0-50-generic N/A
 linux-firmware 1.173.6
RfKill:
 0: hci0: Bluetooth
  Soft blocked: yes
  Hard blocked: no
Tags: bionic wayland-session
Uname: Linux 4.15.0-50-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 05/16/2019
dmi.bios.vendor: Intel Corp.
dmi.bios.version: BNKBL357.86A.0079.2019.0516.1758
dmi.board.name: NUC7i3BNB
dmi.board.vendor: Intel Corporation
dmi.board.version: J22859-303
dmi.chassis.type: 3
dmi.modalias: dmi:bvnIntelCorp.:bvrBNKBL357.86A.0079.2019.0516.1758:bd05/16/2019:svn:pn:pvr:rvnIntelCorporation:rnNUC7i3BNB:rvrJ22859-303:cvn:ct3:cvr:

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1811723/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Revision history for this message
zorlax (zorlax) wrote :

Selected package to file bug against. Hopefully it is the right one.

affects: ubuntu → linux-signed-hwe (Ubuntu)
Revision history for this message
zorlax (zorlax) wrote :

I found this, https://bugzilla.samba.org/show_bug.cgi?id=13647 , on the Samba bug tracker and the issue seems gone with 4.18 (which brings other issues so I'm back on 4.15).

Revision history for this message
zorlax (zorlax) wrote :

linux-image-4.15.0-50-generic

affects: linux-signed-hwe (Ubuntu) → linux (Ubuntu)
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1811723

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: bionic
Revision history for this message
zorlax (zorlax) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected wayland-session
description: updated
Revision history for this message
zorlax (zorlax) wrote : CRDA.txt

apport information

Revision history for this message
zorlax (zorlax) wrote : CurrentDmesg.txt

apport information

Revision history for this message
zorlax (zorlax) wrote : Lspci.txt

apport information

Revision history for this message
zorlax (zorlax) wrote : Lsusb.txt

apport information

Revision history for this message
zorlax (zorlax) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
zorlax (zorlax) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
zorlax (zorlax) wrote : ProcEnviron.txt

apport information

Revision history for this message
zorlax (zorlax) wrote : ProcInterrupts.txt

apport information

Revision history for this message
zorlax (zorlax) wrote : ProcModules.txt

apport information

Revision history for this message
zorlax (zorlax) wrote : PulseList.txt

apport information

Revision history for this message
zorlax (zorlax) wrote : UdevDb.txt

apport information

Revision history for this message
zorlax (zorlax) wrote : WifiSyslog.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

According to [1] it's fixed in newer kernel version. Please try it out.

[1] https://bugzilla.samba.org/show_bug.cgi?id=13647

Revision history for this message
zorlax (zorlax) wrote :

I have tried the 4.18 kernel (see comment 3) and while it seems to fix this samba issue it was no good for my system, unless I of course installed it wrong. Is there a definitive guide on how to install and choose different kernels for ubuntu?

Revision history for this message
zorlax (zorlax) wrote :

I still have the bug in 4.15.0-51-generic #55-Ubuntu SMP.

Revision history for this message
zorlax (zorlax) wrote :

Still here in 4.15.0-58-generic #64-Ubuntu SMP

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.