当前位置:网站首页>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
边栏推荐
- 仿SBUS与串口数据固定转换
- 皕杰报表的下拉框联动
- uniapp 连接ibeacon
- Analysis and practice of antjian webshell dynamic encrypted connection
- The technological achievements of Shanghai Konan were selected into the "2021 Shanghai Network Security Industry Innovation Research Achievement Catalog" by the Municipal Commission of Economy and Inf
- 阿里顶级架构师多年总结的JVM宝典,哪里不会查哪里!
- NowCoderTOP35-40 - continuous update ing
- Where is your most secretive personality?
- [Office] Collection of Microsoft Office download addresses (offline installation and download of Microsoft's official original version)
- Jenkins manual (2) - software configuration
猜你喜欢

Analysis and practice of antjian webshell dynamic encrypted connection

MySQL事务

皕杰报表的下拉框联动

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

Seata source code analysis: initialization process of TM RM client

leetcode: 529. Minesweeper Game

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

hcip BGP enhancement experiment

Keil升级到AC6后,到底有哪些变化?

偏向锁/轻量锁/重级锁锁锁更健康,上锁解锁到底是怎么完成实现的
随机推荐
Where is your most secretive personality?
Advanced usage of C language
无题三
High-quality DeFi application building guide to help developers enjoy DeFi Summer
IDEA执行Test操作导致数据插入时出现了重复数据
正则表达式replaceAll()方法具有什么功能呢?
第五章:redis持久化,包括rdb和aof两种方式[通俗易懂]
LeetCode 216. Combined Sum III (2022.08.04)
Egg framework usage (1)
数据中台建设(十):数据安全管理
uniapp 连接ibeacon
The JVM collection that Alibaba's top architects have summarized for many years, where can't I check it!
First Decentralized Heist?Loss of nearly 200 million US dollars: analysis of the attack on the cross-chain bridge Nomad
告白数字化转型时代:麦聪软件以最简单的方式让企业把数据用起来
Introduction to SD NAND Flash!
uniapp connect ibeacon
three.js debugging tool dat.gui use
Pytorch Deep Learning Quick Start Tutorial -- Mound Tutorial Notes (3)
开源一夏|OpenHarmony如何查询设备类型(eTS)
【MindSpore易点通机器人-01】你也许见过很多知识问答机器人,但这个有点不一样