当前位置:网站首页>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
边栏推荐
- Introduction to SD NAND Flash!
- SQL外连接之交集、并集、差集查询
- What are the standards for electrical engineering
- GCC编译的时候头文件搜索规则
- 【Unity】【UGUI】【在屏幕上显示文本】
- 力扣(LeetCode)216. 组合总和 III(2022.08.04)
- FPGA:开发环境Vivado的使用
- Meteorological data processing example - matlab string cutting matching and R language date matching (data splicing)
- SD NAND Flash简介!
- What is the function of the regular expression replaceAll() method?
猜你喜欢
入门 Polkadot 平行链开发,看这一篇就够了
DFINITY 基金会创始人谈熊市沉浮,DeFi 项目该何去何从
皕杰报表的下拉框联动
NowCoderTOP35-40——持续更新ing
电竞、便捷、高效、安全,盘点OriginOS功能的关键词
单片机:温度控制DS18B20
NowCoderTOP35-40 - continuous update ing
创建一个 Dapp,为什么要选择波卡?
多线程(进阶) - 2.5w字总结
STM32+ULN2003 drives 28BYJ4 stepper motor (forward and reverse according to the number of turns)
随机推荐
企业的数字化转型到底是否可以买来?
uniapp connect ibeacon
js hijacks the array push method
NowCoderTOP35-40 - continuous update ing
【 temperature warning program DE development 】 event driven model instance
IO stream articles -- based on io stream to realize folder copy (copy subfolders and files in subfolders) full of dry goods
js劫持数组push方法
阿里顶级架构师多年总结的JVM宝典,哪里不会查哪里!
[Unity] [UGUI] [Display text on the screen]
This notebook of concurrent programming knowledge points strongly recommended by Ali will be a breakthrough for you to get an offer from a big factory
MySQL之数据视图
QSS 选择器
第四章:activiti流程中,变量的传递和获取流程变量 ,设置和获取多个流程变量,设置和获取局部流程变量「建议收藏」
Our Web3 Entrepreneurship Project, Yellow
PCB layout must know: teach you to correctly lay out the circuit board of the op amp
MySQL transactions
【MindSpore Easy-Diantong Robot-01】You may have seen many knowledge quiz robots, but this one is a bit different
The query that the user's test score is greater than the average score of a single subject
E-sports, convenience, efficiency, security, key words for OriginOS functions
STM32+ULN2003驱动28BYJ4步进电机(根据圈数正转、反转)