Go to file
Wen Gu b2475c2334 anolis: net/smc: fix the issue of server fallback failure
ANBZ: #21781

A failure was found when smc server tries to send clc decline messages.
It results in connections being unexpectedly reset, rather than a fallback.

It was introduced by the commit described by 'Fixes' tag, which removes
the check for smc_listen_work, leading to smc_net_clcsock_sendmsg
consistently returning -EOPNOTSUPP.

To fix it, we restores the specific logic that ensures the clc decline
message is properly handled and sent when the server transitions to a
fallback state. Besides, there is no need to check the connect_work for
the client here, as the client first sends a decline message and then
sets use_fallback to true, which is the opposite of the service side.

Fixes: 718c9ff498 ("net/smc: fix LGR and link use-after-free issue")
Co-developed-by: D.Wythe <alibuda@linux.alibaba.com>
Signed-off-by: Wen Gu <guwen@linux.alibaba.com>
Reviewed-by: D. Wythe <alibuda@linux.alibaba.com>
Link: https://gitee.com/anolis/cloud-kernel/pulls/5442
2025-06-16 16:58:53 +08:00
Documentation anolis: mm: add "reclaim_pt" to control pte relcaim on/off 2025-05-30 10:22:12 +00:00
LICENSES LICENSES/deprecated: add Zlib license text 2020-09-16 14:33:49 +02:00
anolis anolis: configs: enable CONFIG_DMABUF_HEAPS 2025-05-30 14:19:50 +08:00
arch anolis: phytium: pswiotlb: Add PSWIOTLB mechanism to improve DMA performance 2025-06-16 07:11:40 +00:00
block blk-cgroup: properly pin the parent in blkcg_css_online 2025-04-23 10:56:15 +00:00
certs certs/blacklist_hashes.c: fix const confusion in certs blacklist 2022-06-22 14:13:17 +02:00
crypto KEYS: asymmetric: properly validate hash_algo and encoding 2024-10-22 17:41:35 +08:00
drivers anolis: phytium: pswiotlb: Add PSWIOTLB mechanism to improve DMA performance 2025-06-16 07:11:40 +00:00
fs x86/resctrl: Move mbm_cfg_mask to struct rdt_resource 2025-06-11 08:33:21 +00:00
include anolis: phytium: pswiotlb: Add PSWIOTLB mechanism to improve DMA performance 2025-06-16 07:11:40 +00:00
init init/main.c: Fix potential static_command_line memory overflow 2024-12-27 08:24:51 +00:00
io_uring anolis: io_uring: fix out-of-bound io_op_defs access in io_init_req 2025-04-09 09:02:53 +00:00
ipc memcg: enable accounting of ipc resources 2023-03-18 02:22:59 +00:00
kernel anolis: phytium: pswiotlb: Add PSWIOTLB mechanism to improve DMA performance 2025-06-16 07:11:40 +00:00
lib dyndbg: fix old BUG_ON in >control parser 2025-02-05 07:36:47 +00:00
mm anolis: mm: When reclaim pt is enabled, use mmap_write_lock 2025-06-09 08:40:16 +00:00
net anolis: net/smc: fix the issue of server fallback failure 2025-06-16 16:58:53 +08:00
samples vfio/mbochs: Fix close when multiple device FDs are open 2024-11-12 13:28:27 +00:00
scripts locking: Introduce __cleanup() based infrastructure 2025-04-16 01:34:16 +00:00
security security/keys: fix slab-out-of-bounds in key_task_permission 2025-03-27 09:41:10 +00:00
sound anolis: sw64: sound: fix compile error when CONFIG_SND_DUMMY=y 2025-06-05 06:59:14 +00:00
tools anolis: sw64: perf: fix compilation error 2025-06-05 06:59:14 +00:00
usr usr/include/Makefile: add linux/nfc.h to the compile-test coverage 2022-02-01 17:25:48 +01:00
virt anolis: sw64: fix bad address error for vfio 2025-06-05 06:59:14 +00:00
.clang-format RDMA 5.10 pull request 2020-10-17 11:18:18 -07:00
.cocciconfig
.get_maintainer.ignore Opt out of scripts/get_maintainer.pl 2019-05-16 10:53:40 -07:00
.gitattributes .gitattributes: use 'dts' diff driver for dts files 2019-12-04 19:44:11 -08:00
.gitignore kbuild: generate Module.symvers only when vmlinux exists 2021-05-19 10:12:59 +02:00
.mailmap mailmap: add two more addresses of Uwe Kleine-König 2020-12-06 10:19:07 -08:00
COPYING COPYING: state that all contributions really are covered by this file 2020-02-10 13:32:20 -08:00
CREDITS MAINTAINERS: Move Jason Cooper to CREDITS 2020-11-30 10:20:34 +01:00
Kbuild kbuild: rename hostprogs-y/always to hostprogs/always-y 2020-02-04 01:53:07 +09:00
Kconfig kbuild: ensure full rebuild when the compiler is updated 2020-05-12 13:28:33 +09:00
MAINTAINERS configfs-tsm: Introduce a shared ABI for attestation reports 2025-04-16 01:34:16 +00:00
Makefile kbuild: Drop -Wdeclaration-after-statement 2025-04-16 01:34:16 +00:00
README Drop all 00-INDEX files from Documentation/ 2018-09-09 15:08:58 -06:00

README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.