• System unstable because of smb/cifs?


    Hello,
    I hope this is the right place for this kind of question.
    My antergos installation is behaving “weird” since a couple of days and I can’t really point my finger on the reason for that. It seems, like the problem is related somehow to smb/cifs (mounted by fstab). It goes like this:

    • system is starting as usual (I’m using Cinnamon as desktop)
    • automount for shares is disabled so everything is working fine
    • now I’m mounting one or a couple of samba/cifs shares to my system (the same way I’m doing it for the last years)
    • the best way to reproduce the weird behavior is by starting a file-move-job from one share to another.
      This will then freeze in the middle of the operation.
    • most of the system is still usable after that, but it behaves different and some programs are not working at all
    • shutdown / rebooting the whole system takes forever (can’t unmount xyz / timeouts / and console errors like that)

    At first I thought this might be a problem of Nemo. But it’s the same using something different for the operation like mc.
    dmesg after the freeze:

    [  120.202695] cache_from_obj: Wrong slab cache. cifs_request but object is from xfrm_dst_cache
    [  120.202727] ------------[ cut here ]------------
    [  120.202731] WARNING: CPU: 1 PID: 1555 at mm/slab.h:377 kmem_cache_free+0x13a/0x1d0
    [  120.202732] Modules linked in: cmac arc4 md4 nls_utf8 cifs ccm dns_resolver fscache fuse xt_multiport iptable_filter bluetooth snd_hda_codec_hdmi ecdh_generic rfkill msr vmnet(O) i915 intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp snd_hda_codec_realtek kvm_intel snd_hda_codec_generic mei_wdt i2c_algo_bit snd_hda_intel kvm drm_kms_helper snd_hda_codec alx snd_hda_core drm snd_hwdep snd_pcm intel_gtt iTCO_wdt iTCO_vendor_support agpgart mdio snd_timer joydev mousedev snd mei_me irqbypass syscopyarea evdev input_leds intel_cstate led_class sysfillrect mac_hid sysimgblt pcspkr intel_rapl_perf fb_sys_fops mei soundcore shpchp i2c_i801 lpc_ich video button sch_fq_codel vmmon(O) vmw_vmci vboxnetflt(O) vboxnetadp(O) pci_stub vboxpci(O) vboxdrv(O) sg ip_tables x_tables algif_skcipher af_alg sd_mod
    [  120.202763]  hid_logitech_hidpp hid_logitech_dj usbhid hid crct10dif_pclmul crc32_pclmul ahci ghash_clmulni_intel libahci pcbc libata xhci_pci ehci_pci aesni_intel crypto_simd glue_helper xhci_hcd ehci_hcd cryptd scsi_mod usbcore usb_common aes_x86_64 ext4 crc32c_generic crc32c_intel crc16 mbcache jbd2 fscrypto dm_crypt dm_mod
    [  120.202777] CPU: 1 PID: 1555 Comm: pool Tainted: G           O    4.14.56-1-lts #1
    [  120.202778] Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./B85M-ITX, BIOS P2.50 01/07/2016
    [  120.202779] task: ffff947c5c03e3c0 task.stack: ffffbc9ac8b1c000
    [  120.202780] RIP: 0010:kmem_cache_free+0x13a/0x1d0
    [  120.202781] RSP: 0018:ffffbc9ac8b1fb68 EFLAGS: 00010246
    [  120.202782] RAX: 0000000000000050 RBX: ffff947c82fbbc00 RCX: 0000000000000000
    [  120.202782] RDX: 0000000000000000 RSI: ffff947c9e2965d8 RDI: ffff947c9e2965d8
    [  120.202783] RBP: ffff947c85ed2780 R08: 0000000000000005 R09: 00000000000002f5
    [  120.202783] R10: 0000000000000000 R11: ffffffffa356636d R12: ffff947c85c83000
    [  120.202784] R13: ffff947c9367d000 R14: ffffbc9ac8b1fc48 R15: 0000000000000000
    [  120.202785] FS:  00007f387a7fc700(0000) GS:ffff947c9e280000(0000) knlGS:0000000000000000
    [  120.202786] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
    [  120.202786] CR2: 000055f4e1db99f8 CR3: 00000001c39be006 CR4: 00000000001606e0
    [  120.202787] Call Trace:
    [  120.202814]  cifs_buf_release.part.6+0x11/0x20 [cifs]
    [  120.202824]  send_set_info+0x1ac/0x210 [cifs]
    [  120.202834]  SMB2_set_info+0x52/0x70 [cifs]
    [  120.202844]  smb2_open_op_close+0x180/0x220 [cifs]
    [  120.202846]  ? lookup_fast+0x136/0x2e0
    [  120.202855]  smb2_set_file_info+0x86/0xa0 [cifs]
    [  120.202864]  cifs_set_file_info+0xb0/0x1b0 [cifs]
    [  120.202872]  cifs_setattr+0x51f/0x9d0 [cifs]
    [  120.202874]  ? filename_lookup.part.69+0xb9/0x130
    [  120.202876]  notify_change+0x2d7/0x440
    [  120.202878]  chmod_common+0x89/0x130
    [  120.202880]  SyS_chmod+0x51/0xb0
    [  120.202882]  do_syscall_64+0x67/0x100
    [  120.202885]  entry_SYSCALL_64_after_hwframe+0x3d/0xa2
    [  120.202886] RIP: 0033:0x7f389e754337
    [  120.202887] RSP: 002b:00007f387a7fb6c8 EFLAGS: 00000287 ORIG_RAX: 000000000000005a
    [  120.202888] RAX: ffffffffffffffda RBX: 00007f3864013770 RCX: 00007f389e754337
    [  120.202888] RDX: 0000000000000000 RSI: 00000000000081a4 RDI: 00007f3864013770
    [  120.202889] RBP: 0000000000000001 R08: 00007f38640082d0 R09: 0000000000000003
    [  120.202889] R10: 00007f389e7a1ed0 R11: 0000000000000287 R12: 0000000000000000
    [  120.202890] R13: 00000000000081a4 R14: 00007f3864008308 R15: 0000000000000000
    [  120.202891] Code: c5 0f 84 08 ff ff ff 48 3b a8 d8 00 00 00 74 6a 48 8b 48 60 48 8b 55 60 48 c7 c6 a0 38 c3 a2 48 c7 c7 50 ee e0 a2 e8 b1 b7 ed ff <0f> 0b e9 dd fe ff ff 65 8b 05 10 07 e1 5d 89 c0 48 0f a3 05 2e 
    [  120.202909] ---[ end trace 0af5ed40c9456e7f ]---
    [  120.204879] cache_from_obj: Wrong slab cache. cifs_request but object is from xfrm_dst_cache
    [  120.205726] general protection fault: 0000 [#1] SMP PTI
    [  120.205727] Modules linked in: cmac arc4 md4 nls_utf8 cifs ccm dns_resolver fscache fuse xt_multiport iptable_filter bluetooth snd_hda_codec_hdmi ecdh_generic rfkill msr vmnet(O) i915 intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp snd_hda_codec_realtek kvm_intel snd_hda_codec_generic mei_wdt i2c_algo_bit snd_hda_intel kvm drm_kms_helper snd_hda_codec alx snd_hda_core drm snd_hwdep snd_pcm intel_gtt iTCO_wdt iTCO_vendor_support agpgart mdio snd_timer joydev mousedev snd mei_me irqbypass syscopyarea evdev input_leds intel_cstate led_class sysfillrect mac_hid sysimgblt pcspkr intel_rapl_perf fb_sys_fops mei soundcore shpchp i2c_i801 lpc_ich video button sch_fq_codel vmmon(O) vmw_vmci vboxnetflt(O) vboxnetadp(O) pci_stub vboxpci(O) vboxdrv(O) sg ip_tables x_tables algif_skcipher af_alg sd_mod
    [  120.205757]  hid_logitech_hidpp hid_logitech_dj usbhid hid crct10dif_pclmul crc32_pclmul ahci ghash_clmulni_intel libahci pcbc libata xhci_pci ehci_pci aesni_intel crypto_simd glue_helper xhci_hcd ehci_hcd cryptd scsi_mod usbcore usb_common aes_x86_64 ext4 crc32c_generic crc32c_intel crc16 mbcache jbd2 fscrypto dm_crypt dm_mod
    [  120.205772] CPU: 1 PID: 1555 Comm: pool Tainted: G        W  O    4.14.56-1-lts #1
    [  120.205773] Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./B85M-ITX, BIOS P2.50 01/07/2016
    [  120.205775] task: ffff947c5c03e3c0 task.stack: ffffbc9ac8b1c000
    [  120.205779] RIP: 0010:prefetch_freepointer+0x11/0x20
    [  120.205780] RSP: 0018:ffffbc9ac8b1f710 EFLAGS: 00010286
    [  120.205782] RAX: 0000000000000000 RBX: e2c248d6a3af8cfc RCX: 0000000000001636
    [  120.205784] RDX: 0000000000001635 RSI: e2c248d6a3af8cfc RDI: ffff947c94a5d380
    [  120.205785] RBP: ffff947c82fbae00 R08: ffff947c9e2a64e0 R09: 0000000000000000
    [  120.205787] R10: ffffbc9ac8b1f938 R11: 000000000000006c R12: 0000000001011200
    [  120.205788] R13: ffff947c94a5d380 R14: ffff947c94a5d380 R15: ffffffffa2190915
    [  120.205790] FS:  00007f387a7fc700(0000) GS:ffff947c9e280000(0000) knlGS:0000000000000000
    [  120.205792] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
    [  120.205793] CR2: 000055f4e1db99f8 CR3: 00000001c39be006 CR4: 00000000001606e0
    [  120.205795] Call Trace:
    [  120.205797]  kmem_cache_alloc+0x86/0x190
    [  120.205801]  ? wait_woken+0x80/0x80
    [  120.205805]  mempool_alloc+0x65/0x190
    [  120.205809]  ? native_sched_clock+0x37/0x90
    [  120.205822]  cifs_small_buf_get+0x16/0x20 [cifs]
    [  120.205832]  small_smb2_init+0x5d/0xa0 [cifs]
    [  120.205842]  SMB2_open+0xca/0xb50 [cifs]
    [  120.205844]  ? char2uni+0x27/0x70 [nls_utf8]
    [  120.205852]  ? cifs_strndup_to_utf16+0xc2/0x110 [cifs]
    [  120.205862]  ? smb2_open_op_close+0x9c/0x220 [cifs]
    [  120.205870]  smb2_open_op_close+0x9c/0x220 [cifs]
    [  120.205872]  ? __alloc_pages_nodemask+0xd8/0x240
    [  120.205881]  smb2_query_path_info+0x6f/0xe0 [cifs]
    [  120.205889]  cifs_get_inode_info+0x237/0xa20 [cifs]
    [  120.205892]  ? check_preempt_curr+0x7a/0x90
    [  120.205894]  ? ttwu_do_wakeup+0x19/0x120
    [  120.205895]  ? __kmalloc+0x176/0x1f0
    [  120.205902]  ? build_path_from_dentry_optional_prefix+0x13c/0x3f0 [cifs]
    [  120.205910]  cifs_revalidate_dentry_attr+0x163/0x240 [cifs]
    [  120.205918]  cifs_revalidate_dentry+0xf/0x20 [cifs]
    [  120.205925]  cifs_d_revalidate+0x20/0xa0 [cifs]
    [  120.205927]  lookup_fast+0x275/0x2e0
    [  120.205929]  walk_component+0x48/0x490
    [  120.205930]  link_path_walk+0x2b9/0x530
    [  120.205932]  path_lookupat.isra.49+0x97/0x200
    [  120.205934]  filename_lookup.part.69+0xa0/0x130
    [  120.205936]  ? __check_object_size+0x9f/0x18e
    [  120.205938]  ? strncpy_from_user+0x4a/0x170
    [  120.205940]  vfs_statx+0x73/0xe0
    [  120.205942]  SYSC_newlstat+0x39/0x70
    [  120.205945]  ? SyS_utimes+0x9a/0xd0
    [  120.205946]  do_syscall_64+0x67/0x100
    [  120.205948]  entry_SYSCALL_64_after_hwframe+0x3d/0xa2
    [  120.205950] RIP: 0033:0x7f389e754085
    [  120.205951] RSP: 002b:00007f387a7fb568 EFLAGS: 00000246 ORIG_RAX: 0000000000000006
    [  120.205952] RAX: ffffffffffffffda RBX: 00007f386400f800 RCX: 00007f389e754085
    [  120.205953] RDX: 00007f387a7fb5d0 RSI: 00007f387a7fb5d0 RDI: 000055aadf704130
    [  120.205954] RBP: 000055aadf5bd840 R08: 0000000000000005 R09: 0000000000000004
    [  120.205955] R10: 0000000000000000 R11: 0000000000000246 R12: 000055aadf704130
    [  120.205956] R13: 0000000000000000 R14: 00007f386400e1d0 R15: 00007f386400fd50
    [  120.205957] Code: 89 d3 e8 83 ce 45 00 85 c0 0f 85 61 6e 00 00 48 83 c4 08 5b 5d 41 5c 41 5d c3 0f 1f 44 00 00 48 85 f6 74 14 48 63 47 20 48 01 c6 <48> 33 36 48 33 b7 40 01 00 00 0f 18 0e c3 90 0f 1f 44 00 00 55 
    [  120.205977] RIP: prefetch_freepointer+0x11/0x20 RSP: ffffbc9ac8b1f710
    [  120.205978] ---[ end trace 0af5ed40c9456e80 ]---
    

    I don’t really understand this crash report (is it one?). Could this be related to the problem described?

    Best regards,
    peters

  • Hi,

    cifs module is crashing on you, don’t know why.

    Is your system fully updated?

    Could you please install linux-lts kernel, boot with it, and try it again?

  • Hello @karasu,

    Is your system fully updated?

    Yes. Or at least i think so :)

    • cifs-utils 6.8-2
    • gvfs-smb 1.36.2-3
    • smbclient 4.8.3-2
    • linux-api-headers 4.16.1-1
    • linux-firmware 20180606.d114732-1
    • linux-headers 4.17.10-1
    • linux-lts 4.14.56-1
    • linux-lts-headers 4.14.56-1

    These I have checked and compared with https://www.archlinux.org/packages/
    Can you tell which package is actually important/involved in this crash?

    Could you please install linux-lts kernel, boot with it, and try it again?

    I’m already on LTS (have been for a long time before this):

    Linux desktop 4.14.56-1-lts #1 SMP Tue Jul 17 20:11:42 CEST 2018 x86_64 GNU/Linux
    

    Regards,
    peters

  • Hi,

    It seems that kernel 4.14.56 and 4.14.57 had cifs problems…

    https://forum.manjaro.org/t/fatal-cifs-share-problem-after-update-to-4-14-56-1-4-14-57-1/53250/3

    So, let’s try the other way around… would you be so kind and try if with 4.17.10 works?

  • @karasu said in System unstable because of smb/cifs?:

    Hi,

    It seems that kernel 4.14.56 and 4.14.57 had cifs problems…

    https://forum.manjaro.org/t/fatal-cifs-share-problem-after-update-to-4-14-56-1-4-14-57-1/53250/3

    So, let’s try the other way around… would you be so kind and try if with 4.17.10 works?

    4.17.10-1 is looking good so far - thank you very much.
    I was googleing for it but couldn’t find anyone with the same problem…

    So, since the kernel guys already know about this (and probably have fixed it in the meantime):
    I’m using 4.17.10 for the moment and wait until a new, fixed LTS kernel will be available?
    Or can I help somehow by opening a bug report?

    Thanks again,
    peters

  • @peters said in System unstable because of smb/cifs?:

    I’m using 4.17.10 for the moment and wait until a new, fixed LTS kernel will be available?

    Yep, Arch guys will update LTS eventually. It’s just a matter of patience.

    Cheers!

system126 unstable3 smbcifs1 Posts 6Views 289
Bloom Email Optin Plugin

Looks like your connection to Antergos Community Forum was lost, please wait while we try to reconnect.