-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mount.cifs error: CIFS VFS: could not allocate crypto hmacmd5 #149
Comments
Is it possible to try the same with the latest snapshot release ? You can use the OpenSUSE RPM packages for this too from the Snapshot repository. It is likely going to fail in the same way, but I'd like to be sure as the upcoming 1.14 will have lots of improvements. |
I'am frustrated, same with snapshot version and all other versions. dmesg gives: |
Your issue seems to be related to this message To me that suggests that CIFS (a kernel module) is lacking some crypto module, likely Have you tried doing: From some reports about this exact error, it might also be related to anonymous (guest) CIFS access. As a test, you might want to test using a username/password (see the documentation on how to configure Relax-and-Recover to use CIFS credentials). Please do report back. |
I do not use guest account, I have created a user 'rear' with password access. |
Strike the comment about tcrypt and the crypto modules, it had references to md5 and hmac, but it's a test module so it does not offer anything. As far as I can tell the crypto stuff used in cifs does not come from kernel infrastructure. One option is to see if you can provide a different |
the kernel-crypto-md5 module is not loaded and is missing in rescue image, the solution for openSUSE is to preload the module on startup in /etc/sysconfig/kernel and it will be included in rescue image and mount.cifs works. |
what is exactly the kernel module name? Use |
the module is md5, /lib/modules/{kernel-version}/kernel/crypto/md5.ko |
I have two concerns:
I would take this up with the distribution. Can you open a ticket with OpenSUSE asking why the cifs.ko module does not depend on md5.ko ? Why they don't compile it as part of the kernel ? And how does OpenSUSE make sure it gets loaded when a user on OpenSUSE needs mount.cifs ? With this I mean, "how does the distribution handle this lack of dependencies", rather than "how does the user work around the problem". I would hate to see us implement something specific for OpenSUSE if the problem is in fact a kernel issue (which might already be fixed with newer kernels and/or which might affect other distributions too). If we really need a solution that covers everything, I would suggest to include the crypto-drivers as part if the stock drivers we include (much like storage and network). |
there is no problem with mount.cifs in openSUSE in 11.4 or 12.1 when needed, this works fine. |
@berndg There is no problem because OpenSUSE (somehow) preloads md5.ko. The real problem is that cifs.ko does not depend on md5.ko and thus gets not loaded automatically. Maybe there is a good reason for not having this dependency and that's maybe why Red Hat decided to compile it into the kernel. Just look at:
What is apparent from the 'modules.dep' file is that there is no single general-purpose module that depends on crypto modules, so I think there is a purpose in not having these dependencies. In the meantime I added some code to include all crypto modules (about 1MB on my system) on the rescue image, but that does not guarantee md5.ko is being loaded (yet). |
I need to reopen this issue as the modules are not automatically loaded, yet. |
openSUSE does not preload md5 module, it is only loaded when needed acc. use of mount.cifs and corresponding answer of cifs share. |
Ok, I misunderstood. The above fix should help in that case. If this fix does not solve your issue, feel free to reopen the issue. Thanks for your help in getting it fixed ! |
just a last comment about this: |
Ouch, I was not aware there was a special case already implemented. The question begs, should we make this specific to the CIFS case, or not. Is a 1MB increase in the size of the rescue image (in all cases) acceptable or not. I am undecided. The other question is, why did this particular script fail ? It is clear that the current fix covers more cases. Let's reopen to get to the bottom of this :-) |
further tests reconfirm my statement. |
IMHO we should automatically include these kinds of modules and not make |
I'm in favour of removing the existing script |
+1 |
Yes, I agree too. |
OK, this should already have been fixed. So closing it now. Please reopen if for some reason the included fixes do not work correctly. |
hi,
after successful 'rear -v mkbackup" and burning ISO and booting from CD and after login, I try to 'mount.cifs' and getting error message: mount error(2) no such file or directory ???
my system is openSUSE 12.1 in out of ISO installation with rear-1.13.0-13.noarch.rpm installed.
regards,
bernd
The text was updated successfully, but these errors were encountered: