[RHEL 8.3][CIFS]mount a kerberized cifs returns "Send error in SessSetup = -126"

Solution Unverified - Updated -

Issue

On a very specific kernel version an attempt to mount a CIFS share with kerberos authentication returns:

CIFS VFS: \\server Send error in SessSetup = -126
CIFS VFS: cifs_mount failed w/return code = -2

The mount actually completes, but any attempt to access files beyond the mount point

# ls -la /<mount_point>
ls: cannot access '/<mount_point>/<directory_name>': Invalid argument
total 0
drwxr-xr-x   6 root         root          97 Jul 26 12:05 .
drwxr-xr-x. 10 root         root         123 Jun 21  2022 ..
d??????????  ? ?            ?              ?            ? <directory_name>

Earlier kernel versions or later kernels do not show this behaviour with absolutely no changes to the configuration (filesystem or kerberos).

Environment

  • Red Hat Enterprise Linux 8.3
  • kernel 4.18.0-240.22.1.el8_3.x86_64
  • CIFS
  • kerberos used for authentication

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content