当前位置:网站首页>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
边栏推荐
- IO stream articles -- based on io stream to realize folder copy (copy subfolders and files in subfolders) full of dry goods
- 还在找网盘资源吗?快点收藏如下几个值得收藏的网盘资源搜索神器吧!
- 无题七
- Egg framework usage (1)
- What is SPL?
- matcher中find,matches,lookingAt匹配字符串的不同之处说明
- 高质量 DeFi 应用构建指南,助力开发者玩转 DeFi Summer
- 技术干货 | 基于 MindSpore 实现图像分割之豪斯多夫距离
- three.js debugging tool dat.gui use
- STM32+ULN2003 drives 28BYJ4 stepper motor (forward and reverse according to the number of turns)
猜你喜欢

【MindSpore Easy-Diantong Robot-01】You may have seen many knowledge quiz robots, but this one is a bit different

Introduction to SD NAND Flash!

Custom filters and interceptors implement ThreadLocal thread closure

Microservice Technology Stack

dotnet OpenXML parsing PPT charts Getting started with area charts

开源一夏|OpenHarmony如何查询设备类型(eTS)

茄子科技CEO仇俊:以用户为中心,做用户真正需要的产品

高质量 DeFi 应用构建指南,助力开发者玩转 DeFi Summer

首次去中心化抢劫?近2亿美元损失:跨链桥Nomad 被攻击事件分析

egg框架使用(一)
随机推荐
2022华数杯数学建模A题环形振荡器的优化设计思路思路代码分享
自定义过滤器和拦截器实现ThreadLocal线程封闭
uniapp 连接ibeacon
机器学习-基础知识 - Precision, Recall, Sensitivity, Specificity, Accuracy, FNR, FPR, TPR, TNR, F1 Score, Bal
第四章:activiti RuntimeService设置获和取流程变量,及与taskService的区别,开始和完成任务时设置流程变量[通俗易懂]
How does the official account operate and maintain?Public account operation and maintenance professional team
Oracle临时表空间作用
Complete image segmentation efficiently based on MindSpore and realize Dice!
无题十四
MySQL事务
Oracle temporary table space role
长达四年的减肥记录
QSS 选择器
IO stream articles -- based on io stream to realize folder copy (copy subfolders and files in subfolders) full of dry goods
开源一夏|OpenHarmony如何查询设备类型(eTS)
mysql进阶(二十七)数据库索引原理
无题七
After Keil upgrades to AC6, what changes?
我们的Web3创业项目,黄了
无题六