当前位置:网站首页>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
边栏推荐
- 创建一个 Dapp,为什么要选择波卡?
- GCC编译的时候头文件搜索规则
- Data Middle Office Construction (10): Data Security Management
- 【温度预警程序de开发】事件驱动模型实例运用
- 企业的数字化转型到底是否可以买来?
- 【翻译】混沌网+SkyWalking:为混沌工程提供更好的可观察性
- uniapp 连接ibeacon
- PCB layout must know: teach you to correctly lay out the circuit board of the op amp
- Jenkins manual (2) - software configuration
- MySQL advanced (twenty-seven) database index principle
猜你喜欢

What are the standards for electrical engineering

创建一个 Dapp,为什么要选择波卡?

5. Deploy the web project to the cloud server

【MindSpore易点通机器人-01】你也许见过很多知识问答机器人,但这个有点不一样

SQL Outer Join Intersection, Union, Difference Query

The founder of the DFINITY Foundation talks about the ups and downs of the bear market, and where should DeFi projects go?

多线程(进阶) - 2.5w字总结

【综合类型第 35 篇】程序员的七夕浪漫时刻

上位机开发C#语言:模拟STC串口助手接收单片机发送数据

hcip BGP enhancement experiment
随机推荐
一个栈的输入序列为1 2 3 4 5 的出站顺序的理解
第四章:activiti流程中,变量的传递和获取流程变量 ,设置和获取多个流程变量,设置和获取局部流程变量「建议收藏」
第七章,activiti个人任务分配,动态指定和监听器指定任务委派人「建议收藏」
Handwriting Currying - toString Comprehension
如何修改管理工具client_encoding
STM32+ULN2003 drives 28BYJ4 stepper motor (forward and reverse according to the number of turns)
[Strong Net Cup 2022] WP-UM
Common operations of oracle under linux and daily accumulation of knowledge points (functions, timed tasks)
Microcontroller: temperature control DS18B20
Is digital transformation a business buy-in?
Getting started with Polkadot parachain development, this article is enough
What are the standards for electrical engineering
【Unity】【UGUI】【在屏幕上显示文本】
第五章:多线程通信—wait和notify
What is SPL?
导火索:OAuth 2.0四种授权登录方式必读
你最隐秘的性格在哪?
Four years of weight loss record
技术干货 | 基于 MindSpore 实现图像分割之豪斯多夫距离
机器学习-基础知识 - Precision, Recall, Sensitivity, Specificity, Accuracy, FNR, FPR, TPR, TNR, F1 Score, Bal