smb/cifs support triggers general protection fault
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Confirmed
|
High
|
Unassigned | ||
Bionic |
Confirmed
|
High
|
Unassigned |
Bug Description
Hi,
I see this issues since 4.15.0-32-generic, but I have this particular smb/cifs setup for only a few weeks now, so it might after all by chance that I started to see it with this particular kernel.
It seems that about any activity in regard to a mount that I had working for a few days - mounted on monday, played music from it most of each day, today is thursday - triggers this fault now.
- tab completion into the dir
- ls in target dir
- umount the mountpoint
Sometimes the tools do not immediately crash, but hang.
In that case they are on wchan "wait_for_
The logs on the NAS (Synology DS418+) have no entries, the last is me mounting it via smb/cifs.
Related FSTab entries are not too unusual other than making sure we have the new safer version of the protocol used:
//10.
[53959.591519] general protection fault: 0000 [#6] SMP PTI
[53959.591522] Modules linked in: md4 nls_utf8 cifs ccm fscache ebtable_broute rfcomm ebtable_nat vmnet(OE) parport_pc vmw_vsock_
[53959.591567] ghash_clmulni_intel intel_cstate intel_rapl_perf serio_raw wmi_bmof snd_hda_
[53959.591612] libcrc32c raid1 raid0 multipath linear hid_generic usbhid hid aesni_intel i915 i2c_algo_bit aes_x86_64 drm_kms_helper crypto_simd cryptd glue_helper e1000e syscopyarea sysfillrect psmouse ptp sysimgblt fb_sys_fops pps_core drm ahci libahci wmi video [last unloaded: parport_pc]
[53959.591632] CPU: 3 PID: 24492 Comm: umount Tainted: P D OE 4.15.0-32-generic #35-Ubuntu
[53959.591634] Hardware name: LENOVO 20BSCTO1WW/
[53959.591639] RIP: 0010:kmem_
[53959.591641] RSP: 0018:ffffb743c9
[53959.591643] RAX: 217dd9f6c3be9c25 RBX: 217dd9f6c3be9c25 RCX: 000000000000033b
[53959.591645] RDX: 000000000000033a RSI: 0000000001011200 RDI: 000000000002b550
[53959.591646] RBP: ffffb743c94138f8 R08: ffff9e848dceb550 R09: 0000000000000000
[53959.591648] R10: ffffb743c9413b20 R11: 0000000000000000 R12: 0000000001011200
[53959.591649] R13: ffff9e84838e3680 R14: 217dd9f6c3be9c25 R15: ffff9e84838e3680
[53959.591651] FS: 00007f77735cf08
[53959.591653] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[53959.591655] CR2: 00007f77731c3050 CR3: 000000023f8b0001 CR4: 00000000003606e0
[53959.591656] Call Trace:
[53959.591663] ? mempool_
[53959.591668] ? wait_woken+
[53959.591671] mempool_
[53959.591673] mempool_
[53959.591676] ? memcg_kmem_
[53959.591694] cifs_small_
[53959.591708] small_smb2_
[53959.591720] SMB2_open+
[53959.591732] ? cifsConvertToUT
[53959.591734] ? __kmalloc+
[53959.591744] ? cifs_strndup_
[53959.591756] smb2_open_
[53959.591766] ? smb2_open_
[53959.591769] ? alloc_pages_
[53959.591779] smb2_query_
[53959.591791] cifs_get_
[53959.591801] ? build_path_
[53959.591812] cifs_revalidate
[53959.591822] cifs_getattr+
[53959.591826] ? common_
[53959.591829] vfs_getattr_
[53959.591831] vfs_getattr+
[53959.591834] vfs_statx+0x8d/0xe0
[53959.591837] SYSC_newfstatat
[53959.591840] SyS_newfstatat+
[53959.591843] do_syscall_
[53959.591847] entry_SYSCALL_
[53959.591849] RIP: 0033:0x7f7772eb5929
[53959.591851] RSP: 002b:00007ffe84
[53959.591853] RAX: ffffffffffffffda RBX: 0000564c6532cb00 RCX: 00007f7772eb5929
[53959.591854] RDX: 00007ffe8488cab0 RSI: 0000564c6532cce0 RDI: 00000000ffffffff
[53959.591856] RBP: 0000000000000000 R08: 0000000000000800 R09: 0000000000000000
[53959.591857] R10: 0000000000000800 R11: 0000000000000246 R12: 0000564c6532cce0
[53959.591859] R13: 0000000000000001 R14: 00000000ffffffff R15: 0000000000000000
[53959.591861] Code: 8c 9c 58 49 83 78 10 00 4d 8b 30 0f 84 00 01 00 00 4d 85 f6 0f 84 f7 00 00 00 49 63 5f 20 49 8b 3f 48 8d 4a 01 4c 89 f0 4c 01 f3 <48> 33 1b 49 33 9f 40 01 00 00 65 48 0f c7 0f 0f 94 c0 84 c0 74
[53959.591895] RIP: kmem_cache_
[53959.591898] ---[ end trace d81409578ae7a47f ]---
alloc in such traces is always suspicious for OOM cases.
But there is plenty left (and most in cache as usual).
$ cat /proc/meminfo
MemTotal: 7934876 kB
MemFree: 294440 kB
MemAvailable: 1717624 kB
Buffers: 509724 kB
Cached: 1973804 kB
SwapCached: 24156 kB
Active: 4918912 kB
Inactive: 1800720 kB
Active(anon): 4087284 kB
Inactive(anon): 1124812 kB
Active(file): 831628 kB
Inactive(file): 675908 kB
Unevictable: 24436 kB
Mlocked: 24452 kB
SwapTotal: 8286204 kB
SwapFree: 7928316 kB
Dirty: 1524 kB
Writeback: 0 kB
AnonPages: 4246216 kB
Mapped: 854556 kB
Shmem: 956696 kB
Slab: 553472 kB
SReclaimable: 222484 kB
SUnreclaim: 330988 kB
KernelStack: 25440 kB
PageTables: 130860 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 12253640 kB
Committed_AS: 20731464 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 0 kB
VmallocChunk: 0 kB
HardwareCorrupted: 0 kB
AnonHugePages: 0 kB
ShmemHugePages: 0 kB
ShmemPmdMapped: 0 kB
CmaTotal: 0 kB
CmaFree: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 730148 kB
DirectMap2M: 7557120 kB
DirectMap1G: 1048576 kB
$ sudo cat /proc/slabinfo
slabinfo - version: 2.1
# name <active_objs> <num_objs> <objsize> <objperslab> <pagesperslab> : tunables <limit> <batchcount> <sharedfactor> : slabdata <active_slabs> <num_slabs> <sharedavail>
cifs_request 13 16 16576 1 8 : tunables 0 0 0 : slabdata 16 16 0
cifs_inode_cache 273 273 776 21 4 : tunables 0 0 0 : slabdata 13 13 0
fscache_cookie_jar 138 138 88 46 1 : tunables 0 0 0 : slabdata 3 3 0
sw_flow 0 0 1696 19 8 : tunables 0 0 0 : slabdata 0 0 0
nf_conntrack 801 825 320 25 2 : tunables 0 0 0 : slabdata 33 33 0
zfs_znode_cache 0 0 1064 30 8 : tunables 0 0 0 : slabdata 0 0 0
dmu_buf_impl_t 0 0 304 26 2 : tunables 0 0 0 : slabdata 0 0 0
sa_cache 0 0 248 33 2 : tunables 0 0 0 : slabdata 0 0 0
zio_buf_14336 12 12 16384 2 8 : tunables 0 0 0 : slabdata 6 6 0
zio_buf_10240 0 0 12288 2 8 : tunables 0 0 0 : slabdata 0 0 0
zio_buf_3584 0 0 3584 9 8 : tunables 0 0 0 : slabdata 0 0 0
zio_buf_3072 0 0 3072 10 8 : tunables 0 0 0 : slabdata 0 0 0
zio_buf_2560 0 0 2560 12 8 : tunables 0 0 0 : slabdata 0 0 0
zio_buf_1536 0 0 1536 21 8 : tunables 0 0 0 : slabdata 0 0 0
zio_cache 56 56 1168 28 8 : tunables 0 0 0 : slabdata 2 2 0
kvm_async_pf 0 0 136 30 1 : tunables 0 0 0 : slabdata 0 0 0
kvm_vcpu 0 0 23424 1 8 : tunables 0 0 0 : slabdata 0 0 0
kvm_mmu_page_header 0 0 168 24 1 : tunables 0 0 0 : slabdata 0 0 0
pte_list_desc 0 0 32 128 1 : tunables 0 0 0 : slabdata 0 0 0
nfsd4_stateids 0 0 168 24 1 : tunables 0 0 0 : slabdata 0 0 0
nfsd4_files 0 0 288 28 2 : tunables 0 0 0 : slabdata 0 0 0
nfsd4_lockowners 0 0 392 20 2 : tunables 0 0 0 : slabdata 0 0 0
nfsd4_openowners 0 0 432 37 4 : tunables 0 0 0 : slabdata 0 0 0
rpc_inode_cache 23 23 704 23 4 : tunables 0 0 0 : slabdata 1 1 0
ext4_groupinfo_4k 1848 1848 144 28 1 : tunables 0 0 0 : slabdata 66 66 0
btrfs_delayed_
btrfs_delayed_node 0 0 296 27 2 : tunables 0 0 0 : slabdata 0 0 0
btrfs_ordered_
btrfs_extent_map 0 0 144 28 1 : tunables 0 0 0 : slabdata 0 0 0
btrfs_extent_buffer 0 0 280 29 2 : tunables 0 0 0 : slabdata 0 0 0
btrfs_path 0 0 112 36 1 : tunables 0 0 0 : slabdata 0 0 0
btrfs_trans_handle 0 0 120 34 1 : tunables 0 0 0 : slabdata 0 0 0
btrfs_inode 0 0 1136 28 8 : tunables 0 0 0 : slabdata 0 0 0
drm_i915_
i915_vma 3976 4945 704 23 4 : tunables 0 0 0 : slabdata 215 215 0
drm_i915_gem_object 3269 3906 768 21 4 : tunables 0 0 0 : slabdata 186 186 0
RAWv6 280 280 1152 28 8 : tunables 0 0 0 : slabdata 10 10 0
UDPv6 130 130 1216 26 8 : tunables 0 0 0 : slabdata 5 5 0
tw_sock_TCPv6 0 0 240 34 2 : tunables 0 0 0 : slabdata 0 0 0
request_sock_TCPv6 0 0 304 26 2 : tunables 0 0 0 : slabdata 0 0 0
TCPv6 75 75 2176 15 8 : tunables 0 0 0 : slabdata 5 5 0
kcopyd_job 0 0 3312 9 8 : tunables 0 0 0 : slabdata 0 0 0
dm_uevent 0 0 2632 12 8 : tunables 0 0 0 : slabdata 0 0 0
cfq_io_cq 612 612 120 34 1 : tunables 0 0 0 : slabdata 18 18 0
cfq_queue 612 612 240 34 2 : tunables 0 0 0 : slabdata 18 18 0
bsg_cmd 0 0 216 37 2 : tunables 0 0 0 : slabdata 0 0 0
mqueue_inode_cache 170 170 960 34 8 : tunables 0 0 0 : slabdata 5 5 0
fuse_request 80 80 400 20 2 : tunables 0 0 0 : slabdata 4 4 0
fuse_inode 351 351 832 39 8 : tunables 0 0 0 : slabdata 9 9 0
ecryptfs_
ecryptfs_
fat_inode_cache 88 88 744 22 4 : tunables 0 0 0 : slabdata 4 4 0
fat_cache 0 0 40 102 1 : tunables 0 0 0 : slabdata 0 0 0
squashfs_
jbd2_journal_head 720 884 120 34 1 : tunables 0 0 0 : slabdata 26 26 0
jbd2_revoke_table_s 256 256 16 256 1 : tunables 0 0 0 : slabdata 1 1 0
ext4_inode_cache 40138 58608 1088 30 8 : tunables 0 0 0 : slabdata 2049 2049 0
ext4_allocation
ext4_io_end 1088 1088 64 64 1 : tunables 0 0 0 : slabdata 17 17 0
ext4_extent_status 7344 7344 40 102 1 : tunables 0 0 0 : slabdata 72 72 0
mbcache 3212 3212 56 73 1 : tunables 0 0 0 : slabdata 44 44 0
fscrypt_info 3712 3840 32 128 1 : tunables 0 0 0 : slabdata 30 30 0
fscrypt_ctx 340 340 48 85 1 : tunables 0 0 0 : slabdata 4 4 0
userfaultfd_
dio 25 25 640 25 4 : tunables 0 0 0 : slabdata 1 1 0
pid_namespace 156 156 208 39 2 : tunables 0 0 0 : slabdata 4 4 0
posix_timers_cache 140 140 232 35 2 : tunables 0 0 0 : slabdata 4 4 0
ip4-frags 23 23 176 23 1 : tunables 0 0 0 : slabdata 1 1 0
xfrm_dst_cache 144 144 448 36 4 : tunables 0 0 0 : slabdata 4 4 0
RAW 340 340 960 34 8 : tunables 0 0 0 : slabdata 10 10 0
tw_sock_TCP 136 136 240 34 2 : tunables 0 0 0 : slabdata 4 4 0
request_sock_TCP 104 104 304 26 2 : tunables 0 0 0 : slabdata 4 4 0
TCP 240 240 2048 16 8 : tunables 0 0 0 : slabdata 15 15 0
hugetlbfs_
dquot 128 128 256 32 2 : tunables 0 0 0 : slabdata 4 4 0
eventpoll_pwq 13160 13160 72 56 1 : tunables 0 0 0 : slabdata 235 235 0
eventpoll_epi 9952 9952 128 32 1 : tunables 0 0 0 : slabdata 311 311 0
dax_cache 21 21 768 21 4 : tunables 0 0 0 : slabdata 1 1 0
request_queue 105 105 2128 15 8 : tunables 0 0 0 : slabdata 7 7 0
dmaengine-unmap-256 15 15 2112 15 8 : tunables 0 0 0 : slabdata 1 1 0
dmaengine-unmap-128 30 30 1088 30 8 : tunables 0 0 0 : slabdata 1 1 0
sock_inode_cache 12621 12788 704 23 4 : tunables 0 0 0 : slabdata 556 556 0
file_lock_cache 240 240 200 20 1 : tunables 0 0 0 : slabdata 12 12 0
net_namespace 30 30 6080 5 8 : tunables 0 0 0 : slabdata 6 6 0
shmem_inode_cache 12409 13570 712 23 4 : tunables 0 0 0 : slabdata 590 590 0
taskstats 96 96 328 24 2 : tunables 0 0 0 : slabdata 4 4 0
proc_inode_cache 25116 27144 680 24 4 : tunables 0 0 0 : slabdata 1131 1131 0
sigqueue 100 100 160 25 1 : tunables 0 0 0 : slabdata 4 4 0
bdev_cache 1053 1053 832 39 8 : tunables 0 0 0 : slabdata 27 27 0
kernfs_node_cache 244159 248580 136 30 1 : tunables 0 0 0 : slabdata 8286 8286 0
mnt_cache 3380 3591 384 21 2 : tunables 0 0 0 : slabdata 171 171 0
filp 86621 92096 256 32 2 : tunables 0 0 0 : slabdata 2878 2878 0
inode_cache 58144 63674 608 26 4 : tunables 0 0 0 : slabdata 2449 2449 0
dentry 128393 154938 192 21 1 : tunables 0 0 0 : slabdata 7378 7378 0
iint_cache 0 0 80 51 1 : tunables 0 0 0 : slabdata 0 0 0
lsm_file_cache 22510 24140 24 170 1 : tunables 0 0 0 : slabdata 142 142 0
iint_cache 0 0 80 51 1 : tunables 0 0 0 : slabdata 0 0 0
buffer_head 189167 229203 104 39 1 : tunables 0 0 0 : slabdata 5877 5877 0
nsproxy 949 949 56 73 1 : tunables 0 0 0 : slabdata 13 13 0
vm_area_struct 188699 193518 208 39 2 : tunables 0 0 0 : slabdata 4962 4962 0
mm_struct 4815 4815 2112 15 8 : tunables 0 0 0 : slabdata 321 321 0
files_cache 5773 5773 704 23 4 : tunables 0 0 0 : slabdata 251 251 0
signal_cache 8512 8512 1024 32 8 : tunables 0 0 0 : slabdata 266 266 0
sighand_cache 4118 4170 2112 15 8 : tunables 0 0 0 : slabdata 278 278 0
task_struct 3548 3780 5824 5 8 : tunables 0 0 0 : slabdata 756 756 0
cred_jar 34948 35133 192 21 1 : tunables 0 0 0 : slabdata 1673 1673 0
anon_vma 110987 112884 88 46 1 : tunables 0 0 0 : slabdata 2454 2454 0
pid 206905 211584 64 64 1 : tunables 0 0 0 : slabdata 3306 3306 0
Acpi-Operand 5096 5096 72 56 1 : tunables 0 0 0 : slabdata 91 91 0
Acpi-ParseExt 624 624 104 39 1 : tunables 0 0 0 : slabdata 16 16 0
Acpi-State 1071 1071 80 51 1 : tunables 0 0 0 : slabdata 21 21 0
Acpi-Namespace 3162 3162 40 102 1 : tunables 0 0 0 : slabdata 31 31 0
numa_policy 31 31 264 31 2 : tunables 0 0 0 : slabdata 1 1 0
trace_event_file 2024 2024 88 46 1 : tunables 0 0 0 : slabdata 44 44 0
ftrace_event_field 13691 16915 48 85 1 : tunables 0 0 0 : slabdata 199 199 0
radix_tree_node 57401 65716 584 28 4 : tunables 0 0 0 : slabdata 2347 2347 0
task_group 784 784 576 28 4 : tunables 0 0 0 : slabdata 28 28 0
dma-kmalloc-8192 0 0 8192 4 8 : tunables 0 0 0 : slabdata 0 0 0
dma-kmalloc-4096 0 0 4096 8 8 : tunables 0 0 0 : slabdata 0 0 0
dma-kmalloc-2048 0 0 2048 16 8 : tunables 0 0 0 : slabdata 0 0 0
dma-kmalloc-1024 0 0 1024 32 8 : tunables 0 0 0 : slabdata 0 0 0
dma-kmalloc-512 0 0 512 32 4 : tunables 0 0 0 : slabdata 0 0 0
dma-kmalloc-256 0 0 256 32 2 : tunables 0 0 0 : slabdata 0 0 0
dma-kmalloc-128 0 0 128 32 1 : tunables 0 0 0 : slabdata 0 0 0
dma-kmalloc-64 0 0 64 64 1 : tunables 0 0 0 : slabdata 0 0 0
dma-kmalloc-32 0 0 32 128 1 : tunables 0 0 0 : slabdata 0 0 0
dma-kmalloc-16 0 0 16 256 1 : tunables 0 0 0 : slabdata 0 0 0
dma-kmalloc-8 0 0 8 512 1 : tunables 0 0 0 : slabdata 0 0 0
dma-kmalloc-192 0 0 192 21 1 : tunables 0 0 0 : slabdata 0 0 0
dma-kmalloc-96 0 0 96 42 1 : tunables 0 0 0 : slabdata 0 0 0
kmalloc-8192 1596 1668 8192 4 8 : tunables 0 0 0 : slabdata 417 417 0
kmalloc-4096 5617 5720 4096 8 8 : tunables 0 0 0 : slabdata 715 715 0
kmalloc-2048 8386 8896 2048 16 8 : tunables 0 0 0 : slabdata 556 556 0
kmalloc-1024 18827 19328 1024 32 8 : tunables 0 0 0 : slabdata 604 604 0
kmalloc-512 29505 30976 512 32 4 : tunables 0 0 0 : slabdata 968 968 0
kmalloc-256 22639 23264 256 32 2 : tunables 0 0 0 : slabdata 727 727 0
kmalloc-192 12353 12516 192 21 1 : tunables 0 0 0 : slabdata 596 596 0
kmalloc-128 9525 9952 128 32 1 : tunables 0 0 0 : slabdata 311 311 0
kmalloc-96 18957 19824 96 42 1 : tunables 0 0 0 : slabdata 472 472 0
kmalloc-64 77545 81088 64 64 1 : tunables 0 0 0 : slabdata 1267 1267 0
kmalloc-32 421615 425216 32 128 1 : tunables 0 0 0 : slabdata 3322 3322 0
kmalloc-16 45288 47104 16 256 1 : tunables 0 0 0 : slabdata 184 184 0
kmalloc-8 33792 33792 8 512 1 : tunables 0 0 0 : slabdata 66 66 0
kmem_cache_node 8810 9216 64 64 1 : tunables 0 0 0 : slabdata 144 144 0
kmem_cache 8717 9051 384 21 2 : tunables 0 0 0 : slabdata 431 431 0
For testing of mainline kernels and such, I'm not yet sure how reproducible this will be.
I hope it is a one-time issue, If it triggers again I'll report here to have a feeling about reproducibility, but for now we have to assume that I can't immediately trigger/test for it.
---
ProblemType: Bug
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
/dev/snd/
/dev/snd/
/dev/snd/
DistroRelease: Ubuntu 18.04
HibernationDevice: RESUME=
InstallationDate: Installed on 2016-02-19 (908 days ago)
InstallationMedia: Kubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
MachineType: LENOVO 20BSCTO1WW
NonfreeKernelMo
Package: linux (not installed)
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
PulseList:
Error: command ['pacmd', 'list'] failed with exit code 1: Home directory not accessible: Permission denied
No PulseAudio daemon running, or not running as session daemon.
RelatedPackageV
linux-
linux-
linux-firmware 1.173.1
Tags: bionic
Uname: Linux 4.15.0-32-generic x86_64
UpgradeStatus: Upgraded to bionic on 2018-05-03 (104 days ago)
UserGroups:
_MarkForUpload: True
dmi.bios.date: 06/26/2015
dmi.bios.vendor: LENOVO
dmi.bios.version: N14ET31W (1.09 )
dmi.board.
dmi.board.name: 20BSCTO1WW
dmi.board.vendor: LENOVO
dmi.board.version: SDK0E50510 WIN
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.
dmi.modalias: dmi:bvnLENOVO:
dmi.product.family: ThinkPad X1 Carbon 3rd
dmi.product.name: 20BSCTO1WW
dmi.product.
dmi.sys.vendor: LENOVO
Changed in linux (Ubuntu): | |
importance: | Undecided → High |
Changed in linux (Ubuntu Bionic): | |
status: | New → Confirmed |
importance: | Undecided → High |
tags: | added: kernel-da-key |
tags: | added: cscc |
apport information