RHEL9, CIFS: errors STATUS_NETWORK_NAME_DELETED and STATUS_ACCESS_DENIED on reconnect

Solution Verified - Updated -

Issue

  • On SMB2 session reconnect after a session/user timeout (STATUS_USER_SESSION_DELETED) we get errors :
[12653.665863] CIFS: VFS: \\smb2server\IPC$ smb2_get_dfs_refer: ioctl error: rc=-13
[12653.666078] CIFS: VFS: \\smb2server\IPC$ smb2_get_dfs_refer: ioctl error: rc=-78
  • POSIX to NT errors:
 501         {STATUS_NETWORK_NAME_DELETED, -EREMCHG, "STATUS_NETWORK_NAME_DELETED"},
 314         {STATUS_ACCESS_DENIED, -EACCES, "STATUS_ACCESS_DENIED"},

$ grep -E "EACCES|EREMCHG" /usr/include/asm-generic/errno*
/usr/include/asm-generic/errno-base.h:#define   EACCES      13  /* Permission denied */
/usr/include/asm-generic/errno.h:#define    EREMCHG     78  /* Remote address changed */

Environment

  • RHEL9
  • NetApp/Windows SMB server
  • User/Session timeout configured

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