当前位置:网站首页>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
边栏推荐
- three.js调试工具dat.gui使用
- 阿里顶级架构师多年总结的JVM宝典,哪里不会查哪里!
- 【MindSpore易点通机器人-01】你也许见过很多知识问答机器人,但这个有点不一样
- 首次去中心化抢劫?近2亿美元损失:跨链桥Nomad 被攻击事件分析
- 19. Server-side session technology Session
- 19.3 restart the Oracle environment
- Handwriting Currying - toString Comprehension
- Why are RELTABLESPACE values 0 for many tables displayed in sys_class?
- js劫持数组push方法
- 第四章:activiti流程中,变量的传递和获取流程变量 ,设置和获取多个流程变量,设置和获取局部流程变量「建议收藏」
猜你喜欢
创建一个 Dapp,为什么要选择波卡?
Egg framework usage (2)
Huawei's lightweight neural network architecture GhostNet has been upgraded again, and G-GhostNet (IJCV22) has shown its talents on the GPU
气象数据数据处理实例——matlab字符串切割匹配与R语言日期匹配(数据拼接)
阿里全新推出:微服务突击手册,把所有操作都写出来了PDF
mysql索引
电竞、便捷、高效、安全,盘点OriginOS功能的关键词
[Strong Net Cup 2022] WP-UM
Complete image segmentation efficiently based on MindSpore and realize Dice!
单片机:温度控制DS18B20
随机推荐
MySQL事务
How to choose coins and determine the corresponding strategy research
Oracle 19.3 restart 环境
2022杭电多校 第6场 1008.Shinobu Loves Segment Tree 规律题
皕杰报表的下拉框联动
【MindSpore易点通机器人-01】你也许见过很多知识问答机器人,但这个有点不一样
First Decentralized Heist?Loss of nearly 200 million US dollars: analysis of the attack on the cross-chain bridge Nomad
Wei Dongshan Digital Photo Frame Project Learning (6) Transplantation of tslib
Our Web3 Entrepreneurship Project, Yellow
Why are RELTABLESPACE values 0 for many tables displayed in sys_class?
2022 Huashu Cup Mathematical Modeling Ideas Analysis and Exchange
Still looking for a network backup resources?Hurry up to collect the following network backup resource search artifact it is worth collecting!
19. Server-side session technology Session
使用工具类把对象中的null值转换为空字符串(集合也可以使用)
The query that the user's test score is greater than the average score of a single subject
[Android]如何使用RecycleView in Kotlin project
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
DFINITY 基金会创始人谈熊市沉浮,DeFi 项目该何去何从
【 temperature warning program DE development 】 event driven model instance
E-sports, convenience, efficiency, security, key words for OriginOS functions