当前位置:网站首页>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:21: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
边栏推荐
- 第八章:activiti多用户任务分配
- How can project cost control help project success?
- LeetCode 216. Combined Sum III (2022.08.04)
- Development common manual link sharing
- 还在找网盘资源吗?快点收藏如下几个值得收藏的网盘资源搜索神器吧!
- STM32+ULN2003 drives 28BYJ4 stepper motor (forward and reverse according to the number of turns)
- 你最隐秘的性格在哪?
- 第七章,activiti个人任务分配,动态指定和监听器指定任务委派人「建议收藏」
- Analysis and practice of antjian webshell dynamic encrypted connection
- FPGA:基础入门LED灯闪烁
猜你喜欢

Microcontroller: temperature control DS18B20

Egg framework usage (2)

Confessing in the era of digital transformation: Mai Cong Software allows enterprises to use data in the easiest way

Meteorological data processing example - matlab string cutting matching and R language date matching (data splicing)

FPGA: Use of the development environment Vivado

Jenkins使用手册(2) —— 软件配置

IDEA performs the Test operation, resulting in duplicate data when data is inserted

华为轻量级神经网络架构GhostNet再升级,GPU上大显身手的G-GhostNet(IJCV22)

气象数据数据处理实例——matlab字符串切割匹配与R语言日期匹配(数据拼接)

The JVM collection that Alibaba's top architects have summarized for many years, where can't I check it!
随机推荐
Go compilation principle series 6 (type checking)
【综合类型第 35 篇】程序员的七夕浪漫时刻
2022华数杯数学建模思路分析交流
【 temperature warning program DE development 】 event driven model instance
The difference between find, matches, lookingAt matching strings in matcher
多线程(进阶) - 2.5w字总结
第七章,activiti个人任务分配,动态指定和监听器指定任务委派人「建议收藏」
[Unity] [UGUI] [Display text on the screen]
【翻译】混沌网+SkyWalking:为混沌工程提供更好的可观察性
Common operations of oracle under linux and daily accumulation of knowledge points (functions, timed tasks)
第六章:activiti流程分流判断之排它网关和并行网关
导火索:OAuth 2.0四种授权登录方式必读
Technical dry goods | Hausdorff distance for image segmentation based on MindSpore
19. Server-side session technology Session
19.3 restart the Oracle environment
Create a Dapp, why choose Polkadot?
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
How does the official account operate and maintain?Public account operation and maintenance professional team
机器学习-基础知识 - Precision, Recall, Sensitivity, Specificity, Accuracy, FNR, FPR, TPR, TNR, F1 Score, Bal
MySQL data view