Another workaround besides using gvfs-smb that also works, at least for me, is adding vers=2.0 to the options in /etc/fstab.
vers=2.0 also worked for me.
]]>EDIT: If not, probably faster to grab the source tarball https://mirrors.edge.kernel.org/pub/lin … 8.7.tar.gz
]]>adding vers=2.0 to the options in /etc/fstab.
That's the best solution so far indeed.
vers=3.02 is working as well. vers=3.1.1 is broken.
Is anyone able to apply the revert and build the cifs module for arch's linux?
This might be a good speed/traffic (230MB) tradeoff:
git clone --depth=16 -b linux-5.18.y git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
cd linux
git revert -n 16d5d910 ca83f50b
cd fs/cifs
make -j4 -C /lib/modules/`uname -r`/build M=$PWD
strip -d cifs.ko
zstd cifs.ko
sudo cp cifs.ko.zst `modinfo -F filename cifs`
[Mount]
What=//myserver.mydomain.org/media
Where=/mnt/media
Type=cifs
Options=credentials=/home/user/.smb2credentials,vers=3.1.1,uid=1000,gid=1000
[Install]
WantedBy=multi-user.target
Does anybody see the issue?
]]>Another workaround besides using gvfs-smb that also works, at least for me, is adding vers=2.0 to the options in /etc/fstab.
Worked for me. Thanks for saving my day
]]>Another workaround besides using gvfs-smb that also works, at least for me, is adding vers=2.0 to the options in /etc/fstab.
Works also for me
]]>$ git rev-list v5.18.7..v5.18.8 -- fs/cifs | xargs git revert
$ cd fs/cifs
$ make -j8 -C /lib/modules/`uname -r`/build M=$PWD
$ zstd cifs.ko
$ sudo cp cifs.ko.zst `modinfo -F filename cifs`
and it works now.
]]># https://downgit.github.io
# https://github.com/gregkh/linux/tree/v5.18.7/fs/cifs
# https://github.com/gregkh/linux/tree/v5.18.7/fs/smbfs_common
# directories: build/cifs, build/smbfs_common
# install linux-headers for your kernel
# https://docs.kernel.org/kbuild/modules.html
cd build/cifs
make -C /lib/modules/`uname -r`/build M=$PWD
Edit: In this case, building the version for v5.18.7 is the same as reverting the commits in 5.18.9.
]]>$ git describe HEAD
v5.18.9
$ zcat /proc/config.gz > .config
$ make -j8 $(uname -r | awk -F- '{print "EXTRAVERSION=-" $2, "LOCALVERSION=-" $3}') modules_prepare
[...]
$ make -j8 M=fs/cifs
[...]
MODPOST fs/cifs/Module.symvers
ERROR: modpost: "__put_devmap_managed_page" [fs/cifs/cifs.ko] undefined!
ERROR: modpost: "kmem_cache_alloc_lru" [fs/cifs/cifs.ko] undefined!
ERROR: modpost: "__fscache_begin_write_operation" [fs/cifs/cifs.ko] undefined!
ERROR: modpost: "__fscache_use_cookie" [fs/cifs/cifs.ko] undefined!
ERROR: modpost: "kfree_skb_reason" [fs/cifs/cifs.ko] undefined!
ERROR: modpost: "__module_put_and_kthread_exit" [fs/cifs/cifs.ko] undefined!
ERROR: modpost: "__fscache_relinquish_volume" [fs/cifs/cifs.ko] undefined!
ERROR: modpost: "hugetlb_free_vmemmap_enabled_key" [fs/cifs/cifs.ko] undefined!
ERROR: modpost: "__fscache_unuse_cookie" [fs/cifs/cifs.ko] undefined!
ERROR: modpost: "__trace_trigger_soft_disabled" [fs/cifs/cifs.ko] undefined!
WARNING: modpost: suppressed 3 unresolved symbol warnings because there were too many)
make[1]: *** [scripts/Makefile.modpost:134: fs/cifs/Module.symvers] Error 1
make[1]: *** Deleting file 'fs/cifs/Module.symvers'
make: *** [Makefile:1753: modules] Error 2
Is our gcc too new or something?
]]>