当前位置:网站首页>SMB + SMB2: Accessing shares return an error after prolonged idle period
SMB + SMB2: Accessing shares return an error after prolonged idle period
2022-08-05 10:05:00 【51CTO】
Environment
Red Hat Enterprise Linux
6
7
8
SMB
SMB2
Issue
After a period of inactivity, accessing a SMB v1 share returns Permission denied for a user, but not others
After a period of inactivity, accessing a SMB v2+ share returns Input/output error for a user, but not others.
The following error may be returned in the logs: CIFS VFS: Unexpected lookup error -5
Periodically accessing a share avoids the errors.
Shares have to be unmounted and then remounted to regain access.
Resolution
SMB v1
RHEL 6
The ability for the client to recover from this issue will not be improved in Red Hat Enterprise Linux 6. The maximum version supported by the client in Red Hat Enterprise Linux 6 is SMBv1. Please see Workaround section for options.
RHEL7
This issue has been resolved with the errata RHSA-2021:0336 for the package(s) kernel-3.10.0-1160.15.2.el7 or later.
RHEL8
This issue has been resolved with the errata RHSA-2021:1578 for the package(s) kernel-4.18.0-305.el8 or later.
Workaround
Periodically access the SMB share to prevent the session from being closed.
Extend the session length timer on the SMB server.
Use SMB v2+
SMB v2+
RHEL 7.5
This issue has been resolved with the errata RHSA-2018:3459 for the package(s) kernel-3.10.0-862.20.2.el7 or later.
RHEL7
This issue has been resolved with the errata RHSA-2018:3083 for the package(s) kernel-3.10.0-957.el7 or later.
RHEL8
RHEL8 is not impacted by this issue
Root Cause
Historically, RHEL SMB clients did not attempt to reconnect to a SMB server after receiving STATUS_USER_SESSION_DELETED.
The below commit changes RHEL SMB client behavior for SMB v2+ and will force users to reconnect to a SMB server after receiving STATUS_USER_SESSION_DELETED instead of returning Input/output error when the share is accessed.
Raw
However, there is currently no transparent recovery for RHEL7 or RHEL8 as noted here. This means that the session will recover, but EAGAIN may be leaked to an application when requesting up-to-date inode information.
Diagnostic Steps
Record client side network traffic when it is accessing the SMB share.
On an unpatched system, the client is unable to establish a new connection for SMB2.
Raw
版权声明:本文为博主原创文章,未经博主允许不得转载。
Linux
边栏推荐
- 无题八
- Still looking for a network backup resources?Hurry up to collect the following network backup resource search artifact it is worth collecting!
- three objects are arranged in a spherical shape around the circumference
- 浅析WSGI协议
- Egg framework usage (1)
- Voice conversion相关语音数据集综合汇总
- three.js调试工具dat.gui使用
- Can MySQL use aggregate functions without GROUP BY?
- IO stream articles -- based on io stream to realize folder copy (copy subfolders and files in subfolders) full of dry goods
- 正则表达式replaceFirst()方法具有什么功能呢?
猜你喜欢

Jenkins manual (2) - software configuration

我们的Web3创业项目,黄了

three objects are arranged in a spherical shape around the circumference

Analysis and practice of antjian webshell dynamic encrypted connection

Egg framework usage (1)

Introduction to SD NAND Flash!

egg框架使用(二)

STM32+ULN2003 drives 28BYJ4 stepper motor (forward and reverse according to the number of turns)

After Keil upgrades to AC6, what changes?

Complete image segmentation efficiently based on MindSpore and realize Dice!
随机推荐
机器学习-基础知识 - Precision, Recall, Sensitivity, Specificity, Accuracy, FNR, FPR, TPR, TNR, F1 Score, Bal
无题一
leetcode: 529. 扫雷游戏
IO流篇 -- 基于io流实现文件夹拷贝(拷贝子文件夹及子文件夹内文件)满满的干货
Qiu Jun, CEO of Eggplant Technology: Focus on users and make products that users really need
Which big guy has the 11G GI and ojvm patches in April or January 2020, please help?
百年北欧奢华家电品牌ASKO智能三温区酒柜臻献七夕,共品珍馐爱意
Wei Dongshan Digital Photo Frame Project Learning (6) Transplantation of tslib
EU | Horizon 2020 ENSEMBLE: D2.13 SOTIF Safety Concept (Part 2)
The JVM collection that Alibaba's top architects have summarized for many years, where can't I check it!
Oracle temporary table space role
【温度预警程序de开发】事件驱动模型实例运用
七夕浪漫约会不加班,RPA机器人帮你搞定工作
第八章:activiti多用户任务分配
【MindSpore Easy-Diantong Robot-01】You may have seen many knowledge quiz robots, but this one is a bit different
2022 Huashu Cup Mathematical Modeling Question A Optimization Design Ideas for Ring Oscillators Code Sharing
The century-old Nordic luxury home appliance brand ASKO smart wine cabinet in the three-temperature area presents the Chinese Valentine’s Day, and tastes the love of the delicacy
High-quality DeFi application building guide to help developers enjoy DeFi Summer
首次去中心化抢劫?近2亿美元损失:跨链桥Nomad 被攻击事件分析
一文道清什么是SPL