当前位置:网站首页>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
边栏推荐
- 【MindSpore Easy-Diantong Robot-01】You may have seen many knowledge quiz robots, but this one is a bit different
- leetcode: 529. 扫雷游戏
- 第四章:activiti RuntimeService设置获和取流程变量,及与taskService的区别,开始和完成任务时设置流程变量[通俗易懂]
- 【Office】Microsoft Office下载地址合集(微软官方原版离线安装下载)
- 第八章:activiti多用户任务分配
- 使用工具类把对象中的null值转换为空字符串(集合也可以使用)
- 气象数据数据处理实例——matlab字符串切割匹配与R语言日期匹配(数据拼接)
- NowCoderTOP35-40——持续更新ing
- Wei Dongshan Digital Photo Frame Project Learning (6) Transplantation of tslib
- 什么是CRM决策分析管理?
猜你喜欢
[强网杯2022]WP-UM
IDEA执行Test操作导致数据插入时出现了重复数据
dotnet OpenXML 解析 PPT 图表 面积图入门
19.服务器端会话技术Session
egg框架使用(二)
Oracle临时表空间作用
DFINITY 基金会创始人谈熊市沉浮,DeFi 项目该何去何从
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
Confessing in the era of digital transformation: Mai Cong Software allows enterprises to use data in the easiest way
5.部署web项目到云服务器
随机推荐
High-quality DeFi application building guide to help developers enjoy DeFi Summer
PHP 操作mangoDb
2022 Huashu Cup Mathematical Modeling Question A Optimization Design Ideas for Ring Oscillators Code Sharing
入门 Polkadot 平行链开发,看这一篇就够了
hcip BGP enhancement experiment
无题一
攻防世界-PWN-new_easypwn
Jenkins使用手册(2) —— 软件配置
还在找网盘资源吗?快点收藏如下几个值得收藏的网盘资源搜索神器吧!
Egg framework usage (2)
After Keil upgrades to AC6, what changes?
无题十四
七夕浪漫约会不加班,RPA机器人帮你搞定工作
Pycharm 常用外部工具
数据中台建设(十):数据安全管理
开源一夏|OpenHarmony如何查询设备类型(eTS)
Redis源码解析:Redis Cluster
Advanced usage of C language
IO stream articles -- based on io stream to realize folder copy (copy subfolders and files in subfolders) full of dry goods
手写柯里化 - toString 理解