Project

General

Profile

Actions

Bug #13584

open

CIFS mount on CentOS 8 from OmniOS 151036 works once then generates "Invalid argument" on second try

Added by Lee Damon 5 months ago. Updated 5 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
cifs - CIFS server and client
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Using autofs to do a mount:

footest -fstype=cifs,vers=2.1,sec=krb5,user=&,uid=$UID,gid=$GID,cruid=$UID,file_mode=0600,dir_mode=0700,nounix,noserverino ://testfs1/footest

Client is CentOS Linux release 8.3.2011 - 4.18.0-240.1.1.el8_3.x86_64

When served from OmniOS 5.11 omnios-r151030-5bd7739fe4 February 2021
the CIFS filesystem can be accessed successfully multiple times in a row:
: || lvd@nomaddev ~ [1006] ; ls /cifs/footest
galf
: || lvd@nomaddev ~ [1007] ; ls /cifs/footest
galf
: || lvd@nomaddev ~ [1007] ; ls /cifs/footest
galf
: || lvd@nomaddev ~ [1007] ; ls /cifs/footest
galf
: || lvd@nomaddev ~ [1007] ; ls /cifs/footest
galf
: || lvd@nomaddev ~ [1007] ; ls /cifs/footest
galf
: || lvd@nomaddev ~ [1007] ; ls /cifs/footest
galf
: || lvd@nomaddev ~ [1007] ; ls /cifs/footest
galf
: || lvd@nomaddev ~ [1007] ; ls /cifs/footest
galf
: || lvd@nomaddev ~ [1007] ; ls /cifs/footest
galf

but when accessd from the same server running OmniOS r151036 omnios-r151036-de483383c0 February 2021
it can only be accessed once or twice before getting Invlaid argument errors:
: || lvd@nomaddev ~ [1002] ; ls /cifs/footest
galf
: || lvd@nomaddev ~ [1003] ; ls /cifs/footest
galf
: || lvd@nomaddev ~ [1003] ; ls /cifs/footest
ls: cannot access '/cifs/footest': Invalid argument
: || lvd@nomaddev ~ [1003] ; ls /cifs/footest
ls: cannot access '/cifs/footest': Invalid argument
: || lvd@nomaddev ~ [1003] ; ls /cifs/footest
ls: cannot access '/cifs/footest': Invalid argument
: || lvd@nomaddev ~ [1003] ; ls /cifs/footest
ls: cannot access '/cifs/footest': Invalid argument
: || lvd@nomaddev ~ [1003] ; ls /cifs/footest
ls: cannot access '/cifs/footest': Invalid argument

Sniffs from both runs are attached.

This does not happen on CentOS 7 hosts with the same map entry.


Files

tcpdump_151030.pcap (33.8 KB) tcpdump_151030.pcap Lee Damon, 2021-02-25 05:09 PM
tcpdump_151036.pcap (16.8 KB) tcpdump_151036.pcap Lee Damon, 2021-02-25 05:09 PM
Actions #1

Updated by Gordon Ross 5 months ago

The "invalid argument" return happens in frame 57 because the create (open) request in frame 56 specifies a lease, and the lease key is all zeros. The client is supposed to fill that in with something.

The other trace does not show this error because SMB2 leases were not negotiated.
Perhaps you can update your client with a bug fix, or figure out a way to ask it not to use leases.

Actions

Also available in: Atom PDF