Bug 29957 - CIFS module fail to load with modprobe
Summary: CIFS module fail to load with modprobe
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: x86_64 Linux
Priority: Normal major
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 29960
Blocks:
  Show dependency treegraph
 
Reported: 2022-01-29 09:59 CET by Yves Rosso
Modified: 2022-02-01 16:30 CET (History)
1 user (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description Yves Rosso 2022-01-29 09:59:16 CET
Description of problem:

Using modprobe cifs fail with a memory not available error

- modprobe output:

# modprobe -vvv cifs
modprobe: INFO: custom logging function 0x40bee0 registered
insmod /lib/modules/5.15.16-server-1.mga8/kernel/drivers/infiniband/core/ib_core.ko.xz 
modprobe: INFO: Failed to insert module '/lib/modules/5.15.16-server-1.mga8/kernel/drivers/infiniband/core/ib_core.ko.xz': Cannot allocate memory
modprobe: ERROR: could not insert 'cifs': Cannot allocate memory
modprobe: INFO: context 0x23996c0 released

- dmesg output:
...
[  272.712864] Couldn't init compat dev. ret -12


Version-Release number of selected component (if applicable):

Happened after my system last update when updating from Mageia v8 kernel server 5.10.75 to 5.15.16

# uname -a
Linux mga64ikositessera 5.15.16-server-1.mga8 #1 SMP Thu Jan 20 17:46:53 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux


How reproducible:

Simply trying to do a modprobe on cifs even after a reboot
Comment 1 Yves Rosso 2022-01-29 11:31:48 CET
Before asking for memory limitation, i add the result of the following command :

# cat /proc/meminfo; /sbin/sysctl -a | grep overcommit
MemTotal:       131933508 kB
MemFree:        69228748 kB
MemAvailable:   89135516 kB
Buffers:         1275832 kB
Cached:         19039284 kB
SwapCached:            0 kB
Active:          6936940 kB
Inactive:       19493948 kB
Active(anon):       8300 kB
Inactive(anon):  6362488 kB
Active(file):    6928640 kB
Inactive(file): 13131460 kB
Unevictable:       24680 kB
Mlocked:           24680 kB
SwapTotal:       4191344 kB
SwapFree:        4191344 kB
Dirty:               164 kB
Writeback:             0 kB
AnonPages:       6140556 kB
Mapped:         35160404 kB
Shmem:            251056 kB
KReclaimable:     904648 kB
Slab:            1512520 kB
SReclaimable:     904648 kB
SUnreclaim:       607872 kB
KernelStack:       27392 kB
PageTables:       144588 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    70158096 kB
Committed_AS:   51648548 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      210692 kB
VmallocChunk:          0 kB
Percpu:            35072 kB
HardwareCorrupted:     0 kB
AnonHugePages:         0 kB
ShmemHugePages:        0 kB
ShmemPmdMapped:        0 kB
FileHugePages:         0 kB
FilePmdMapped:         0 kB
CmaTotal:              0 kB
CmaFree:               0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
Hugetlb:               0 kB
DirectMap4k:     1372388 kB
DirectMap2M:    49922048 kB
DirectMap1G:    82837504 kB
vm.nr_overcommit_hugepages = 0
vm.overcommit_kbytes = 0
vm.overcommit_memory = 0
vm.overcommit_ratio = 50
Comment 2 Thomas Backlund 2022-01-29 12:41:11 CET
Yeah, it's a fallout of enabling CIFS_SMB_DIRECT to support higher performance, but I've already reverted it on desktop kernels, and hoped it would work on server setups ... :/

I've disabled it in svn again, so it will be part of 5.15.18 that will land in updates testing later today
Thomas Backlund 2022-01-29 18:14:26 CET

Depends on: (none) => 29960

Comment 3 Yves Rosso 2022-01-30 11:18:03 CET
Thanks for changes, will try it as soon i can restart the server and report behaviour of CIFS module on 5.15.18 testing.
Lewis Smith 2022-01-31 21:00:43 CET

CC: (none) => lewyssmith

Comment 4 Thomas Backlund 2022-02-01 16:30:07 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGASA-2022-0041.html

Resolution: (none) => FIXED
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.