当前位置:网站首页>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
边栏推荐
- RT - Thread record (a, RT, RT Thread version - Thread Studio development environment and cooperate CubeMX quick-and-dirty)
- mysql索引
- The query that the user's test score is greater than the average score of a single subject
- What is SPL?
- 阿里顶级架构师多年总结的JVM宝典,哪里不会查哪里!
- RT-Thread记录(一、RT-Thread 版本、RT-Thread Studio开发环境 及 配合CubeMX开发快速上手)
- 【Unity】【UGUI】【在屏幕上显示文本】
- Open Source Summer | How OpenHarmony Query Device Type (eTS)
- Data Middle Office Construction (10): Data Security Management
- 高质量 DeFi 应用构建指南,助力开发者玩转 DeFi Summer
猜你喜欢

2022华数杯数学建模A题环形振荡器的优化设计思路思路代码分享

单片机:温度控制DS18B20

基于MindSpore高效完成图像分割,实现Dice!

Common operations of oracle under linux and daily accumulation of knowledge points (functions, timed tasks)

E-sports, convenience, efficiency, security, key words for OriginOS functions

PCB layout must know: teach you to correctly lay out the circuit board of the op amp

JS introduction to reverse the recycling business network of learning, simple encryption mobile phone number

语音社交软件开发——充分发挥其价值

Egg framework usage (1)

入门 Polkadot 平行链开发,看这一篇就够了
随机推荐
Pytorch Deep Learning Quick Start Tutorial -- Mound Tutorial Notes (3)
MySQL之数据视图
2022杭电多校 第6场 1008.Shinobu Loves Segment Tree 规律题
什么是 DevOps?看这一篇就够了!
three.js debugging tool dat.gui use
电气工程的标准是什么
上位机开发C#语言:模拟STC串口助手接收单片机发送数据
Pycharm 常用外部工具
uniapp connect ibeacon
19. Server-side session technology Session
牛刀小试基本语法,Go lang1.18入门精炼教程,由白丁入鸿儒,go lang基本语法和变量的使用EP02
电竞、便捷、高效、安全,盘点OriginOS功能的关键词
Login function and logout function (St. Regis Takeaway)
SMB + SMB2: Accessing shares return an error after prolonged idle period
What is the function of the regular expression replaceFirst() method?
How can project cost control help project success?
【AGC】增长服务1-远程配置示例
一文道清什么是SPL
2022 Huashu Cup Mathematical Modeling Ideas Analysis and Exchange
PCB layout must know: teach you to correctly lay out the circuit board of the op amp