当前位置:网站首页>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
边栏推荐
- 第五章:redis持久化,包括rdb和aof两种方式[通俗易懂]
- 数分面试(一)----与业务相关
- What is SPL?
- How does the official account operate and maintain?Public account operation and maintenance professional team
- linux下oracle常见操作以及日常积累知识点(函数、定时任务)
- 静态链接和动态链接
- Meteorological data processing example - matlab string cutting matching and R language date matching (data splicing)
- 5. Deploy the web project to the cloud server
- JS逆向入门学习之回收商网,手机号码简易加密解析
- 单片机:温度控制DS18B20
猜你喜欢

Pytorch Deep Learning Quick Start Tutorial -- Mound Tutorial Notes (3)

【 temperature warning program DE development 】 event driven model instance

SD NAND Flash简介!

Meteorological data processing example - matlab string cutting matching and R language date matching (data splicing)

NowCoderTOP35-40 - continuous update ing

【温度预警程序de开发】事件驱动模型实例运用

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

技术干货 | 基于 MindSpore 实现图像分割之豪斯多夫距离

How to choose coins and determine the corresponding strategy research

2022 Huashu Cup Mathematical Modeling Question A Optimization Design Ideas for Ring Oscillators Code Sharing
随机推荐
Analysis and practice of antjian webshell dynamic encrypted connection
【MindSpore易点通机器人-01】你也许见过很多知识问答机器人,但这个有点不一样
Common operations of oracle under linux and daily accumulation of knowledge points (functions, timed tasks)
The JVM collection that Alibaba's top architects have summarized for many years, where can't I check it!
导火索:OAuth 2.0四种授权登录方式必读
公众号如何运维?公众号运维专业团队
E-sports, convenience, efficiency, security, key words for OriginOS functions
高质量 DeFi 应用构建指南,助力开发者玩转 DeFi Summer
气象数据数据处理实例——matlab字符串切割匹配与R语言日期匹配(数据拼接)
FPGA: Basic Getting Started Button Controlling LED Lights
第八章:activiti多用户任务分配
攻防世界-PWN-new_easypwn
Egg framework usage (1)
登录功能和退出功能(瑞吉外卖)
PHP operation mangoDb
What is SPL?
Data Middle Office Construction (10): Data Security Management
static linking and dynamic linking
The founder of the DFINITY Foundation talks about the ups and downs of the bear market, and where should DeFi projects go?
数分面试(一)----与业务相关