Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1389980

Summary: sun4i-ss 1c15000.crypto-engine: ERROR: Empty IV
Product: [Fedora] Fedora Reporter: Daniel Laczi <daniell1>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: daniell1, gansalmon, ichavero, itamar, jonathan, kernel-maint, madhu.chinakonda, mchehab, pbrobinson
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-17 07:33:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 245418    

Description Daniel Laczi 2016-10-30 10:21:31 UTC
Description of problem:
Mounting a cifs share with option sec=ntlm gives the following error:
kernel: sun4i-ss 1c15000.crypto-engine: ERROR: Empty IV
kernel: CIFS VFS: could not encrypt crypt key rc: -22
kernel: CIFS VFS: Error -22 during NTLM authentication
kernel: CIFS VFS: Send error in SessSetup = -22
kernel: CIFS VFS: cifs_mount failed w/return code = -22

Hardware is a Cubietruck. ntlmssp works.

Version-Release number of selected component (if applicable):
Kernel 4.7.9-200.fc24.armv7hl on a Cubietruck (Allwinner A20 SoC)

How reproducible:
Mount a cifs share with sec=ntlm like in the following command:
mount -t cifs -o username=user,sec=ntlm //servername./foldername /mountpoint

Actual results:
The mount command results in a kernel error

Expected results:
Mounted cifs share

Comment 1 Peter Robinson 2016-10-31 18:18:07 UTC
Does it work if you black list the sun4i_ss driver?

Add a file called /etc/modprobe.d/sun4i.conf

with the line:
blacklist sun4i_ss

Comment 2 Daniel Laczi 2016-10-31 18:35:01 UTC
Hi,

ntlm as well as ntlmssp both work when the sun4i_ss driver is blacklisted.

Comment 3 Peter Robinson 2017-02-16 11:00:07 UTC
Are you still seeing this with 4.9.x kernels?

Comment 4 Daniel Laczi 2017-02-16 19:25:20 UTC
No, I don't see this anymore. The system is currently running kernel 4.9.9-200.fc25.armv7hl.

Comment 5 Peter Robinson 2017-02-17 07:33:06 UTC
thanks for the update