Bug 14398 - cifs vfs should pause if krb5 ticket is not valid
Summary: cifs vfs should pause if krb5 ticket is not valid
Status: NEW
Alias: None
Product: CifsVFS
Classification: Unclassified
Component: kernel fs (show other bugs)
Version: 3.x
Hardware: All All
: P5 normal
Target Milestone: ---
Assignee: Steve French
QA Contact: cifs QA contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-03 12:43 UTC by Björn Jacke
Modified: 2020-07-16 00:09 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Björn Jacke 2020-06-03 12:43:24 UTC
I have a cifs mount (kernel 5.4.0 from Ubuntu 20.04) that was done a couple of days ago that was made with options sec=krb5,multiuser. This worked fine at mount time but the krb5 ticket is expired now, the ticket of a normal user and also the ticket of the user given for the mount command. What I experience in that situation is:

1) cifs vfs sends once a minute a negotiate protocol request to the server, I don't see what's the use of that

2) dmesg shows every 2 seconds (!) entries like this:
  [1081831.771237] CIFS VFS: \\server.realm Send error in SessSetup = -126
  [1081831.771259] CIFS VFS: \\server.realm Send error in SessSetup = -126
  [1081833.787283] CIFS VFS: \\server.realm Send error in SessSetup = -126
  [1081833.787303] CIFS VFS: \\server.realm Send error in SessSetup = -126
Every 2 seconds is quite often in the long run, once would be enough, or? And without a valid krb5 ticket, this is also epected and logged differently.

After fetching new krb5 tickets the messages also stopped but the above mentioned situation with expired tickets should be treated better.