当前位置:网站首页>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
边栏推荐
- Score interview (1)----related to business
- Data Middle Office Construction (10): Data Security Management
- 阿里全新推出:微服务突击手册,把所有操作都写出来了PDF
- High-quality DeFi application building guide to help developers enjoy DeFi Summer
- Pytorch Deep Learning Quick Start Tutorial -- Mound Tutorial Notes (3)
- The difference between find, matches, lookingAt matching strings in matcher
- 第五章:activiti流程分流判断,判断走不同的任务节点
- 第六章:activiti流程分流判断之排它网关和并行网关
- 产品太多了,如何实现一次登录多产品互通?
- 深入理解 Istio 流量管理的超时时间设置
猜你喜欢
5. Deploy the web project to the cloud server
Jenkins使用手册(2) —— 软件配置
Egg framework usage (1)
Pycharm 常用外部工具
19. Server-side session technology Session
How can project cost control help project success?
技术干货 | 基于 MindSpore 实现图像分割之豪斯多夫距离
入门 Polkadot 平行链开发,看这一篇就够了
SD NAND Flash简介!
This notebook of concurrent programming knowledge points strongly recommended by Ali will be a breakthrough for you to get an offer from a big factory
随机推荐
Go编译原理系列6(类型检查)
Is digital transformation a business buy-in?
Login function and logout function (St. Regis Takeaway)
Open Source Summer | How OpenHarmony Query Device Type (eTS)
阿里全新推出:微服务突击手册,把所有操作都写出来了PDF
This notebook of concurrent programming knowledge points strongly recommended by Ali will be a breakthrough for you to get an offer from a big factory
Introduction to SD NAND Flash!
第五章:redis持久化,包括rdb和aof两种方式[通俗易懂]
How to choose coins and determine the corresponding strategy research
STM32+ULN2003 drives 28BYJ4 stepper motor (forward and reverse according to the number of turns)
FPGA:基础入门按键控制LED灯
创建一个 Dapp,为什么要选择波卡?
mysql索引
The fuse: OAuth 2.0 four authorized login methods must read
SMB + SMB2: Accessing shares return an error after prolonged idle period
开发常用手册链接分享
2022华数杯数学建模A题环形振荡器的优化设计思路思路代码分享
2022华数杯数学建模思路分析交流
LeetCode 216. Combined Sum III (2022.08.04)
A small test of basic grammar, Go lang1.18 introductory refining tutorial, from Bai Ding to Hongru, basic grammar of go lang and the use of variables EP02